public abstract class JMXConnectionImpl extends Object implements JMXConnection
| Modifier and Type | Field and Description |
|---|---|
protected MBeanServerConnection |
mMBeanServerConnection
connection to Mbeanserver
|
| Constructor and Description |
|---|
JMXConnectionImpl()
base implementation constructor
|
| Modifier and Type | Method and Description |
|---|---|
static JMXConnection |
createJmxConnection(Properties connProps)
creates jmx connection
|
static JMXConnection |
createJmxConnection(String host,
String port,
String username,
String password)
creates jmx connection
|
protected static I18NBundle |
getI18NBundle()
gives the I18N bundle
|
Object |
getMBeanAttribute(ObjectName name,
String attribute)
return the attribute value
|
MBeanServerConnection |
getMBeanServerConnection()
returns mbean server connection.
|
Object |
invokeMBeanOperation(ObjectName name,
String operationName,
Object[] params,
String[] signature)
invokes operation
|
void |
setMBeanAttribute(ObjectName name,
Attribute attribute)
set the attribute on mbean
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseConnection, openConnectionprotected MBeanServerConnection mMBeanServerConnection
protected static I18NBundle getI18NBundle()
public MBeanServerConnection getMBeanServerConnection() throws IllegalStateException
getMBeanServerConnection in interface JMXConnectionIllegalStateException - on errorpublic Object invokeMBeanOperation(ObjectName name, String operationName, Object[] params, String[] signature) throws JMXConnectionException, JBIRemoteException
invokeMBeanOperation in interface JMXConnectionname - name fo mbeanoperationName - operation nameparams - parameterssignature - parameter signaturesJMXConnectionException - on errorJBIRemoteException - on errorpublic void setMBeanAttribute(ObjectName name, Attribute attribute) throws JMXConnectionException, JBIRemoteException
setMBeanAttribute in interface JMXConnectionname - mbean jmx object nameattribute - attributeJMXConnectionException - on errorJBIRemoteException - on errorpublic Object getMBeanAttribute(ObjectName name, String attribute) throws JMXConnectionException, JBIRemoteException
getMBeanAttribute in interface JMXConnectionname - jmx object nameattribute - attribute nameJMXConnectionException - on errorJBIRemoteException - on errorpublic static JMXConnection createJmxConnection(String host, String port, String username, String password) throws JMXConnectionException
username - usernamepassword - passwordhost - host nameport - port numberJMXConnectionException - on errorpublic static JMXConnection createJmxConnection(Properties connProps) throws JMXConnectionException
connProps - propertiesJMXConnectionException - on errorCopyright © 2011-2016 OpenESB Community. All Rights Reserved.