public class JMXUtility extends Object
| Modifier and Type | Field and Description |
|---|---|
JMXConnector |
connector
The connector.
|
| Constructor and Description |
|---|
JMXUtility(String host,
int port)
Instantiates a new jMX utility.
|
| Modifier and Type | Method and Description |
|---|---|
MBeanServerConnection |
getConnection()
Gets the
MBeanServerConnection. |
RapidFastMap<String,String> |
getDetails(String mBeanStrName)
Gets the details.
|
String |
getURL()
Gets the uRL.
|
Object |
invoke(ObjectName objName,
String methodName,
Object[] args,
String[] signature)
Invoke.
|
static void |
main(String[] args)
The main method.
|
void |
reload(String appName)
Reload.
|
public JMXConnector connector
public JMXUtility(String host, int port)
host - the hostport - the portpublic String getURL()
public RapidFastMap<String,String> getDetails(String mBeanStrName) throws JMXWrapperException
mBeanStrName - the m bean str nameJMXWrapperException - the jMX wrapper exceptionpublic MBeanServerConnection getConnection()
MBeanServerConnection.public Object invoke(ObjectName objName, String methodName, Object[] args, String[] signature) throws InstanceNotFoundException, MBeanException, ReflectionException, IOException
objName - the obj namemethodName - the method nameargs - the argssignature - the signatureInstanceNotFoundException - the instance not found exceptionMBeanException - the m bean exceptionReflectionException - the reflection exceptionIOException - Signals that an I/O exception has occurred.public void reload(String appName) throws InstanceNotFoundException, MalformedObjectNameException, MBeanException, ReflectionException, NullPointerException, IOException
appName - the app nameInstanceNotFoundException - the instance not found exceptionMalformedObjectNameException - the malformed object name exceptionMBeanException - the m bean exceptionReflectionException - the reflection exceptionNullPointerException - the null pointer exceptionIOException - Signals that an I/O exception has occurred.public static void main(String[] args) throws JMXWrapperException, InstanceNotFoundException, MalformedObjectNameException, MBeanException, ReflectionException, NullPointerException, IOException
args - the argumentsJMXWrapperException - the jMX wrapper exceptionInstanceNotFoundException - the instance not found exceptionMalformedObjectNameException - the malformed object name exceptionMBeanException - the m bean exceptionReflectionException - the reflection exceptionNullPointerException - the null pointer exceptionIOException - Signals that an I/O exception has occurred.Copyright © 2016 utils4j. All Rights Reserved.