Package org.alfresco.utility.dsl
Class DSLJmx
java.lang.Object
org.alfresco.utility.dsl.DSLJmx
DSL for interacting with JMX (using direct JMX call see
JmxClient or JmxJolokiaProxyClient-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPropertyValue(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")voidupdatePropertyWithValue(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")
-
Field Details
-
jmx
-
-
Constructor Details
-
DSLJmx
-
-
Method Details
-
updatePropertyWithValue
public void updatePropertyWithValue(String jmxObjectName, String jmxAttributeName, String jmxAttributeNewValue) throws Exception 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")- Parameters:
jmxObjectName-jmxAttributeName-jmxAttributeNewValue-- Throws:
Exception
-
getPropertyValue
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")- Parameters:
jmxObjectName-jmxAttributeName-- Returns:
- Throws:
Exception
-