|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.imolinfo.jbi4corba.jbi.component.runtime.AbstractComponentLifeCycle
public abstract class AbstractComponentLifeCycle
This class is an abstract implemenation of the ComponentLifeCycle. It implements the component lifecycle methods and provides necessary hooks to the extended classes to supply the component specific implemenation for the lifecycle functionality.
javax.jbi.ComponentLifeCycle
Field Summary | |
---|---|
static String[] |
JBI4CORBABC_PERF_CATEGORIES
|
protected javax.jbi.component.ComponentContext |
jbiContext
|
protected RuntimeConfiguration |
mRuntimeConfig
|
protected com.sun.jbi.configuration.RuntimeConfigurationHelper |
mRuntimeConfigHelper
|
protected com.sun.jbi.eManager.provider.StatusProviderHelper |
mStatusProviderHelper
|
static String |
PERF_CAT_DENORMALIZATION
|
static String |
PERF_CAT_NORMALIZATION
|
static String |
SHORT_DISPLAY_NAME
A short display Name |
Constructor Summary | |
---|---|
protected |
AbstractComponentLifeCycle(ComponentRuntime compRuntime)
constructor for the ComponentLifecycle implementation. |
Method Summary | |
---|---|
protected abstract void |
activateServiceConsumers()
service consumer initialization such as creating the service descriptions and activating the protocol specific external endpoints should be done. |
protected abstract void |
activateServiceProviders()
service providers initialization such as creating the service descriptions and activating the service endpoints should be done. |
protected abstract StandardMBean |
createExtensionMBean()
create mbean implemenation for the extension mbean as a StandardMBean |
protected abstract ObjectName |
createExtensionMBeanName()
create jmx object name for the extension mbean |
protected abstract MessageExchangeReceiver |
createMessageExchangeReceiver()
creates a message receiver object that handles receiving and processing the message exchanges from the delivery channel. |
protected abstract void |
deactivateServiceConsumers()
disables the service consumers so that the service consumer can not send message exchange to the providers. |
protected abstract void |
deactivateServiceProviders()
disable the service providers so that the service consumers can not find the service endpoints for this service provider. |
ComponentRuntime |
getComponentRuntime()
|
ObjectName |
getExtensionMBeanName()
this is a default implementation which does not have any extension mbeans. |
void |
init(javax.jbi.component.ComponentContext context)
Initialize the component. |
protected abstract void |
initMessageExchangeHandlerFactory()
initializes the message exchange handler factory. |
protected void |
onInit()
chance to extended classes to do the component specific init |
protected void |
onShutDown()
chance to extended classes to do the component specific shutdown |
protected void |
onStart()
chance to extended classes to do the component specific start |
protected void |
onStop()
chance to extended classes to do the component specific stop |
void |
shutDown()
Shut down the component. |
void |
start()
Start the component. |
void |
stop()
Stop the component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected RuntimeConfiguration mRuntimeConfig
protected com.sun.jbi.configuration.RuntimeConfigurationHelper mRuntimeConfigHelper
public static final String SHORT_DISPLAY_NAME
public static final String PERF_CAT_NORMALIZATION
public static final String PERF_CAT_DENORMALIZATION
public static final String[] JBI4CORBABC_PERF_CATEGORIES
protected javax.jbi.component.ComponentContext jbiContext
protected com.sun.jbi.eManager.provider.StatusProviderHelper mStatusProviderHelper
Constructor Detail |
---|
protected AbstractComponentLifeCycle(ComponentRuntime compRuntime)
compRuntime
- Method Detail |
---|
public final void init(javax.jbi.component.ComponentContext context) throws javax.jbi.JBIException
init
in interface javax.jbi.component.ComponentLifeCycle
context
-
javax.jbi.JBIException
ComponentLifeCycle.init(javax.jbi.component.ComponentContext)
public final void start() throws javax.jbi.JBIException
start
in interface javax.jbi.component.ComponentLifeCycle
javax.jbi.JBIException
ComponentLifeCycle.start()
public final void stop() throws javax.jbi.JBIException
stop
in interface javax.jbi.component.ComponentLifeCycle
javax.jbi.JBIException
ComponentLifeCycle.stop()
public final void shutDown() throws javax.jbi.JBIException
shutDown
in interface javax.jbi.component.ComponentLifeCycle
javax.jbi.JBIException
ComponentLifeCycle.shutDown()
public final ObjectName getExtensionMBeanName()
getExtensionMBeanName
in interface javax.jbi.component.ComponentLifeCycle
ComponentLifeCycle.getExtensionMBeanName()
public final ComponentRuntime getComponentRuntime()
protected abstract ObjectName createExtensionMBeanName()
protected abstract StandardMBean createExtensionMBean()
protected abstract void initMessageExchangeHandlerFactory() throws javax.jbi.JBIException
javax.jbi.JBIException
protected abstract MessageExchangeReceiver createMessageExchangeReceiver() throws Exception
Exception
protected abstract void activateServiceProviders() throws javax.jbi.JBIException
javax.jbi.JBIException
protected abstract void deactivateServiceProviders() throws javax.jbi.JBIException
javax.jbi.JBIException
protected abstract void activateServiceConsumers() throws javax.jbi.JBIException
javax.jbi.JBIException
protected abstract void deactivateServiceConsumers() throws javax.jbi.JBIException
javax.jbi.JBIException
protected void onInit() throws javax.jbi.JBIException
javax.jbi.JBIException
protected void onStart() throws javax.jbi.JBIException
javax.jbi.JBIException
protected void onStop() throws javax.jbi.JBIException
javax.jbi.JBIException
protected void onShutDown() throws javax.jbi.JBIException
javax.jbi.JBIException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |