public class AbstractListStateServiceMBeansImpl extends AbstractServiceMBeansImpl implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected static int |
ANY_FRAMEWORK_COMPONENT_STATE
any framework state
|
protected static String |
COMPONENT_VERSION_NS
namespace for Componennt version info node
|
protected static String |
COMPONENT_VERSION_NS_NEW
namespace for Componennt version info node
|
protected static String |
COMPONENT_VERSION_XPATH_QUERY
XPath query for new component version
|
protected static String |
FRAMEWORK_SA_ANY_STATE
any state
|
protected static String |
FRAMEWORK_SA_SHUTDOWN_STATE
sa shutdown state
|
protected static String |
FRAMEWORK_SA_STARTED_STATE
sa started state
|
protected static String |
FRAMEWORK_SA_STOPPED_STATE
sa stopped state
|
protected static String |
FRAMEWORK_SU_SHUTDOWN_STATE
state
|
protected static String |
FRAMEWORK_SU_STARTED_STATE
state
|
protected static String |
FRAMEWORK_SU_STOPPED_STATE
state
|
protected static String |
FRAMEWORK_SU_UNKNOWN_STATE
state
|
protected static String |
SHARED_LIBRARY_VERSION_XPATH_QUERY
XPath query for new component version
|
COLON, COMMA, COMPONENT_CONFIG_INSTANCE_ERROR_KEY, componentConfigurationHelper, CUSTOM_ADMINISTRATION_NAME_KEY, CUSTOM_CONFIGURATION_NAME_KEY, CUSTOM_LOGGER_NAME_KEY, CUSTOM_MANAGEMENT_ACTIONS_NAME_KEY, CUSTOM_STATISTICS_NAME_KEY, DOMAIN_TARGET_KEY, EBIJMXDOMAIN, environmentContext, EQUAL, IDENTIFICATION_NAME_KEY, JMX_EBI_DOMAIN, PASSWORD_MASK_CHARACTER, RUNNING_STATE, SERVER_TARGET_KEY, SERVICE_TYPE_KEY, STARTED_STATE| Constructor and Description |
|---|
AbstractListStateServiceMBeansImpl(EnvironmentContext anEnvContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
componentInstalledOnTargetCheck(String componentName,
String target)
Check if the component is installed on the target.
|
protected void |
componentStartedOnTargetCheck(String componentName,
String target)
Check if the component is in the "Started" state on the target.
|
protected ObjectName |
getComponentLifeCycleMBeanObjectName(String componentName,
String targetName)
returns the ObjectName for the lifecycle Mbean of this component.
|
protected Collection |
getComponentNamesDependentOnServiceAssembly(ComponentType frameworkCompType,
ComponentState frameworkCompStatus,
String saName,
String targetName)
list of component names
|
protected Collection |
getComponentNamesDependentOnServiceAssembly(String saId,
String targetName)
list of component names
|
protected Collection |
getComponentNamesDependentOnSharedLibrary(ComponentType frameworkCompType,
ComponentState frameworkCompStatus,
String slibName,
String targetName)
list of component names
|
protected Collection |
getComponentNamesDependentOnSharedLibrary(String slibName,
String targetName)
list of component names
|
protected Collection |
getComponentNamesDependentOnSharedLibraryAndServiceAssembly(ComponentType frameworkCompType,
ComponentState frameworkCompStatus,
String slibName,
String saName,
String targetName)
list of component names. this method requires non null inputs
|
protected Set |
getComponentNamesWithStatus(ComponentType frameworkCompType,
ComponentState frameworkCompStatus,
String targetName)
list of component names
|
protected String |
getComponentState(String componentName,
String targetName)
Gets the component state
|
protected Map<String,Descriptor> |
getConfigurationDescriptors(ObjectName objectName)
Get the attributes on the MBean
|
protected List |
getFrameworkComponentInfoList(Collection compNameList,
String targetName)
framework component info list
|
protected List |
getFrameworkComponentInfoListForEnginesAndBindings(ComponentType frameworkCompType,
ComponentState frameworkCompState,
String sharedLibraryName,
String serviceAssemblyName,
String targetName)
list of componentinfo objects. this methods check for valid inputs and
take only a valid inputs. for example slib, saName both can be null
|
protected List |
getFrameworkComponentInfoListForSharedLibraries(String componentName,
String targetName)
this methods check for valid inputs and take only a valid inputs. for
example slib, saName both can be null
|
protected List |
getFrameworkComponentInfoListForSharedLibraryNames(Collection slibNameList,
String targetName)
list of component infos
|
protected ComponentQuery |
getFrameworkComponentQuery(String targetName)
return framework query
|
protected List |
getServiceAssemblyInfoList(String frameworkState,
String componentName,
String targetName)
list of service assembly infos
|
protected ObjectName[] |
getSystemLoggerMBeans(String instanceName)
Looks up the cascaded LoggerMBeans for all JBI Framework
System Services for a specific instance
|
protected List |
getUiComponentInfoList(ComponentType frameworkCompType,
String targetName)
list of ui component infos
|
protected boolean |
isExistingComponent(String componentName,
String targetName)
checks the component name in the registry
|
protected boolean |
isExistingSharedLibrary(String sharedLibraryName,
String targetName)
check for shared namespace
|
protected String |
listComponents(ComponentType type,
String state,
String sharedLibraryName,
String serviceAssemblyName,
String targetName)
return component info xml text that has service engines or binding
components infos or both which satisfies the options passed to the
method.
|
protected void |
targetUpCheck(String target)
Check if a target is up.
|
protected static ComponentState |
toFrameworkComponentInfoState(String uiCompState)
framework states
|
protected static ComponentType |
toFrameworkComponentInfoType(String uiCompType)
converts type
|
protected static String |
toFrameworkServiceAssemblyState(String uiState)
converts to deployment service service assembly state.
|
protected JBIComponentInfo |
toUiComponentInfo(ComponentInfo frameworkCompInfo,
String targetName)
return component info object
|
protected List |
toUiComponentInfoList(List frameworkCompList,
String targetName)
convert to ui component info list
|
protected static String |
toUiComponentInfoState(ComponentState frameworkCompState)
converts state
|
protected static String |
toUiComponentInfoType(ComponentType frameworkCompType)
converts type
|
protected static String |
toUiServiceAssemblyState(String frameworkState)
converts to ui service assembly state
|
protected static String |
toUiServiceUnitState(String frameworkState)
converts to ui service unit state
|
protected void |
updateEachServiceUnitInfoStateInServiceAssemblyInfo(ServiceAssemblyInfo saInfo,
String targetName)
update the state in each service unit info in service assembly info
|
protected void |
updateServiceAssemblyInfoState(ServiceAssemblyInfo saInfo,
String targetName)
update state in service assembly info
|
protected void |
updateServiceUnitInfoState(ServiceUnitInfo suInfo,
ObjectName deploymentServiceMBean)
updates the state in the service unit info
|
protected void |
validateUiJBIComponentInfoState(String state)
validates the state value component info
|
protected void |
validateUiServiceAssemblyInfoState(String state)
validates the state value for service assembly
|
checkForValidTarget, checkForValidTarget, checkTargetType, constructMBeanAttributes, constructMBeanAttributes, constructMBeanAttributes, createManagementException, createManagementMessage, domainTargetCheck, findLiveExtensionMBeanObjectNames, getAdminServiceMBeanObjectName, getAdminServiceMBeanObjectName, getAttributeValue, getAttributeValue, getAttributeValue, getAttributeValue, getComponentExtensionMBeanObjectNames, getComponentExtensionMBeanObjectNames, getDeploymentServiceMBeanObjectName, getEbiJmxDomain, getEbiStatusMBeanObjectName, getEnvironmentContext, getExtensionMBeanObjectName, getI18NBundle, getI18NBundle, getInstallationServiceMBeanObjectName, getMBeanAttribute, getMBeanAttributeValues, getMBeanAttributeValuesAsMap, getMBeanServerConnection, getPlatformContext, getPlatformContextAdminServerName, getPlatformContextClusteredServerNames, getPlatformContextClusterNames, getPlatformContextInstallRoot, getPlatformContextInstanceName, getPlatformContextInstanceRoot, getPlatformContextJmxRmiPort, getPlatformContextMBeanServer, getPlatformContextServersInCluster, getPlatformContextStandaloneServerNames, getPlatformContextTargetName, getPlatformContextTargetName, getStackTrace, invokeMBeanOperation, invokeMBeanOperation, invokeMBeanOperation, invokeMBeanOperation, invokeMBeanOperation, isMBeanRegistered, isPlatformContextAdminServer, isPlatformContextCluster, isPlatformContextClusteredServer, isPlatformContextInstanceClustered, isPlatformContextInstanceUp, isPlatformContextStandaloneServer, isPlatformContextValidTarget, isTargetUp, isValidTarget, isValidTarget, listTargetNames, log, logDebug, logDebug, logError, logWarning, platformContextSupportsMultipleServers, setAttributeValue, setAttributeValue, setAttributeValue, setLevel, setMBeanAttribute, setMBeanAttributes, setMBeanAttributes, setMBeanConfigAttributes, setMBeanConfigAttributesprotected static final int ANY_FRAMEWORK_COMPONENT_STATE
protected static final String FRAMEWORK_SA_STARTED_STATE
protected static final String FRAMEWORK_SA_STOPPED_STATE
protected static final String FRAMEWORK_SA_SHUTDOWN_STATE
protected static final String FRAMEWORK_SA_ANY_STATE
protected static final String FRAMEWORK_SU_STARTED_STATE
protected static final String FRAMEWORK_SU_STOPPED_STATE
protected static final String FRAMEWORK_SU_SHUTDOWN_STATE
protected static final String FRAMEWORK_SU_UNKNOWN_STATE
protected static final String COMPONENT_VERSION_NS
protected static final String COMPONENT_VERSION_NS_NEW
protected static final String COMPONENT_VERSION_XPATH_QUERY
protected static final String SHARED_LIBRARY_VERSION_XPATH_QUERY
public AbstractListStateServiceMBeansImpl(EnvironmentContext anEnvContext)
anEnvContext - protected ObjectName getComponentLifeCycleMBeanObjectName(String componentName, String targetName) throws ManagementRemoteException
componentName - of a binding or engine component.targetName - ManagementRemoteException - on errorprotected String listComponents(ComponentType type, String state, String sharedLibraryName, String serviceAssemblyName, String targetName) throws ManagementRemoteException
type - ComponentInfo.BINDING, ENGINE, BINDING_ENGINE .state - return all the components that are in the specified state.
valid states are JBIComponentInfo.STARTED, STOPPED, INSTALLED
or null for ANY statesharedLibraryName - return all the components that have a dependency on the
specified shared library. null value to ignore this option.serviceAssemblyName - return all the components that have the specified service
assembly deployed on them. null value to ignore this option.targetName - ManagementRemoteException - if error or exception occurs.protected void validateUiJBIComponentInfoState(String state) throws ManagementRemoteException
ManagementRemoteException - on validation failureprotected void validateUiServiceAssemblyInfoState(String state) throws ManagementRemoteException
ManagementRemoteException - on validation failureprotected static ComponentState toFrameworkComponentInfoState(String uiCompState)
uiCompState - stateprotected List getFrameworkComponentInfoListForEnginesAndBindings(ComponentType frameworkCompType, ComponentState frameworkCompState, String sharedLibraryName, String serviceAssemblyName, String targetName) throws ManagementRemoteException
frameworkCompType - component type.frameworkCompState - component statesharedLibraryName - shared library nameserviceAssemblyName - service assembly nametargetName - com.sun.jbi.ui.common.ManagementRemoteException - on errorManagementRemoteExceptionprotected List getFrameworkComponentInfoList(Collection compNameList, String targetName)
compNameList - list of component namestargetName - protected List getFrameworkComponentInfoListForSharedLibraries(String componentName, String targetName) throws ManagementRemoteException
componentName - nametargetName - com.sun.jbi.ui.common.ManagementRemoteException - on errorManagementRemoteExceptionprotected List getFrameworkComponentInfoListForSharedLibraryNames(Collection slibNameList, String targetName)
targetName - slibNameList - shared library namesprotected List getUiComponentInfoList(ComponentType frameworkCompType, String targetName) throws ManagementRemoteException
frameworkCompType - type of the componenttargetName - ManagementRemoteExceptionprotected List toUiComponentInfoList(List frameworkCompList, String targetName) throws ManagementRemoteException
frameworkCompList - framework component info listManagementRemoteExceptionprotected JBIComponentInfo toUiComponentInfo(ComponentInfo frameworkCompInfo, String targetName) throws ManagementRemoteException
frameworkCompInfo - framework component infotargetName - ManagementRemoteExceptionprotected static String toFrameworkServiceAssemblyState(String uiState)
uiState - stateprotected static String toUiServiceAssemblyState(String frameworkState)
frameworkState - stateprotected static String toUiServiceUnitState(String frameworkState)
frameworkState - stateprotected static String toUiComponentInfoState(ComponentState frameworkCompState)
frameworkCompState - stateprotected static ComponentType toFrameworkComponentInfoType(String uiCompType)
uiCompType - typeprotected static String toUiComponentInfoType(ComponentType frameworkCompType)
frameworkCompType - typeprotected Set getComponentNamesWithStatus(ComponentType frameworkCompType, ComponentState frameworkCompStatus, String targetName)
frameworkCompType - component typeframeworkCompStatus - component statetargetName - protected Collection getComponentNamesDependentOnServiceAssembly(ComponentType frameworkCompType, ComponentState frameworkCompStatus, String saName, String targetName)
frameworkCompType - component typeframeworkCompStatus - component statesaName - service assembly nametargetName - protected Collection getComponentNamesDependentOnSharedLibrary(ComponentType frameworkCompType, ComponentState frameworkCompStatus, String slibName, String targetName)
frameworkCompType - component typeframeworkCompStatus - component stateslibName - shared library nametargetName - protected Collection getComponentNamesDependentOnSharedLibraryAndServiceAssembly(ComponentType frameworkCompType, ComponentState frameworkCompStatus, String slibName, String saName, String targetName)
frameworkCompType - component typeframeworkCompStatus - component stateslibName - shared library namesaName - service assembly nametargetName - protected Collection getComponentNamesDependentOnSharedLibrary(String slibName, String targetName)
slibName - shared library name.targetName - protected Collection getComponentNamesDependentOnServiceAssembly(String saId, String targetName)
saId - service assembly name.targetName - protected ComponentQuery getFrameworkComponentQuery(String targetName)
targetName - protected boolean isExistingComponent(String componentName, String targetName)
componentName - name of the componenttargetName - protected boolean isExistingSharedLibrary(String sharedLibraryName, String targetName)
sharedLibraryName - id StringtargetName - protected List getServiceAssemblyInfoList(String frameworkState, String componentName, String targetName) throws ManagementRemoteException
frameworkState - statecomponentName - nametargetName - com.sun.jbi.ui.common.ManagementRemoteException - on errorManagementRemoteExceptionprotected void updateServiceAssemblyInfoState(ServiceAssemblyInfo saInfo, String targetName) throws ManagementRemoteException
saInfo - service assembly infotargetName - com.sun.jbi.ui.common.ManagementRemoteException - on errorManagementRemoteExceptionprotected void updateEachServiceUnitInfoStateInServiceAssemblyInfo(ServiceAssemblyInfo saInfo, String targetName) throws ManagementRemoteException
saInfo - service assembly info objecttargetName - com.sun.jbi.ui.common.ManagementRemoteException - on errorManagementRemoteExceptionprotected void updateServiceUnitInfoState(ServiceUnitInfo suInfo, ObjectName deploymentServiceMBean)
suInfo - service unit info objectObjectName - deploymentServiceMBeanprotected ObjectName[] getSystemLoggerMBeans(String instanceName)
protected Map<String,Descriptor> getConfigurationDescriptors(ObjectName objectName) throws ManagementRemoteException
mbeanServer - objectName - JBIRemoteExceptionManagementRemoteExceptionprotected String getComponentState(String componentName, String targetName) throws ManagementRemoteException
componentName - targetName - ManagementRemoteException - on errorprotected void targetUpCheck(String target) throws ManagementRemoteException
target - - target name, can be standalone or clustered instance, cluster
or "server".ManagementRemoteException - if component is not started on target.protected void componentStartedOnTargetCheck(String componentName, String target) throws ManagementRemoteException
componentName - - component nametarget - - target name, can be standalone or clustered instance, cluster
or "server".ManagementRemoteException - if component is not started on target.protected void componentInstalledOnTargetCheck(String componentName, String target) throws ManagementRemoteException
componentName - - component nametarget - - target name, can be standalone or clustered instance, cluster
or "server".ManagementRemoteException - if component is not started on target.Copyright © 2011-2016 OpenESB Community. All Rights Reserved.