public class AgentUpdateVersion extends Object
information on it.| Constructor and Description |
|---|
AgentUpdateVersion(AgentMain agent) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public AgentUpdateVersion(AgentMain agent)
public URL getVersionUrl() throws Exception
Exception - if for some reason a valid URL could not be obtainedpublic 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 informationpublic void refresh()
throws Exception
getAgentUpdateInformation().Exception - if agent has disabled updates or it failed to get the update version informationCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.