org.ow2.easybeans.component.cmi
Class CmiComponent

java.lang.Object
  extended by org.ow2.easybeans.component.cmi.CmiComponent
All Implemented Interfaces:
EZBComponent, ICmiComponent

public class CmiComponent
extends java.lang.Object
implements ICmiComponent

Component providing a support of CMI.

Author:
WEI Zhouyue & ZHU Ning

Constructor Summary
CmiComponent()
           
 
Method Summary
 EventComponent getEventComponent()
           
 ServerConfig getServerConfig()
          Return the configuration of the embedded instance.
 void init()
          Init method.
This method is called before the start method.
 boolean isLifecycleManaged()
           
 void setEventComponent(EventComponent eventComponent)
          Set the event component.
 void setLifecycleManaged(boolean lifecycleManaged)
          Set if this component manages the lifecycle of the cluster view manager.
 void setServerConfig(ServerConfig config)
          Set the configuration of the embedded instance.
 void start()
          Start method.
This method is called after the init method.
 void stop()
          Stop method.
This method is called when component needs to be stopped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmiComponent

public CmiComponent()
Method Detail

init

public void init()
          throws EZBComponentException
Init method.
This method is called before the start method.

Specified by:
init in interface EZBComponent
Throws:
EZBComponentException - if the initialization has failed.

start

public void start()
           throws EZBComponentException
Start method.
This method is called after the init method.

Specified by:
start in interface EZBComponent
Throws:
EZBComponentException - if the start has failed.

stop

public void stop()
          throws EZBComponentException
Stop method.
This method is called when component needs to be stopped.

Specified by:
stop in interface EZBComponent
Throws:
EZBComponentException - if the stop is failing.

getServerConfig

public ServerConfig getServerConfig()
Return the configuration of the embedded instance.

Returns:
the configuration of the embedded instance

setServerConfig

public void setServerConfig(ServerConfig config)
Set the configuration of the embedded instance.

Parameters:
config - the configuration of the embedded instance

getEventComponent

public EventComponent getEventComponent()
Returns:
the event component

setEventComponent

public void setEventComponent(EventComponent eventComponent)
Set the event component.

Parameters:
eventComponent - the event component

isLifecycleManaged

public boolean isLifecycleManaged()
Returns:
true if this component manages the lifecycle of the cluster view manager

setLifecycleManaged

public void setLifecycleManaged(boolean lifecycleManaged)
Set if this component manages the lifecycle of the cluster view manager.

Parameters:
lifecycleManaged - true if this component manages the lifecycle of the cluster view manager


Copyright © 2006-2009 OW2 Consortium. All Rights Reserved.