|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.agent.AgentUpdateVersion
public class AgentUpdateVersion
Checks to see if there is an software update for the agent and if so,
retrieves the information on it.
| Constructor Summary | |
|---|---|
AgentUpdateVersion(AgentMain agent)
|
|
| Method Summary | |
|---|---|
AgentUpdateInformation |
getAgentUpdateInformation()
Returns the last known agent update version information. |
URL |
getVersionUrl()
Returns the URL that will be accessed to obtain the agent update version information. |
void |
refresh()
Forces this object to refresh the agent update information by asking the server for the data again. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AgentUpdateVersion(AgentMain agent)
| Method Detail |
|---|
public URL getVersionUrl()
throws Exception
Exception - if for some reason a valid URL could not be obtained
public AgentUpdateInformation getAgentUpdateInformation()
throws Exception
refresh(). This method will, however, call refresh()
for you if the information has not been retrieved at all yet.
Exception - if agent has disabled updates or it failed to get the update version information
public void refresh()
throws Exception
getAgentUpdateInformation().
Exception - if agent has disabled updates or it failed to get the update version information
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||