public abstract class AbstractServiceImpl extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CANNED_RESPONSE |
protected static I18NBundle |
I18NBUNDLE
i18n
|
protected boolean |
isRemoteConnection
is this a local or remote connection
|
protected MBeanServerConnection |
remoteConnection
remote MBeanServer connection
|
| Constructor and Description |
|---|
AbstractServiceImpl()
Constructor - Constructs a new instance of AbstractServiceImpl
|
AbstractServiceImpl(MBeanServerConnection serverConnection)
Constructor - Constructs a new instance of AbstractServiceImpl
|
AbstractServiceImpl(MBeanServerConnection serverConnection,
boolean isRemoteConnection)
Constructor - Constructs a new instance of AbstractServiceImpl
|
| Modifier and Type | Method and Description |
|---|---|
protected ObjectName |
getAdministrationServiceMBeanObjectName()
return Administration Service MBean object name
|
protected ObjectName |
getConfigurationServiceMBeanObjectName()
return Configuration Service MBean object name
|
protected ObjectName |
getDeploymentServiceMBeanObjectName()
return Deployment Service MBean object name
|
protected I18NBundle |
getI18NBundle()
gives the I18N bundle
|
protected ObjectName |
getInstallationServiceMBeanObjectName()
return Installation Service MBean object name
|
protected MBeanServerConnection |
getMBeanServerConnection()
returns mbean server connection.
|
protected ObjectName |
getNotificationServiceMBeanObjectName()
return Notification Service MBean object name
|
protected ObjectName |
getPerformanceMeasurementServiceMBeanObjectName()
return Performance Measurement Service MBean object name
|
protected ObjectName |
getRuntimeManagementServiceMBeanObjectName()
return Runtime Management Service MBean object name
|
protected Object |
invokeMBeanOperation(ObjectName objectName,
String operationName,
Object[] params,
String[] signature)
open connection, invokes the operation on mbean and closes connection.
|
protected Object |
invokeMBeanOperation(ObjectName objectName,
String operationName,
String param)
Single param operation invocation.
|
protected boolean |
isRegistered(ObjectName objectName)
Test whether an mbean is registered.
|
protected boolean |
isRemoteConnection()
is this a local or remote connection
|
protected Map<String,String[]> |
listTargetNames()
Returns a map of target names to an array of target instance names.
|
protected Set<ObjectName> |
queryNames(String pattern,
QueryExp query)
get a list of object names matching the pattern/query
|
protected static String CANNED_RESPONSE
protected static I18NBundle I18NBUNDLE
protected transient MBeanServerConnection remoteConnection
protected boolean isRemoteConnection
public AbstractServiceImpl()
public AbstractServiceImpl(MBeanServerConnection serverConnection)
serverConnection - public AbstractServiceImpl(MBeanServerConnection serverConnection, boolean isRemoteConnection)
serverConnection - isRemoteConnection - protected boolean isRemoteConnection()
protected I18NBundle getI18NBundle()
protected MBeanServerConnection getMBeanServerConnection() throws IllegalStateException
IllegalStateException - on errorprotected boolean isRegistered(ObjectName objectName)
objectName - JBIRemoteExceptionprotected ObjectName getAdministrationServiceMBeanObjectName() throws ManagementRemoteException
ManagementRemoteExceptionprotected ObjectName getConfigurationServiceMBeanObjectName() throws ManagementRemoteException
ManagementRemoteExceptionprotected ObjectName getDeploymentServiceMBeanObjectName() throws ManagementRemoteException
ManagementRemoteExceptionprotected ObjectName getInstallationServiceMBeanObjectName() throws ManagementRemoteException
ManagementRemoteExceptionprotected ObjectName getRuntimeManagementServiceMBeanObjectName() throws ManagementRemoteException
ManagementRemoteExceptionprotected ObjectName getPerformanceMeasurementServiceMBeanObjectName() throws ManagementRemoteException
ManagementRemoteExceptionprotected ObjectName getNotificationServiceMBeanObjectName() throws ManagementRemoteException
ManagementRemoteExceptionprotected Set<ObjectName> queryNames(String pattern, QueryExp query) throws ManagementRemoteException
pattern - pattern stringquery - query expressionManagementRemoteExceptionprotected Map<String,String[]> listTargetNames() throws ManagementRemoteException
ManagementRemoteExceptionprotected Object invokeMBeanOperation(ObjectName objectName, String operationName, Object[] params, String[] signature) throws ManagementRemoteException
objectName - object nameoperationName - operation nameparams - parameterssignature - signature of the parametersJBIRemoteException - on errorManagementRemoteExceptionprotected Object invokeMBeanOperation(ObjectName objectName, String operationName, String param) throws ManagementRemoteException
objectName - object nameoperationName - operation nameparam - String parameterManagementRemoteException - on errorCopyright © 2011-2016 OpenESB Community. All Rights Reserved.