public class ComponentLifeCycle extends Facade implements ComponentLifeCycleMBean
CONFIG_SCHEMA_PATH, DOMAIN, MASKED_FIELD_VALUE, mComponentConfigSchema, mEnvCtx, mLog, mMBeanNames, mMBeanSvr, mMgtCtx, mMsgBuilder, mPlatform, mTarget, mTranslator, PASSWORD, SERVER, sTypeMap, WORKSPACE_ROOTSHUTDOWN, STARTED, STOPPED, UNKNOWN| Constructor and Description |
|---|
ComponentLifeCycle(EnvironmentContext ctx,
String target,
String compName,
ComponentType compType,
Map<String,ObjectName> compLCMBeans) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCurrentState()
Get the current state of the managed compononent on the target.
|
ObjectName |
getExtensionMBeanName()
Get the JMX ObjectName for the life cycle extension MBean for this
component.
|
void |
shutDown()
Shut down the item.
|
void |
shutDown(boolean force)
Shut down this component.
|
void |
start()
Start the component.
|
void |
stop()
Stop the item.
|
archiveEqualityCheck, areAllInstancesUp, componentInstallationCheck, convertToString, fromFileURL, getAllTargets, getComponentConfigurationData, getComponentConfigurationNS, getComponentConfigurationSchema, getComponentLifeCycleMBeanName, getComponentQuery, getComponentQuery, getComponentState, getComponentStateOnInstance, getComponentType, getFacadeInstallerMBeanName, getFacadeInstallerMBeanName, getGenericQuery, getMBeanServerConnection, getRegistry, getRemoteAdminServiceObjectName, getRemoteAttribute, getRemoteAttributes, getServiceAssemblyQuery, getUpdater, handleClusteredInstanceFailures, initPrimitiveTypeMap, instanceRunningCheck, invokeLocalOperation, invokeRemoteOperation, invokeRemoteVoidOperation, isComponentInstalled, isInstanceRunning, isMBeanRegisteredOnInstance, isSharedLibraryInstalled, isTargetUp, mbeanRegistrationCheck, setRemoteAttribute, setRemoteAttributes, sharedLibraryInstallationCheck, throwNotSupportedManagementException, toFileURL, unregisterComponentConfigurationMBean, unregisterComponentConfigurationMBean, unregisterComponentExtensionMBean, unregisterComponentExtensionMBean, unregisterComponentLifeCycleMBean, unregisterComponentLifeCycleMBean, uploadFile, validateArchivepublic ComponentLifeCycle(EnvironmentContext ctx, String target, String compName, ComponentType compType, Map<String,ObjectName> compLCMBeans) throws ManagementException
ManagementExceptionpublic void start()
throws JBIException
start in interface LifeCycleMBeanJBIException - if the item fails to start.public void stop()
throws JBIException
stop in interface LifeCycleMBeanJBIException - if the item fails to stop.public void shutDown()
throws JBIException
shutDown in interface LifeCycleMBeanJBIException - if the item fails to shut down.public String getCurrentState()
getCurrentState in interface LifeCycleMBeanpublic ObjectName getExtensionMBeanName() throws JBIException
null.
Note that this MBean may serve as a container for multiple MBeans,
as required by the component implementation.getExtensionMBeanName in interface ComponentLifeCycleMBeannull if there is no additional MBean.JBIException - if there is a failure getting component
information for the component to which this life cycle
applies.public void shutDown(boolean force)
throws JBIException
force - set to true indicates that the component should be shutdown
forcefully; that is, place the component in the "Shutdown" state regardless of the
result of calling its LifeCycle shutDown method.JBIException - if some other failure occurs.Copyright © 2011-2016 OpenESB Community. All Rights Reserved.