org.jboss.soa.esb.listeners.lifecycle
Interface ManagedLifecycleAdapter


public interface ManagedLifecycleAdapter

Adapter interface used for management through lifecycle MBean


Method Summary
 ConfigTree getConfig()
          Get the configuration assoicated with the ManagedLifecycle.
 ManagedLifecycleState getState()
          Get the state of the managed instance.
 void start()
          Start the managed instance.
 void stop()
          Stop the managed instance.
 

Method Detail

start

void start()
           throws ManagedLifecycleException
Start the managed instance.

This method is called to inform the managed instance that it can initialise resources prior to enabling the service.

Throws:
ManagedLifecycleException

stop

void stop()
          throws ManagedLifecycleException
Stop the managed instance.

This method is called to inform the managed instance that it must disable resources associated with the running service. The service may choose to disable the resources asynchronously provided that any subsequent call to start() or #destroy() blocks until these resources have been disabled.

Throws:
ManagedLifecycleException

getState

ManagedLifecycleState getState()
Get the state of the managed instance.

Returns:
The managed instance state.

getConfig

ConfigTree getConfig()
Get the configuration assoicated with the ManagedLifecycle.

Returns:
Configuration.