|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.agent.AgentUpdateInformation
public class AgentUpdateInformation
Encapsulates all the version information known about the agent update and the current agent.
| Constructor Summary | |
|---|---|
AgentUpdateInformation(Properties updateProps)
Builds the information object. |
|
| Method Summary | |
|---|---|
String |
getAgentBuild()
|
String |
getAgentVersion()
|
String |
getUpdateBuild()
|
String |
getUpdateMd5()
|
String |
getUpdateVersion()
|
boolean |
isAgentOutOfDate()
Returns true if the current agent's version
is lower than the update's version. |
boolean |
isAgentOutOfDateStrict()
Returns true if the current agent's version
is lower than the update's version. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AgentUpdateInformation(Properties updateProps)
updateProps - properties known about the agent update. This information
must be retrieved from the server.| Method Detail |
|---|
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()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||