|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.jbi.management.BaseLifeCycle
org.apache.servicemix.jbi.framework.ComponentMBeanImpl
public class ComponentMBeanImpl
Defines basic statistics on the Component
| Field Summary |
|---|
| Fields inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle |
|---|
currentState, INITIALIZED, listener |
| Fields inherited from interface org.apache.servicemix.jbi.framework.ComponentMBean |
|---|
TYPE_BINDING_COMPONENT, TYPE_POJO, TYPE_SERVICE_ENGINE |
| Fields inherited from interface javax.jbi.management.LifeCycleMBean |
|---|
SHUTDOWN, STARTED, STOPPED, UNKNOWN |
| Constructor Summary | |
|---|---|
ComponentMBeanImpl(JBIContainer container,
ComponentNameSpace name,
String description,
javax.jbi.component.Component component,
boolean binding,
boolean service,
String[] sharedLibraries)
Construct with it's id and delivery channel Id |
|
| Method Summary | |
|---|---|
void |
dispose()
|
void |
doShutDown()
Shut down the item - doesn't persist the state |
void |
doStart()
Start the item - doesn't persist the state |
void |
doStop()
Stop the item - doesn't persist the state |
protected void |
fireEvent(int type)
|
void |
firePropertyChanged(String name,
Object oldValue,
Object newValue)
|
ActivationSpec |
getActivationSpec()
|
MBeanAttributeInfo[] |
getAttributeInfos()
Get an array of MBeanAttributeInfo |
javax.jbi.component.Component |
getComponent()
|
ComponentNameSpace |
getComponentNameSpace()
|
String |
getComponentType()
|
JBIContainer |
getContainer()
|
ComponentContextImpl |
getContext()
|
DeliveryChannelImpl |
getDeliveryChannel()
|
String |
getDescription()
Get the Description of the item |
ObjectName |
getExtensionMBeanName()
Get the JMX ObjectName for any additional MBean for this component. |
int |
getInboundQueueCapacity()
|
javax.jbi.component.ComponentLifeCycle |
getLifeCycle()
|
ObjectName |
getMBeanName()
|
String |
getName()
Get the name of the item |
MBeanOperationInfo[] |
getOperationInfos()
Get an array of MBeanOperationInfo |
String |
getRunningStateFromStore()
|
javax.jbi.component.ServiceUnitManager |
getServiceUnitManager()
|
String[] |
getSharedLibraries()
|
String |
getSubType()
Get the type of this mbean |
int |
getThrottlingInterval()
Get the interval for throttling - number of Exchanges set before the throttling timeout is applied |
long |
getThrottlingTimeout()
Get the throttling timeout |
String |
getType()
Get the type of the item |
void |
init()
set state to initialized |
protected void |
initServiceAssemblies()
|
boolean |
isBinding()
|
boolean |
isEngine()
|
boolean |
isExchangeThrottling()
Is MessageExchange sender throttling enabled ? |
boolean |
isPojo()
|
boolean |
isService()
|
void |
persistRunningState()
Persist the running state |
ObjectName |
registerMBeans(ManagementContext ctx)
Register the MBeans for this Component |
void |
setActivationSpec(ActivationSpec activationSpec)
Set the ActivationSpec |
void |
setContext(ComponentContextImpl ctx)
Set the Context |
void |
setDeliveryChannel(DeliveryChannelImpl deliveryChannel)
|
void |
setExchangeThrottling(boolean value)
Set message throttling |
void |
setInboundQueueCapacity(int value)
Set the inbound queue capacity |
void |
setInitialRunningState()
Set the initial running state of the Component |
void |
setPojo(boolean pojo)
|
void |
setShutdownStateAfterInstall()
|
void |
setThrottlingInterval(int value)
Set the throttling interval number of Exchanges set before the throttling timeout is applied |
void |
setThrottlingTimeout(long value)
Set the throttling timout |
void |
shutDown()
Shut down the item. |
protected void |
shutDownServiceAssemblies()
|
void |
start()
Start the item. |
protected void |
startServiceAssemblies()
|
void |
stop()
Stop the item. |
protected void |
stopServiceAssemblies()
|
void |
unregisterMbeans(ManagementContext ctx)
Unregister Component MBeans |
| Methods inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle |
|---|
getCurrentState, getObjectToManage, isInitialized, isShutDown, isStarted, isStopped, isUnknown, setCurrentState, setPropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.jbi.management.LifeCycleMBean |
|---|
getCurrentState |
| Constructor Detail |
|---|
public ComponentMBeanImpl(JBIContainer container,
ComponentNameSpace name,
String description,
javax.jbi.component.Component component,
boolean binding,
boolean service,
String[] sharedLibraries)
name - description - component - binding - service - sharedLibraries - | Method Detail |
|---|
public void dispose()
public ObjectName registerMBeans(ManagementContext ctx)
throws javax.jbi.JBIException
ctx -
javax.jbi.JBIException
public void unregisterMbeans(ManagementContext ctx)
throws javax.jbi.JBIException
ctx -
javax.jbi.JBIExceptionpublic void setContext(ComponentContextImpl ctx)
ctx - public ObjectName getExtensionMBeanName()
getExtensionMBeanName in interface javax.jbi.management.ComponentLifeCycleMBeanpublic String getName()
getName in interface ComponentMBeangetName in interface MBeanInfoProvidergetName in class BaseLifeCyclepublic String getType()
getType in interface MBeanInfoProvidergetType in class BaseLifeCyclepublic String getSubType()
MBeanInfoProvider
getSubType in interface MBeanInfoProvidergetSubType in class BaseLifeCyclepublic String getDescription()
getDescription in interface MBeanInfoProvider
public void init()
throws javax.jbi.JBIException
BaseLifeCycle
init in class BaseLifeCyclejavax.jbi.JBIException
public void start()
throws javax.jbi.JBIException
start in interface javax.jbi.management.LifeCycleMBeanstart in class BaseLifeCyclejavax.jbi.JBIException - if the item fails to start.
public void stop()
throws javax.jbi.JBIException
stop in interface javax.jbi.management.LifeCycleMBeanstop in class BaseLifeCyclejavax.jbi.JBIException - if the item fails to stop.
public void shutDown()
throws javax.jbi.JBIException
shutDown in interface javax.jbi.management.LifeCycleMBeanshutDown in class BaseLifeCyclejavax.jbi.JBIException - if the item fails to shut down.public void setShutdownStateAfterInstall()
public void doStart()
throws javax.jbi.JBIException
javax.jbi.JBIException - if the item fails to start.
public void doStop()
throws javax.jbi.JBIException
javax.jbi.JBIException - if the item fails to stop.
public void doShutDown()
throws javax.jbi.JBIException
javax.jbi.JBIException - if the item fails to shut down.
public void setInitialRunningState()
throws javax.jbi.JBIException
javax.jbi.JBIExceptionpublic void persistRunningState()
public String getRunningStateFromStore()
public int getInboundQueueCapacity()
public void setInboundQueueCapacity(int value)
value - public DeliveryChannelImpl getDeliveryChannel()
public void setDeliveryChannel(DeliveryChannelImpl deliveryChannel)
deliveryChannel - The deliveryChannel to set.public ActivationSpec getActivationSpec()
public boolean isPojo()
public void setActivationSpec(ActivationSpec activationSpec)
activationSpec - public boolean isExchangeThrottling()
isExchangeThrottling in interface ComponentMBeanpublic void setExchangeThrottling(boolean value)
setExchangeThrottling in interface ComponentMBeanvalue - public long getThrottlingTimeout()
getThrottlingTimeout in interface ComponentMBeanpublic void setThrottlingTimeout(long value)
setThrottlingTimeout in interface ComponentMBeanvalue - (ms)public int getThrottlingInterval()
getThrottlingInterval in interface ComponentMBeanpublic void setThrottlingInterval(int value)
setThrottlingInterval in interface ComponentMBeanvalue -
public MBeanAttributeInfo[] getAttributeInfos()
throws JMException
getAttributeInfos in interface MBeanInfoProvidergetAttributeInfos in class BaseLifeCycleJMException
public MBeanOperationInfo[] getOperationInfos()
throws JMException
getOperationInfos in interface MBeanInfoProvidergetOperationInfos in class BaseLifeCycleJMException
public void firePropertyChanged(String name,
Object oldValue,
Object newValue)
firePropertyChanged in class BaseLifeCycle
protected void initServiceAssemblies()
throws javax.jbi.management.DeploymentException
javax.jbi.management.DeploymentException
protected void startServiceAssemblies()
throws javax.jbi.management.DeploymentException
javax.jbi.management.DeploymentException
protected void stopServiceAssemblies()
throws javax.jbi.management.DeploymentException
javax.jbi.management.DeploymentException
protected void shutDownServiceAssemblies()
throws javax.jbi.management.DeploymentException
javax.jbi.management.DeploymentExceptionprotected void fireEvent(int type)
public javax.jbi.component.ComponentLifeCycle getLifeCycle()
public javax.jbi.component.ServiceUnitManager getServiceUnitManager()
public JBIContainer getContainer()
public javax.jbi.component.Component getComponent()
public ComponentNameSpace getComponentNameSpace()
public ComponentContextImpl getContext()
public ObjectName getMBeanName()
public boolean isBinding()
public boolean isService()
public void setPojo(boolean pojo)
public boolean isEngine()
public String[] getSharedLibraries()
public String getComponentType()
getComponentType in interface ComponentMBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||