public class AgentClientImpl extends Object implements AgentClient
| Constructor and Description |
|---|
AgentClientImpl(org.rhq.core.domain.resource.Agent agent,
ClientCommandSender sender)
Constructor for
AgentClientImpl. |
| Modifier and Type | Method and Description |
|---|---|
org.rhq.core.domain.resource.Agent |
getAgent()
Returns the agent domain object which provides the information about the agent.
|
BundleAgentService |
getBundleAgentService() |
ConfigurationAgentService |
getConfigurationAgentService() |
ContentAgentService |
getContentAgentService() |
DiscoveryAgentService |
getDiscoveryAgentService() |
DriftAgentService |
getDriftAgentService() |
MeasurementAgentService |
getMeasurementAgentService() |
OperationAgentService |
getOperationAgentService() |
ResourceFactoryAgentService |
getResourceFactoryAgentService() |
SupportAgentService |
getSupportAgentService() |
boolean |
ping(long timeoutMillis)
Returns
true if the agent is up and this client can communicate with it. |
void |
startSending()
Puts this agent client in "sending mode" which enables this client to begin sending messages to the agent.
|
void |
stopSending()
Stops the agent client from sending messages.
|
String |
toString() |
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 ContentAgentService getContentAgentService()
getContentAgentService in interface AgentClientpublic ResourceFactoryAgentService getResourceFactoryAgentService()
getResourceFactoryAgentService in interface AgentClientpublic DiscoveryAgentService getDiscoveryAgentService()
getDiscoveryAgentService in interface AgentClientpublic MeasurementAgentService getMeasurementAgentService()
getMeasurementAgentService in interface AgentClientpublic OperationAgentService getOperationAgentService()
getOperationAgentService in interface AgentClientpublic ConfigurationAgentService getConfigurationAgentService()
getConfigurationAgentService in interface AgentClientpublic SupportAgentService getSupportAgentService()
getSupportAgentService in interface AgentClientpublic DriftAgentService getDriftAgentService()
getDriftAgentService in interface AgentClientCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.