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 boolean ping(long timeoutMillis)
AgentClienttrue if the agent is up and this client can communicate with it. 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 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-2013 Red Hat, Inc.. All Rights Reserved.