| com.sun.esb.management.base.services.AbstractListStateServiceMBeansImpl com.sun.esb.management.impl.runtime.RuntimeManagementServiceMBeanImpl
RuntimeManagementServiceMBeanImpl | public class RuntimeManagementServiceMBeanImpl extends AbstractListStateServiceMBeansImpl implements RuntimeManagementService,Serializable(Code) | | Defines operations for common runtime management services. Common runtime
management operations include listing component containers available in the
runtime, composite applications deployed, controlling lifecycle across the
runtime and composite applications, getting state of each container and
composite application, etc.
author: graj |
Method Summary | |
public String | listBindingComponents(String targetName) return component info xml text that has only binding component infos. | public String | listBindingComponents(String state, String sharedLibraryName, String serviceAssemblyName, String targetName) return component info xml text that has only binding component infos
which satisfies the options passed to the method.
Parameters: state - return all the binding components that are in the specifiedstate. | public Map<String, String> | listBindingComponents(String[] targetNames) return component info xml text that has only binding component infos. | public Map<String, String> | listBindingComponents(String state, String sharedLibraryName, String serviceAssemblyName, String[] targetNames) return component info xml text that has only binding component infos
which satisfies the options passed to the method.
Parameters: state - return all the binding components that are in the specifiedstate. | public String | listServiceAssemblies(String targetName) returns a list of Service Assembly Infos in a xml format. | public String | listServiceAssemblies(String componentName, String targetName) returns the list of service asssembly infos in a xml format that have the
service unit deployed on the specified component. | public String | listServiceAssemblies(String state, String componentName, String targetName) returns the list of service asssembly infos in a xml format that have the
service unit deployed on the specified component.
Parameters: state - to return all the service assemblies that are in the specifiedstate. | public Map<String, String> | listServiceAssemblies(String[] targetNames) returns a list of Service Assembly Infos in a xml format. | public Map<String, String> | listServiceAssemblies(String componentName, String[] targetNames) returns the list of service assembly infos in a xml format that have the
service unit deployed on the specified component. | public Map<String, String> | listServiceAssemblies(String state, String componentName, String[] targetNames) returns the list of service asssembly infos in a xml format that have the
service unit deployed on the specified component.
Parameters: state - to return all the service assemblies that are in the specifiedstate. | public String | listServiceEngines(String targetName) return component info xml text that has only service engine infos. | public String | listServiceEngines(String state, String sharedLibraryName, String serviceAssemblyName, String targetName) return component info xml text that has only service engine infos which
satisfies the options passed to the method.
Parameters: state - return all the service engines that are in the specifiedstate. | public Map<String, String> | listServiceEngines(String[] targetNames) return component info xml text that has only service engine infos. | public Map<String, String> | listServiceEngines(String state, String sharedLibraryName, String serviceAssemblyName, String[] targetNames) return component info xml text that has only service engine infos which
satisfies the options passed to the method.
Parameters: state - return all the service engines that are in the specifiedstate. | public String | listSharedLibraries(String targetName) return component info xml text that has only shared library infos. | public String | listSharedLibraries(String componentName, String targetName) returns the list of Shared Library infos in the in a xml format
Parameters: componentName - to return only the shared libraries that are this componentdependents. | public Map<String, String> | listSharedLibraries(String[] targetNames) return component info xml text that has only shared library infos. | public Map<String, String> | listSharedLibraries(String componentName, String[] targetNames) returns the list of Shared Library infos in the in a xml format
Parameters: componentName - to return only the shared libraries that are this componentdependents. | public String | listSharedLibraryDependents(String sharedLibraryName, String targetName) | public Map<String, String> | listSharedLibraryDependents(String sharedLibraryName, String[] targetNames) | public String | showBindingComponent(String name, String state, String sharedLibraryName, String serviceAssemblyName, String targetName) return component info xml text for the specified binding component if
exists. | public Map<String, String> | showBindingComponent(String name, String state, String sharedLibraryName, String serviceAssemblyName, String[] targetNames) return component info xml text for the specified binding component if
exists. | protected String | showComponent(String name, ComponentType type, String state, String sharedLibraryName, String serviceAssemblyName, String targetName) return component info xml text for the specified service engine if
exists. | public String | showServiceAssembly(String name, String state, String componentName, String targetName) return service assembly info xml text for the specified service assembly
if exists. | public Map<String, String> | showServiceAssembly(String name, String state, String componentName, String[] targetNames) return service assembly info xml text for the specified service assembly
if exists. | public String | showServiceEngine(String name, String state, String sharedLibraryName, String serviceAssemblyName, String targetName) return component info xml text for the specified service engine if
exists. | public Map<String, String> | showServiceEngine(String name, String state, String sharedLibraryName, String serviceAssemblyName, String[] targetNames) return component info xml text for the specified service engine if
exists. | public String | showSharedLibrary(String name, String componentName, String targetName) return component info xml text for the specified shared library if
exists. | public Map<String, String> | showSharedLibrary(String name, String componentName, String[] targetNames) return component info xml text for the specified shared library if
exists. | public String | shutdownComponent(String componentName, boolean force, String targetName) | public String | shutdownComponent(String componentName, String targetName) | public Map<String, String> | shutdownComponent(String componentName, String[] targetNames) | public Map<String, String> | shutdownComponent(String componentName, boolean force, String[] targetNames) | public String | shutdownServiceAssembly(String serviceAssemblyName, boolean forceShutdown, String targetName) | public String | shutdownServiceAssembly(String serviceAssemblyName, String targetName) | public Map<String, String> | shutdownServiceAssembly(String serviceAssemblyName, String[] targetNames) | public Map<String /* targetName */, String | shutdownServiceAssembly(String serviceAssemblyName, boolean forceShutdown, String[] targetNames) | protected String | shutdownServiceAssemblyInternal(String serviceAssemblyName, boolean force, String targetName) | public String | startComponent(String componentName, String targetName) | public Map<String, String> | startComponent(String componentName, String[] targetNames) | public String | startServiceAssembly(String serviceAssemblyName, String targetName) | public Map<String, String> | startServiceAssembly(String serviceAssemblyName, String[] targetNames) | public String | stopComponent(String componentName, String targetName) | public Map<String, String> | stopComponent(String componentName, String[] targetNames) | public String | stopServiceAssembly(String serviceAssemblyName, String targetName) | public Map<String, String> | stopServiceAssembly(String serviceAssemblyName, String[] targetNames) |
serialVersionUID | final static long serialVersionUID(Code) | | |
RuntimeManagementServiceMBeanImpl | public RuntimeManagementServiceMBeanImpl(EnvironmentContext anEnvContext)(Code) | | Constructor - Constructs a new instance of RuntimeManagementServiceMBeanImpl
Parameters: anEnvContext - |
listBindingComponents | public Map<String, String> listBindingComponents(String state, String sharedLibraryName, String serviceAssemblyName, String[] targetNames) throws ManagementRemoteException(Code) | | return component info xml text that has only binding component infos
which satisfies the options passed to the method.
Parameters: state - return all the binding components that are in the specifiedstate. valid states are JBIComponentInfo.STARTED, STOPPED,INSTALLED or null for ANY state Parameters: sharedLibraryName - return all the binding components that have a dependency onthe specified shared library. null value to ignore thisoption. Parameters: serviceAssemblyName - return all the binding components that have the specifiedservice assembly deployed on them. null value to ignore thisoption. Parameters: targetName - xml text contain the list of binding component infos as map of[targetName, xmlString] throws: ManagementRemoteException - if error or exception occurs. |
listServiceAssemblies | public Map<String, String> listServiceAssemblies(String componentName, String[] targetNames) throws ManagementRemoteException(Code) | | returns the list of service assembly infos in a xml format that have the
service unit deployed on the specified component.
Parameters: componentName - to list all the service assemblies that have some deploymentson this component. Parameters: targetNames - xml string contain the list of service assembly infos as map of[targetName, xmlString] throws: ManagementRemoteException - if error or exception occurs. |
listServiceAssemblies | public Map<String, String> listServiceAssemblies(String state, String componentName, String[] targetNames) throws ManagementRemoteException(Code) | | returns the list of service asssembly infos in a xml format that have the
service unit deployed on the specified component.
Parameters: state - to return all the service assemblies that are in the specifiedstate. JBIServiceAssemblyInfo.STARTED, STOPPED, SHUTDOWN ornull for ANY state Parameters: componentName - to list all the service assemblies that have some deploymentson this component. Parameters: targetNames - xml string contain the list of service assembly infos as map of[targetName, xmlString] throws: ManagementRemoteException - if error or exception occurs. |
listServiceEngines | public Map<String, String> listServiceEngines(String state, String sharedLibraryName, String serviceAssemblyName, String[] targetNames) throws ManagementRemoteException(Code) | | return component info xml text that has only service engine infos which
satisfies the options passed to the method.
Parameters: state - return all the service engines that are in the specifiedstate. valid states are JBIComponentInfo.STARTED, STOPPED,INSTALLED or null for ANY state Parameters: sharedLibraryName - return all the service engines that have a dependency on thespecified shared library. null value to ignore this option. Parameters: serviceAssemblyName - return all the service engines that have the specified serviceassembly deployed on them. null value to ignore this option. Parameters: targetName - xml text contain the map of service engine component infos as[targetName, xmlString] throws: ManagementRemoteException - if error or exception occurs. |
listSharedLibraries | public Map<String, String> listSharedLibraries(String componentName, String[] targetNames) throws ManagementRemoteException(Code) | | returns the list of Shared Library infos in the in a xml format
Parameters: componentName - to return only the shared libraries that are this componentdependents. null for listing all the shared libraries in thesystem. Parameters: targetName - xml string contains the map of componentinfos for sharedlibraries as [targetName, xmlString]. throws: ManagementRemoteException - if error or exception occurs. |
listSharedLibraryDependents | public Map<String, String> listSharedLibraryDependents(String sharedLibraryName, String[] targetNames) throws ManagementRemoteException(Code) | | returns a list of Binding Component and Service Engine infos in xml
format, that are dependent upon a specified Shared Library
Parameters: sharedLibraryName - the shared library name Parameters: targetName - xml string containing the map of componentInfos as [targetName,xmlString] throws: ManagementRemoteException - on error |
showBindingComponent | public Map<String, String> showBindingComponent(String name, String state, String sharedLibraryName, String serviceAssemblyName, String[] targetNames) throws ManagementRemoteException(Code) | | return component info xml text for the specified binding component if
exists. If no binding component with that name exists, it returns the xml
with empty list.
Parameters: name - name of the binding component to lookup Parameters: state - return the binding component that is in the specified state.valid states are JBIComponentInfo.STARTED, STOPPED, INSTALLEDor null for ANY state Parameters: sharedLibraryName - return the binding component that has a dependency on thespecified shared library. null value to ignore this option. Parameters: serviceAssemblyName - return the binding component that has the specified serviceassembly deployed on it. null value to ignore this option. Parameters: targetName - xml text contain the binding component info that confirms to thecomponent info list xml grammer as a map of [targetName,xmlString]. throws: ManagementRemoteException - if error or exception occurs. |
showComponent | protected String showComponent(String name, ComponentType type, String state, String sharedLibraryName, String serviceAssemblyName, String targetName) throws ManagementRemoteException(Code) | | return component info xml text for the specified service engine if
exists. If no service engine with that name exists, it returns the xml
with empty list.
Parameters: name - name of the service engine to lookup Parameters: type - ENGINE or BINDING Parameters: state - to return all the service engines that are in the specifiedstate. JBIComponentInfo.STARTED, STOPPED, INSTALLED or nullfor ANY state Parameters: sharedLibraryName - to return all the service engines that have a dependency onthe specified shared library. Could be null for not filteringthe service engines for this dependency. Parameters: serviceAssemblyName - to return all the service engines that have the specifiedservice assembly deployed on them. Could be null for notfiltering the service engines for this dependency. Parameters: targetName - xml string contain service engine component info throws: ManagementRemoteException - if error or exception occurs. |
showServiceAssembly | public Map<String, String> showServiceAssembly(String name, String state, String componentName, String[] targetNames) throws ManagementRemoteException(Code) | | return service assembly info xml text for the specified service assembly
if exists. If no service assembly with that name exists, it returns the
xml with empty list.
Parameters: name - name of the service assembly to lookup Parameters: state - return the service assembly that is in the specified state.JBIServiceAssemblyInfo.STARTED, STOPPED, SHUTDOWN or null forANY state Parameters: componentName - return the service assembly that has service units on thiscomponent. Parameters: targetNames - xml string contain service assembly info that confirms to theservice assembly list xml grammer as [targetName, xmlString] map. throws: ManagementRemoteException - if error or exception occurs. |
showServiceEngine | public Map<String, String> showServiceEngine(String name, String state, String sharedLibraryName, String serviceAssemblyName, String[] targetNames) throws ManagementRemoteException(Code) | | return component info xml text for the specified service engine if
exists. If no service engine with that name exists, it returns the xml
with empty list.
Parameters: name - name of the service engine to lookup Parameters: state - return service engine that is in the specified state. validstates are JBIComponentInfo.STARTED, STOPPED, INSTALLED ornull for ANY state Parameters: sharedLibraryName - return service engine that has a dependency on the specifiedshared library. null value to ignore this option. Parameters: serviceAssemblyName - return the service engine that has the specified serviceassembly deployed on it. null value to ignore this option. Parameters: targetName - xml text contain the service engine component info that confirmsto the component info list xml grammer as a map of [targetName,xmlString]. throws: ManagementRemoteException - if error or exception occurs. |
showSharedLibrary | public Map<String, String> showSharedLibrary(String name, String componentName, String[] targetNames) throws ManagementRemoteException(Code) | | return component info xml text for the specified shared library if
exists. If no shared library with that name exists, it returns the xml
with empty list.
Parameters: name - name of the shared library to lookup Parameters: componentName - return the shared library that is this component dependents.null to ignore this option. Parameters: targetName - xml string contain shared library component info that confirms tothe component info list xml grammer as a map of [targetName,xmlString]. throws: ManagementRemoteException - if error or exception occurs. |
shutdownComponent | public Map<String, String> shutdownComponent(String componentName, boolean force, String[] targetNames) throws ManagementRemoteException(Code) | | shuts down component (service engine, binding component)
Parameters: componentName - name of the component Parameters: force - true to force shutdown Parameters: targetNames - name of the component as [targetName, string] map throws: ManagementRemoteException - on error |
shutdownServiceAssembly | public Map<String /* targetName */, String shutdownServiceAssembly(String serviceAssemblyName, boolean forceShutdown, String[] targetNames) throws ManagementRemoteException(Code) | | shuts down service assembly
Parameters: serviceAssemblyName - name of the service assembly Parameters: forceShutdown - Parameters: targetName - name of the target for this operation Map of targetName and result as a management message xml textstrings. throws: ManagementRemoteException - on error |
shutdownServiceAssemblyInternal | protected String shutdownServiceAssemblyInternal(String serviceAssemblyName, boolean force, String targetName) throws ManagementRemoteException(Code) | | shuts down service assembly
Parameters: serviceAssemblyName - name of the service assembly Parameters: force - Parameters: targetName - result as a management message xml text throws: ManagementRemoteException - on error |
Methods inherited from com.sun.esb.management.base.services.AbstractListStateServiceMBeansImpl | protected void componentStartedOnTargetCheck(String componentName, String target) throws ManagementRemoteException(Code)(Java Doc) protected ObjectName getComponentLifeCycleMBeanObjectName(String componentName, String targetName) throws ManagementRemoteException(Code)(Java Doc) protected Collection getComponentNamesDependentOnServiceAssembly(ComponentType frameworkCompType, ComponentState frameworkCompStatus, String saName, String targetName)(Code)(Java Doc) protected Collection getComponentNamesDependentOnServiceAssembly(String saId, String targetName)(Code)(Java Doc) protected Collection getComponentNamesDependentOnSharedLibrary(ComponentType frameworkCompType, ComponentState frameworkCompStatus, String slibName, String targetName)(Code)(Java Doc) protected Collection getComponentNamesDependentOnSharedLibrary(String slibName, String targetName)(Code)(Java Doc) protected Collection getComponentNamesDependentOnSharedLibraryAndServiceAssembly(ComponentType frameworkCompType, ComponentState frameworkCompStatus, String slibName, String saName, String targetName)(Code)(Java Doc) protected Set getComponentNamesWithStatus(ComponentType frameworkCompType, ComponentState frameworkCompStatus, String targetName)(Code)(Java Doc) protected String getComponentState(String componentName, String targetName) throws ManagementRemoteException(Code)(Java Doc) protected Map<String, Descriptor> getConfigurationDescriptors(ObjectName objectName) throws ManagementRemoteException(Code)(Java Doc) protected List getFrameworkComponentInfoList(Collection compNameList, String targetName)(Code)(Java Doc) protected List getFrameworkComponentInfoListForEnginesAndBindings(ComponentType frameworkCompType, ComponentState frameworkCompState, String sharedLibraryName, String serviceAssemblyName, String targetName) throws ManagementRemoteException(Code)(Java Doc) protected List getFrameworkComponentInfoListForSharedLibraries(String componentName, String targetName) throws ManagementRemoteException(Code)(Java Doc) protected List getFrameworkComponentInfoListForSharedLibraryNames(Collection slibNameList, String targetName)(Code)(Java Doc) protected ComponentQuery getFrameworkComponentQuery(String targetName)(Code)(Java Doc) protected List getServiceAssemblyInfoList(String frameworkState, String componentName, String targetName) throws ManagementRemoteException(Code)(Java Doc) protected ObjectName[] getSystemLoggerMBeans(String instanceName)(Code)(Java Doc) protected List getUiComponentInfoList(ComponentType frameworkCompType, String targetName) throws ManagementRemoteException(Code)(Java Doc) protected boolean isExistingComponent(String componentName, String targetName)(Code)(Java Doc) protected boolean isExistingSharedLibrary(String sharedLibraryName, String targetName)(Code)(Java Doc) protected String listComponents(ComponentType type, String state, String sharedLibraryName, String serviceAssemblyName, String targetName) throws ManagementRemoteException(Code)(Java Doc) protected static ComponentState toFrameworkComponentInfoState(String uiCompState)(Code)(Java Doc) protected static ComponentType toFrameworkComponentInfoType(String uiCompType)(Code)(Java Doc) protected static String toFrameworkServiceAssemblyState(String uiState)(Code)(Java Doc) protected JBIComponentInfo toUiComponentInfo(ComponentInfo frameworkCompInfo, String targetName) throws ManagementRemoteException(Code)(Java Doc) protected List toUiComponentInfoList(List frameworkCompList, String targetName) throws ManagementRemoteException(Code)(Java Doc) protected static String toUiComponentInfoState(ComponentState frameworkCompState)(Code)(Java Doc) protected static String toUiComponentInfoType(ComponentType frameworkCompType)(Code)(Java Doc) protected static String toUiServiceAssemblyState(String frameworkState)(Code)(Java Doc) protected static String toUiServiceUnitState(String frameworkState)(Code)(Java Doc) protected void updateEachServiceUnitInfoStateInServiceAssemblyInfo(ServiceAssemblyInfo saInfo, String targetName) throws ManagementRemoteException(Code)(Java Doc) protected void updateServiceAssemblyInfoState(ServiceAssemblyInfo saInfo, String targetName) throws ManagementRemoteException(Code)(Java Doc) protected void updateServiceUnitInfoState(ServiceUnitInfo suInfo, ObjectName deploymentServiceMBean)(Code)(Java Doc) protected void validateUiJBIComponentInfoState(String state) throws ManagementRemoteException(Code)(Java Doc) protected void validateUiServiceAssemblyInfoState(String state) throws ManagementRemoteException(Code)(Java Doc)
|
|
|