org.hyperic.hq.agent.client
Class AbstractCommandsClient
java.lang.Object
org.hyperic.hq.agent.client.AbstractCommandsClient
- Direct Known Subclasses:
- AgentCommandsClientImpl, AICommandsClientImpl, ControlCommandsClientImpl, LiveDataCommandsClientImpl, MeasurementCommandsClientImpl
public abstract class AbstractCommandsClient
- extends java.lang.Object
The abstract class that all Commands Clients using the new transport should
extend.
Field Summary |
protected org.apache.commons.logging.Log |
_log
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_log
protected final org.apache.commons.logging.Log _log
AbstractCommandsClient
protected AbstractCommandsClient(Agent agent,
AgentProxyFactory factory)
getAgent
public Agent getAgent()
safeDestroyService
protected final void safeDestroyService(java.lang.Object proxy)
getSynchronousProxy
protected final java.lang.Object getSynchronousProxy(java.lang.Class serviceInterface)
throws AgentConnectionException
- Retrieve a synchronous proxy to a remote service.
- Parameters:
serviceInterface
- The service interface. It is expected that all
service interface operations throw an
AgentRemoteException
.
- Returns:
- The synchronous proxy.
- Throws:
AgentConnectionException
- if there is an error creating the proxy.
java.lang.IllegalArgumentException
- if any of the service interface operations
do not throw an AgentRemoteException
.
getAsynchronousProxy
protected final java.lang.Object getAsynchronousProxy(java.lang.Class serviceInterface,
boolean guaranteed)
throws AgentConnectionException
- Throws:
AgentConnectionException
Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.