|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AgentProxyFactory
The interface for classes that create proxies to agent services.
Method Summary | |
---|---|
java.lang.Object |
createAsyncService(Agent agent,
java.lang.Class serviceInterface,
boolean guaranteed)
Create an asynchronous proxy to an agent service where proxy method invocations return immediately. |
java.lang.Object |
createSyncService(Agent agent,
java.lang.Class serviceInterface)
Create a synchronous proxy to an agent service. |
void |
destroyService(java.lang.Object proxy)
When a proxy to an agent service is no longer in use, it should be destroyed to reclaim resources. |
Method Detail |
---|
java.lang.Object createSyncService(Agent agent, java.lang.Class serviceInterface) throws java.lang.Exception
agent
- The agent.serviceInterface
- The service interface.
java.lang.Exception
- if an exception occurs acquiring the proxy.java.lang.Object createAsyncService(Agent agent, java.lang.Class serviceInterface, boolean guaranteed) throws java.lang.Exception
null
even if the service
interface specifies another return type. In addition, exceptions
thrown by the agent service are never propagated back to an
asynchronous proxy.
agent
- The agent.serviceInterface
- The service interface.guaranteed
- true
to guarantee message delivery;
false
if guaranteed delivery is not required.
java.lang.Exception
- if an exception occurs acquiring the proxy.void destroyService(java.lang.Object proxy)
proxy
- The proxy to an agent service. Null values should
be handled gracefully.
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |