|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.agentclient.impl.AgentClientImpl
public class AgentClientImpl
Provides the mechanism by which you obtain remote interface proxies to a particular agent. Using those remote proxies, you can send commands to an agent.
| Constructor Summary | |
|---|---|
AgentClientImpl(org.rhq.core.domain.resource.Agent agent,
ClientCommandSender sender)
Constructor for AgentClientImpl. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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 agent
IllegalArgumentException - if agent or sender is null| Method Detail |
|---|
public org.rhq.core.domain.resource.Agent getAgent()
AgentClient
getAgent in interface AgentClientpublic String toString()
toString in class Objectpublic void startSending()
AgentClient
startSending in interface AgentClientpublic void stopSending()
AgentClient
stopSending 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
down
true 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 AgentClient
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||