Package org.alfresco.utility.network
Class JmxJolokiaProxyClient
java.lang.Object
org.alfresco.utility.network.JmxJolokiaProxyClient
- All Implemented Interfaces:
Jmx
Jolokia is a JMX-HTTP bridge giving an alternative to JSR-160 connectors.
It is an agent based approach with support for many platforms.
In addition to basic JMX operations it enhances JMX remoting with unique features like bulk requests and fine grained security policies.
{@link https://jolokia.org}
In order to use this class you need to have this jolokia agent started on test machine
use
JmxBuilder to define this service-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteJMXMethod(String objectName, String methodName, Object... pArgs) org.jolokia.client.J4pClientbooleanreadProperty(String objectName, String attributeName) voidrefreshServerProperty(String objectName, JmxClient.JmxPropertyOperation operation) Use this to perform start/stop operation after changing server propertieswriteProperty(String objectName, String attributeName, Object attributeValue)
-
Field Details
-
properties
-
-
Constructor Details
-
JmxJolokiaProxyClient
public JmxJolokiaProxyClient()
-
-
Method Details
-
readProperty
- Specified by:
readPropertyin interfaceJmx- Throws:
Exception
-
writeProperty
public Object writeProperty(String objectName, String attributeName, Object attributeValue) throws Exception - Specified by:
writePropertyin interfaceJmx- Throws:
Exception
-
refreshServerProperty
public void refreshServerProperty(String objectName, JmxClient.JmxPropertyOperation operation) throws Exception Use this to perform start/stop operation after changing server properties- Parameters:
objectName-operation-- Throws:
MalformedObjectNameExceptionReflectionExceptionMBeanExceptionInstanceNotFoundExceptionException
-
getClient
public org.jolokia.client.J4pClient getClient() -
getJolokiaAgentServerUrlPath
-
isJMXEnabled
public boolean isJMXEnabled()- Specified by:
isJMXEnabledin interfaceJmx
-
executeJMXMethod
public Object executeJMXMethod(String objectName, String methodName, Object... pArgs) throws Exception - Specified by:
executeJMXMethodin interfaceJmx- Throws:
Exception
-