| |
|
| java.lang.Object com.sun.jbi.framework.ComponentLifeCycle
All known Subclasses: com.sun.jbi.framework.AbstractComponent,
ComponentLifeCycle | public class ComponentLifeCycle implements com.sun.jbi.framework.ComponentLifeCycleMBean(Code) | | This class implements the LifeCycleMBean for a Component (BC or SE). This
MBean acts as an agent between the JMX management service and the Component
Framework to allow the Component Framework to keep track of the state of the
component. Some methods in this MBean delegate to methods in the Component
Framework, which in turn interact directly with the component. Other methods
in this MBean interact directly with the component.
author: Sun Microsystems, Inc. |
ComponentLifeCycle | ComponentLifeCycle(Component component, ComponentFramework componentFramework)(Code) | | Constructor.
Parameters: component - is the Component instance for this component. Parameters: componentFramework - is the ComponentFramework service handle. |
getCurrentState | public String getCurrentState()(Code) | | Get the current state of this component.
The current state of the component as a string. |
getDeploymentMBeanName | public ObjectName getDeploymentMBeanName() throws javax.jbi.JBIException(Code) | | Get the JMX ObjectName for the DeployerMBean for this component. If
there is none, return null.
throws: javax.jbi.JBIException - if there is a failure getting componentinformation from the Component Registry. ObjectName the JMX object name of the DeployerMBean or nullif there is no DeployerMBean. |
getExtensionMBeanName | public ObjectName getExtensionMBeanName() throws javax.jbi.JBIException(Code) | | Get the JMX ObjectName for any additional MBean for this component. If
there is none, return null.
throws: javax.jbi.JBIException - if there is a failure getting componentinformation from the Component Registry. ObjectName the JMX object name of the additional MBean or nullif there is no additional MBean. |
shutDown | public void shutDown() throws javax.jbi.JBIException(Code) | | Shutdown command. This completely shuts down the component and unloads
its classes from the JBI Framework. The next start command will
require init() to be called again.
throws: javax.jbi.JBIException - if the component fails to shut down or ifanother life cycle operation is already in progress. |
shutDown | public void shutDown(boolean force) throws javax.jbi.JBIException(Code) | | Shutdown command. This completely shuts down the component and unloads
its classes from the JBI Framework. The next start command will require
init() to be called again. If the force flag is set to true, the
shutdown succeeds regardless of the success or failure of the component's
shutDown() method.
throws: javax.jbi.JBIException - if any failure occurs or if another lifecycle operation is already in progress. |
start | public void start() throws javax.jbi.JBIException(Code) | | Start command. This starts up the component, calling its init() method
if necessary.
throws: javax.jbi.JBIException - if the component fails to start or ifanother life cycle operation is already in progress. |
stop | public void stop() throws javax.jbi.JBIException(Code) | | Stop command. This stops the component but does not completely shut
it down. It can be restarted without going through init() again.
throws: javax.jbi.JBIException - if the component fails to stop or ifanother life cycle operation is already in progress. |
|
|
|