Hyperic HQ Plugin API v. 4.4.0.2

org.hyperic.hq.agent.server
Interface AgentTransportLifecycle

All Superinterfaces:
AgentNotificationHandler
All Known Implementing Classes:
AgentTransportLifecycleImpl

public interface AgentTransportLifecycle
extends AgentNotificationHandler

Implementors manage the new agent transport lifecycle.


Method Summary
 org.jboss.remoting.InvokerLocator getRemoteTransportLocator()
           
 void handleNotification(java.lang.String msgClass, java.lang.String msg)
          Update the agent transport after the agent setup.
 void registerService(java.lang.Class serviceInterface, java.lang.Object serviceImpl)
          Register a service to be hosted by the agent transport.
 void startAgentTransport()
          Start the agent transport.
 void stopAgentTransport()
          Stop the agent transport.
 

Method Detail

startAgentTransport

void startAgentTransport()
                         throws java.lang.Exception
Start the agent transport.

Throws:
java.lang.Exception

stopAgentTransport

void stopAgentTransport()
Stop the agent transport.


handleNotification

void handleNotification(java.lang.String msgClass,
                        java.lang.String msg)
Update the agent transport after the agent setup.

Specified by:
handleNotification in interface AgentNotificationHandler
See Also:
AgentNotificationHandler.handleNotification(java.lang.String, java.lang.String)

registerService

void registerService(java.lang.Class serviceInterface,
                     java.lang.Object serviceImpl)
Register a service to be hosted by the agent transport.

Parameters:
serviceInterface - The service interface class.
serviceImpl - The service implementation.
Throws:
java.lang.IllegalArgumentException - if the service does not implement the interface.

getRemoteTransportLocator

org.jboss.remoting.InvokerLocator getRemoteTransportLocator()
Returns:
The invoker locator to the remote (server-side) transport or null if the agent transport has not been started.

Hyperic HQ Plugin API v. 4.4.0.2

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.