public class AgentClientImpl extends Object implements AgentClient
| Constructor and Description |
|---|
AgentClientImpl(org.rhq.core.domain.resource.Agent agent,
ClientCommandSender sender)
Constructor for
AgentClientImpl. |
public AgentClientImpl(org.rhq.core.domain.resource.Agent agent,
ClientCommandSender sender)
AgentClientImpl.agent - the agent that this client will communicate withsender - the object that is used to send commands to the given agentIllegalArgumentException - if agent or sender is nullpublic org.rhq.core.domain.resource.Agent getAgent()
AgentClientgetAgent in interface AgentClientpublic void startSending()
AgentClientstartSending in interface AgentClientpublic void stopSending()
AgentClientstopSending in interface AgentClientpublic void updatePlugins()
AgentClientupdatePlugins in interface AgentClientpublic boolean ping(long timeoutMillis)
AgentClienttrue if this client can communicate with the agent. This *only* means a comm link
can be established. It does not mean the Agent is ready to service requests. For that use
AgentClient.pingService(long) This will return false if, for any reason, the agent cannot be pinged
(which could mean the agent is down, or a network problem has occurred that prohibits the client from reaching
the agent).ping in interface AgentClienttimeoutMillis - the amount of time, in milliseconds, the caller wants to wait before considering the agent
downtrue if the agent can be pinged; false if this client cannot communicate with
the agent for some reasonpublic boolean pingService(long timeoutMillis)
AgentClienttrue if this client can communicate with the agent and the agent Services are
available. For a simple communication check see AgentClient.ping(long). This will return
false if, for any reason, the agent cannot be pinged (which could mean the agent is down, or a network
problem has occurred that prohibits the client from reaching the agent) or its Services are not yet available.pingService in interface AgentClienttimeoutMillis - the amount of time, in milliseconds, the caller wants to wait before considering the agent
Services unavailable.true if the agent Services can be pinged; false if this client cannot communicate
with the agent or the agent is not yet servicing requests.public BundleAgentService getBundleAgentService()
getBundleAgentService in interface AgentClientpublic BundleAgentService getBundleAgentService(Long timeout)
getBundleAgentService in interface AgentClientpublic ContentAgentService getContentAgentService()
getContentAgentService in interface AgentClientpublic ContentAgentService getContentAgentService(Long timeout)
getContentAgentService in interface AgentClientpublic ResourceFactoryAgentService getResourceFactoryAgentService()
getResourceFactoryAgentService in interface AgentClientpublic ResourceFactoryAgentService getResourceFactoryAgentService(Long timeout)
getResourceFactoryAgentService in interface AgentClientpublic DiscoveryAgentService getDiscoveryAgentService()
getDiscoveryAgentService in interface AgentClientpublic DiscoveryAgentService getDiscoveryAgentService(Long timeout)
getDiscoveryAgentService in interface AgentClientpublic MeasurementAgentService getMeasurementAgentService()
getMeasurementAgentService in interface AgentClientpublic MeasurementAgentService getMeasurementAgentService(Long timeout)
getMeasurementAgentService in interface AgentClientpublic OperationAgentService getOperationAgentService()
getOperationAgentService in interface AgentClientpublic OperationAgentService getOperationAgentService(Long timeout)
getOperationAgentService in interface AgentClientpublic ConfigurationAgentService getConfigurationAgentService()
getConfigurationAgentService in interface AgentClientpublic ConfigurationAgentService getConfigurationAgentService(Long timeout)
getConfigurationAgentService in interface AgentClientpublic SupportAgentService getSupportAgentService()
getSupportAgentService in interface AgentClientpublic SupportAgentService getSupportAgentService(Long timeout)
getSupportAgentService in interface AgentClientpublic DriftAgentService getDriftAgentService()
getDriftAgentService in interface AgentClientpublic DriftAgentService getDriftAgentService(Long timeout)
getDriftAgentService in interface AgentClientCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.