| java.lang.Object com.sun.esb.management.base.services.AbstractServiceMBeansImpl
All known Subclasses: com.sun.esb.management.impl.installation.InstallationServiceMBeanImpl, com.sun.esb.management.base.services.AbstractListStateServiceMBeansImpl, com.sun.esb.management.impl.performance.PerformanceMeasurementServiceMBeanImpl, com.sun.esb.management.impl.deployment.DeploymentServiceMBeanImpl,
AbstractServiceMBeansImpl | abstract public class AbstractServiceMBeansImpl implements Serializable(Code) | | author: graj |
Method Summary | |
protected void | checkForValidTarget(ObjectName objectName, String targetName) | protected void | checkForValidTarget(ObjectName objectName, String targetName, boolean useTargetNameFlag) | protected TargetType | checkTargetType(String target) | protected AttributeList | constructMBeanAttributes(ObjectName objectName, Properties params) | protected AttributeList | constructMBeanAttributes(ObjectName objectName, Map<String /*attributeName*/, Object params) | protected AttributeList | constructMBeanAttributes(MBeanServerConnection mbeanServer, ObjectName objectName, Properties params) | protected Exception | createManagementException(String bundleKey, String[] args, Exception sourceException) | protected String | createManagementMessage(String taskId, boolean successResult, String msgType, String msgCode, Object[] args) Creates a management message. | protected void | domainTargetCheck(String target) | protected Map<String /*instanceName*/, ObjectName[]> | findLiveExtensionMBeanObjectNames(String componentName, String extensionName, String targetName) | protected ObjectName | getAdminServiceMBeanObjectName() returns the ObjectName for the AdminService Mbean of this component. | protected ObjectName | getAdminServiceMBeanObjectName(String targetName) | protected Object | getAttributeValue(String targetName, ObjectName objectName, String attributeName) | protected Object | getAttributeValue(MBeanServer mbeanServer, ObjectName objectName, String attributeName) | protected Object | getAttributeValue(MBeanServerConnection mbeanServer, ObjectName objectName, String attributeName) | protected Object | getAttributeValue(ObjectName objectName, String attributeName) | protected Map<String, ObjectName[]> | getComponentExtensionMBeanObjectNames(String componentName, String extensionName, String targetName) | protected ObjectName[] | getComponentExtensionMBeanObjectNames(String componentName, String extensionName, String targetName, String targetInstanceName) | protected ObjectName | getDeploymentServiceMBeanObjectName(String targetName) returns the ObjectName for the DeploymentService Mbean of this component. | protected static String | getEbiJmxDomain() | protected ObjectName | getEbiStatusMBeanObjectName(String componentName, String targetName) | protected static EnvironmentContext | getEnvironmentContext() | protected ObjectName | getExtensionMBeanObjectName(String componentName, String targetName) returns the ObjectName for the Extension Mbean of this component. | protected static I18NBundle | getI18NBundle() | protected static I18NBundle | getI18NBundle(String packageName) | protected ObjectName | getInstallationServiceMBeanObjectName(String targetName) returns the ObjectName for the InstallationService Mbean of this
component. | protected Object | getMBeanAttribute(ObjectName objectName, String attributeName) | protected Properties | getMBeanAttributeValues(MBeanServerConnection connection, ObjectName objectName) | protected Map<String /*attributeName*/, Object | getMBeanAttributeValuesAsMap(MBeanServerConnection connection, ObjectName objectName) | protected MBeanServerConnection | getMBeanServerConnection(String targetName) | protected PlatformContext | getPlatformContext() | protected String | getPlatformContextAdminServerName() Get the instance name of the platform's administration server. | protected Set<String> | getPlatformContextClusterNames() Get a set of the names of all the clusters in the domain. | protected Set<String> | getPlatformContextClusteredServerNames() Get a set of the names of all the clustered servers in the domain. | protected String | getPlatformContextInstallRoot() Get the full path to the platform's instaall root directory. | protected String | getPlatformContextInstanceName() Get the name of this instance. | protected String | getPlatformContextInstanceRoot() Get the full path to the platform's instance root directory. | protected String | getPlatformContextJmxRmiPort() Get a string representation of the DAS JMX RMI connector port. | protected MBeanServer | getPlatformContextMBeanServer() Provides access to the platform's MBean server. | protected Set<String> | getPlatformContextServersInCluster(String clusterName) Get a set of the names of all the servers in the specified cluster. | protected Set<String> | getPlatformContextStandaloneServerNames() Get a set of the names of all the standalone servers in the domain. | protected String | getPlatformContextTargetName() Get the Target Name. | protected String | getPlatformContextTargetName(String instanceName) Get the Target Name for a specified instance. | protected String | getStackTrace(JBIRemoteException exception) | protected Object | invokeMBeanOperation(ObjectName objectName, String operationName, Object[] params, String[] signature) | protected Object | invokeMBeanOperation(MBeanServerConnection connection, ObjectName objectName, String operationName, Object[] params, String[] signature) | protected Object | invokeMBeanOperation(String targetName, ObjectName objectName, String operationName, Object[] params, String[] signature) | protected Object | invokeMBeanOperation(ObjectName objectName, String operationName, String param) | protected Object | invokeMBeanOperation(ObjectName objectName, String operationName) | protected boolean | isMBeanRegistered(ObjectName objectName) Test whether an mbean is registered. | protected boolean | isPlatformContextAdminServer() Determine whether this instance is the administration server instance. | protected boolean | isPlatformContextCluster(String targetName) Determine whether a target is a cluster. | protected boolean | isPlatformContextClusteredServer(String targetName) Determine whether the target is a clustered server. | protected boolean | isPlatformContextInstanceClustered(String instanceName) Determine whether or not an instance is clustered. | protected boolean | isPlatformContextInstanceUp(String instanceName) Determine if the specified instance is up. | protected boolean | isPlatformContextStandaloneServer(String targetName) Determine whether a target is a standalone server. | protected boolean | isPlatformContextValidTarget(String targetName) Determine whether a target is a valid server or cluster name. | protected boolean | isTargetUp(String targetName) Checks to see if the Target (server, cluster) is up or down. | protected boolean | isValidTarget(ObjectName objectName) Test whether it is a valid target. | protected boolean | isValidTarget(ObjectName objectName, String targetName) Test whether it is a valid target. | protected Map<String /*targetName*/, String[] | listTargetNames() Returns a map of target names to an array of target instance names. | protected static void | log(String aMsg) | protected static void | logDebug(String aMsg) | protected static void | logDebug(Exception ex) | protected static void | logError(Exception ex) | public static void | logWarning(Exception ex) | protected boolean | platformContextSupportsMultipleServers() Determine whether multiple servers are permitted within this AS
installation. | protected void | setAttributeValue(String targetName, ObjectName objectName, String attributeName, Object attributeValue) | protected void | setAttributeValue(ObjectName objectName, String attributeName, Object attributeValue) | protected void | setAttributeValue(MBeanServerConnection connection, ObjectName objectName, String attributeName, Object attributeValue) | protected void | setMBeanAttribute(ObjectName objectName, String attributeName, Object attributeValue) | protected void | setMBeanAttributes(ObjectName objectName, AttributeList attrList) | protected AttributeList | setMBeanAttributes(MBeanServerConnection mbeanServer, ObjectName objectName, AttributeList attrList) | protected String | setMBeanConfigAttributes(ObjectName objectName, AttributeList attrList) | protected String | setMBeanConfigAttributes(MBeanServerConnection mbeanServer, ObjectName objectName, AttributeList attrList) |
COMPONENT_CONFIG_INSTANCE_ERROR_KEY | final protected static String COMPONENT_CONFIG_INSTANCE_ERROR_KEY(Code) | | |
CUSTOM_ADMINISTRATION_NAME_KEY | final protected static String CUSTOM_ADMINISTRATION_NAME_KEY(Code) | | |
CUSTOM_CONFIGURATION_NAME_KEY | final protected static String CUSTOM_CONFIGURATION_NAME_KEY(Code) | | |
CUSTOM_LOGGER_NAME_KEY | final protected static String CUSTOM_LOGGER_NAME_KEY(Code) | | |
CUSTOM_MANAGEMENT_ACTIONS_NAME_KEY | final protected static String CUSTOM_MANAGEMENT_ACTIONS_NAME_KEY(Code) | | |
CUSTOM_STATISTICS_NAME_KEY | final protected static String CUSTOM_STATISTICS_NAME_KEY(Code) | | |
DOMAIN_TARGET_KEY | final protected static String DOMAIN_TARGET_KEY(Code) | | |
EBIJMXDOMAIN | protected static String EBIJMXDOMAIN(Code) | | Enterprise Business Integration JMX domain
|
IDENTIFICATION_NAME_KEY | final protected static String IDENTIFICATION_NAME_KEY(Code) | | |
JMX_EBI_DOMAIN | final protected static String JMX_EBI_DOMAIN(Code) | | JMX Domain name for the Enterprise Business Integration JMX MBeans
|
PASSWORD_MASK_CHARACTER | final protected static char PASSWORD_MASK_CHARACTER(Code) | | |
RUNNING_STATE | final protected static String RUNNING_STATE(Code) | | |
SERVER_TARGET_KEY | final protected static String SERVER_TARGET_KEY(Code) | | |
SERVICE_TYPE_KEY | final protected static String SERVICE_TYPE_KEY(Code) | | |
STARTED_STATE | final protected static String STARTED_STATE(Code) | | |
serialVersionUID | final static long serialVersionUID(Code) | | |
checkTargetType | protected TargetType checkTargetType(String target)(Code) | | Check the type of the specified target
Parameters: targetName - an enum representing the type of the target. |
createManagementException | protected Exception createManagementException(String bundleKey, String[] args, Exception sourceException)(Code) | | Creates a management message string and populates the exception
Parameters: bundleKey - Parameters: args - of Strings Parameters: sourceException - -the source exception to propagate Exception object created with a valid XML Management Message |
createManagementMessage | protected String createManagementMessage(String taskId, boolean successResult, String msgType, String msgCode, Object[] args)(Code) | | Creates a management message.
Parameters: taskId - Parameters: successResult - Parameters: msgType - Parameters: msgCode - Parameters: args - |
getAdminServiceMBeanObjectName | protected ObjectName getAdminServiceMBeanObjectName(String targetName)(Code) | | returns the ObjectName for the AdminService facade Mbean for a target
Parameters: targetName - the ObjectName of the AdminService MBean or null. |
getComponentExtensionMBeanObjectNames | protected Map<String, ObjectName[]> getComponentExtensionMBeanObjectNames(String componentName, String extensionName, String targetName) throws ManagementRemoteException(Code) | | Gets the extension MBean object names
Parameters: componentName - name of the component Parameters: extensionName - the name of the extension (e.g., Configuration, Logger, etc.) Parameters: targetName - name of the target (e.g., cluster1, server, etc.) throws: ManagementRemoteException - on error |
getComponentExtensionMBeanObjectNames | protected ObjectName[] getComponentExtensionMBeanObjectNames(String componentName, String extensionName, String targetName, String targetInstanceName) throws ManagementRemoteException(Code) | | Gets the extension MBean object names
Parameters: componentName - name of the component Parameters: extensionName - the name of the extension (e.g., Configuration, Logger, etc.) Parameters: targetName - name of the target (e.g., cluster1, server, etc.) Parameters: targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.) an array of ObjectName(s) throws: ManagementRemoteException - on error |
getDeploymentServiceMBeanObjectName | protected ObjectName getDeploymentServiceMBeanObjectName(String targetName)(Code) | | returns the ObjectName for the DeploymentService Mbean of this component.
Parameters: targetName - the ObjectName of the DeploymentService MBean or null. |
getEbiJmxDomain | protected static String getEbiJmxDomain()(Code) | | gets the ebi jmx domain name
domain name |
getExtensionMBeanObjectName | protected ObjectName getExtensionMBeanObjectName(String componentName, String targetName) throws ManagementRemoteException(Code) | | returns the ObjectName for the Extension Mbean of this component.
Parameters: componentName - Parameters: targetName - the ObjectName of the Extension MBean or null. |
getI18NBundle | protected static I18NBundle getI18NBundle()(Code) | | gives the I18N bundle
I18NBundle object |
getI18NBundle | protected static I18NBundle getI18NBundle(String packageName)(Code) | | gives the I18N bundle
Parameters: packageName - I18NBundle object |
getInstallationServiceMBeanObjectName | protected ObjectName getInstallationServiceMBeanObjectName(String targetName)(Code) | | returns the ObjectName for the InstallationService Mbean of this
component.
Parameters: targetName - the ObjectName of the InstallationService MBean or null. |
getPlatformContextAdminServerName | protected String getPlatformContextAdminServerName()(Code) | | Get the instance name of the platform's administration server. If the
platform does not provide a separate administration server, then this
method returns the name of the local instance.
instance name of the administration server |
getPlatformContextClusterNames | protected Set<String> getPlatformContextClusterNames()(Code) | | Get a set of the names of all the clusters in the domain.
a set of names of clusters in the domain. |
getPlatformContextClusteredServerNames | protected Set<String> getPlatformContextClusteredServerNames()(Code) | | Get a set of the names of all the clustered servers in the domain.
a set of names of clustered servers in the domain. |
getPlatformContextInstallRoot | protected String getPlatformContextInstallRoot()(Code) | | Get the full path to the platform's instaall root directory.
platform install root |
getPlatformContextInstanceName | protected String getPlatformContextInstanceName()(Code) | | Get the name of this instance.
the name of this server instance. |
getPlatformContextInstanceRoot | protected String getPlatformContextInstanceRoot()(Code) | | Get the full path to the platform's instance root directory.
platform instance root |
getPlatformContextJmxRmiPort | protected String getPlatformContextJmxRmiPort()(Code) | | Get a string representation of the DAS JMX RMI connector port.
the JMX RMI connector port as a (CODE>String. |
getPlatformContextMBeanServer | protected MBeanServer getPlatformContextMBeanServer()(Code) | | Provides access to the platform's MBean server.
platform MBean server. |
getPlatformContextServersInCluster | protected Set<String> getPlatformContextServersInCluster(String clusterName)(Code) | | Get a set of the names of all the servers in the specified cluster.
a set of names of servers in the cluster. |
getPlatformContextStandaloneServerNames | protected Set<String> getPlatformContextStandaloneServerNames()(Code) | | Get a set of the names of all the standalone servers in the domain.
a set of names of standalone servers in the domain. |
getPlatformContextTargetName | protected String getPlatformContextTargetName()(Code) | | Get the Target Name. If the instance is not a clustered instance then
the target name is the instance name. If the instance is part of a
cluster then the target name is the cluster name.
the target name. |
getPlatformContextTargetName | protected String getPlatformContextTargetName(String instanceName)(Code) | | Get the Target Name for a specified instance. If the instance is not
clustered the instance name is returned. This operation is invoked by
the JBI instance MBeans only.
the target name. |
getStackTrace | protected String getStackTrace(JBIRemoteException exception)(Code) | | Returns the stack-trace of the exception
Parameters: exception - stack traces as a string |
invokeMBeanOperation | protected Object invokeMBeanOperation(String targetName, ObjectName objectName, String operationName, Object[] params, String[] signature) throws ManagementRemoteException(Code) | | invokes the operation on mbean on appropriate target
Parameters: targetName - Parameters: objectName - object name Parameters: operationName - operation name Parameters: params - parameters Parameters: signature - signature of the parameters result object throws: ManagementRemoteException - on user error |
isPlatformContextAdminServer | protected boolean isPlatformContextAdminServer()(Code) | | Determine whether this instance is the administration server instance.
true if this instance is the administration server,false if not. |
isPlatformContextCluster | protected boolean isPlatformContextCluster(String targetName)(Code) | | Determine whether a target is a cluster.
true if targetName is a cluster,false if not. |
isPlatformContextClusteredServer | protected boolean isPlatformContextClusteredServer(String targetName)(Code) | | Determine whether the target is a clustered server.
true if targetName is a clusteredserver, false if not. |
isPlatformContextInstanceClustered | protected boolean isPlatformContextInstanceClustered(String instanceName)(Code) | | Determine whether or not an instance is clustered.
true if the instance is clustered,false if not. |
isPlatformContextInstanceUp | protected boolean isPlatformContextInstanceUp(String instanceName)(Code) | | Determine if the specified instance is up.
true if the instance is up and running, false otherwise |
isPlatformContextStandaloneServer | protected boolean isPlatformContextStandaloneServer(String targetName)(Code) | | Determine whether a target is a standalone server.
true if targetName is a standaloneserver, false if not. |
isPlatformContextValidTarget | protected boolean isPlatformContextValidTarget(String targetName)(Code) | | Determine whether a target is a valid server or cluster name.
true if targetName is a validstandalone server name or cluster name, false if not. |
isTargetUp | protected boolean isTargetUp(String targetName) throws ManagementRemoteException(Code) | | Checks to see if the Target (server, cluster) is up or down.
Parameters: targetName - name of the target (e.g., cluster1, server, etc.) true if Target is up, false if not throws: ManagementRemoteException - if error or exception occurs. |
listTargetNames | protected Map<String /*targetName*/, String[] listTargetNames() throws ManagementRemoteException(Code) | | Returns a map of target names to an array of target instance names.
In the case cluster targets, the key contains the cluster target name,
and the the value contains an array of the "target instance" names.
If it is not a cluster target, the key contains the targetName, and
the value is null.
map of target names to array of target instance names throws: ManagementRemoteException - |
log | protected static void log(String aMsg)(Code) | | logs the message
Parameters: aMsg - message string |
logDebug | protected static void logDebug(String aMsg)(Code) | | logs the message
Parameters: aMsg - message string |
logDebug | protected static void logDebug(Exception ex)(Code) | | logs the message
Parameters: ex - exception |
logError | protected static void logError(Exception ex)(Code) | | logs errors
Parameters: ex - exception |
logWarning | public static void logWarning(Exception ex)(Code) | | logs warnings
Parameters: ex - exception |
platformContextSupportsMultipleServers | protected boolean platformContextSupportsMultipleServers()(Code) | | Determine whether multiple servers are permitted within this AS
installation.
true if multiple servers are permitted. |
|
|