|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjodd.util.JmxClient
public class JmxClient
Simple JMX client.
Field Summary | |
---|---|
protected AtomicBoolean |
connected
|
protected JMXConnector |
connector
|
protected MBeanServerConnection |
mbsc
|
Constructor Summary | |
---|---|
JmxClient(String serviceUrl)
|
|
JmxClient(String serviceUrl,
String userName,
String passwd)
|
Method Summary | ||
---|---|---|
protected void |
assertConnected()
Checks if we are connected to the jmx |
|
protected ObjectName |
buildObjectName(String mbeanName)
Builds object name. |
|
void |
close()
Closes JMX connector. |
|
Object |
getAttribute(String mbeanName,
String attributeName)
Returns bean attribute. |
|
|
getMBeanProxy(String mbeanName,
Class<T> mBeanInterface)
Creates MBean proxy. |
|
void |
invoke(String mbeanName,
String methodName)
Invokes bean method. |
|
void |
invoke(String mbeanName,
String methodName,
Object[] params,
String[] signature)
Invokes bean method. |
|
void |
setAttribute(String mbeanName,
String attributeName,
Object value)
Defines bean attribute. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JMXConnector connector
protected MBeanServerConnection mbsc
protected AtomicBoolean connected
Constructor Detail |
---|
public JmxClient(String serviceUrl) throws IOException
IOException
public JmxClient(String serviceUrl, String userName, String passwd) throws IOException
IOException
Method Detail |
---|
public void close() throws IOException
IOException
public <T> T getMBeanProxy(String mbeanName, Class<T> mBeanInterface)
public Object getAttribute(String mbeanName, String attributeName)
public void setAttribute(String mbeanName, String attributeName, Object value)
public void invoke(String mbeanName, String methodName)
public void invoke(String mbeanName, String methodName, Object[] params, String[] signature)
protected void assertConnected()
protected ObjectName buildObjectName(String mbeanName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |