@Service public class JmxJolokiaProxyClient extends Object implements Jmx
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| Modifier and Type | Field and Description |
|---|---|
protected TasProperties |
properties |
| Constructor and Description |
|---|
JmxJolokiaProxyClient() |
| Modifier and Type | Method and Description |
|---|---|
Object |
executeJMXMethod(String objectName,
String methodName,
Object... pArgs) |
org.jolokia.client.J4pClient |
getClient() |
String |
getJolokiaAgentServerUrlPath() |
boolean |
isJMXEnabled() |
Object |
readProperty(String objectName,
String attributeName) |
void |
refreshServerProperty(String objectName,
JmxClient.JmxPropertyOperation operation)
Use this to perform start/stop operation after changing server properties
|
Object |
writeProperty(String objectName,
String attributeName,
Object attributeValue) |
@Autowired protected TasProperties properties
public Object readProperty(String objectName, String attributeName) throws Exception
readProperty in interface JmxExceptionpublic Object writeProperty(String objectName, String attributeName, Object attributeValue) throws Exception
writeProperty in interface JmxExceptionpublic void refreshServerProperty(String objectName, JmxClient.JmxPropertyOperation operation) throws Exception
objectName - operation - MalformedObjectNameExceptionReflectionExceptionMBeanExceptionInstanceNotFoundExceptionExceptionpublic org.jolokia.client.J4pClient getClient()
public String getJolokiaAgentServerUrlPath()
public boolean isJMXEnabled()
isJMXEnabled in interface JmxCopyright © 2005–2019 Alfresco Software. All rights reserved.