public class DSLJmx extends Object
JmxClient or JmxJolokiaProxyClient| Modifier and Type | Method and Description |
|---|---|
String |
getPropertyValue(String jmxObjectName,
String jmxAttributeName)
Get server property value through jmx connection
Example:
Alfresco > Configuration > email > inbound , email.server.enabled
getPropertyValue("Alfresco:Type=Configuration,Category=email,id1=inbound", "email.server.enabled")
|
void |
updatePropertyWithValue(String jmxObjectName,
String jmxAttributeName,
String jmxAttributeNewValue)
Update property value on server side through jmx connection, for example if you want to disable email server, you'll use the following parameters:
updatePropertyWithValue("Alfresco:Type=Configuration,Category=email,id1=inbound", "email.server.enabled", "false") |
protected Jmx jmx
public DSLJmx(Jmx jmx)
public void updatePropertyWithValue(String jmxObjectName, String jmxAttributeName, String jmxAttributeNewValue) throws Exception
jmxObjectName - jmxAttributeName - jmxAttributeNewValue - Exceptionpublic String getPropertyValue(String jmxObjectName, String jmxAttributeName) throws Exception
jmxObjectName - jmxAttributeName - ExceptionCopyright © 2005–2019 Alfresco Software. All rights reserved.