public class AgentUpdateInformation extends Object
| Constructor and Description |
|---|
AgentUpdateInformation(Properties updateProps)
Builds the information object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAgentBuild() |
String |
getAgentVersion() |
String |
getUpdateBuild() |
String |
getUpdateMd5() |
String |
getUpdateVersion() |
boolean |
isAgentOutOfDate()
|
boolean |
isAgentOutOfDateStrict()
|
String |
toString() |
public AgentUpdateInformation(Properties updateProps)
updateProps - properties known about the agent update. This information
must be retrieved from the server.public boolean isAgentOutOfDate()
true if the current agent's version
is lower than the update's version.
This method does not compare build numbers - see isAgentOutOfDateStrict() for that.true if the agent's version is older than the update's versionpublic boolean isAgentOutOfDateStrict()
true if the current agent's version
is lower than the update's version. If they are equal,
the agent's build number is compared to the
update's build number and true will be returned
if the agent's build number is less than the update's build number. If either build
number could not be determined or is invalid, they will be ignored which causes this
method to return false since the version strings must be equal for this method
to even look at the build numbers.
To compare only version strings and ignore build numbers, see isAgentOutOfDate().true if the agent's version/build is older than the update's version/buildpublic String getAgentVersion()
public String getAgentBuild()
public String getUpdateVersion()
public String getUpdateBuild()
public String getUpdateMd5()
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.