public class JMXClient extends Object
| Constructor and Description |
|---|
JMXClient(String connectionName,
String hostName,
String rmiServerPort,
String rmiRegistryPort,
String userName,
String password) |
| Modifier and Type | Method and Description |
|---|---|
MBeanServerConnection |
connect()
connect to org.wso2.carbon for JMX monitoring
|
void |
disconnect()
Disconnect from JMX endpoint
|
Object |
getAttribute(String attribute)
Get attribute for the given name
|
Object |
invoke(String operationName,
Object[] params,
String[] signatureTypes) |
public JMXClient(String connectionName, String hostName, String rmiServerPort, String rmiRegistryPort, String userName, String password) throws MalformedObjectNameException
connectionName - - full name of the service with the connectionhostName - - host name of the data service serveruserName - - user namepassword - - passwordMalformedObjectNameException - - throws if the connection unsuccessfulpublic MBeanServerConnection connect() throws IOException, MalformedObjectNameException
IOException - - error in making connectionMalformedObjectNameException - - error in making connectionpublic void disconnect()
throws ListenerNotFoundException,
InstanceNotFoundException,
IOException
public Object invoke(String operationName, Object[] params, String[] signatureTypes) throws Exception
operationName - - operation name to be invokedparams - - parameters for the operationsignatureTypes- - array of Strings which contains each parameters' typeException - - throws if operation invocation failsCopyright © 2018 WSO2. All rights reserved.