Package org.alfresco.utility.dsl
Class DSLJmx
- java.lang.Object
-
- org.alfresco.utility.dsl.DSLJmx
-
public class DSLJmx extends java.lang.ObjectDSL for interacting with JMX (using direct JMX call seeJmxClientorJmxJolokiaProxyClient
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetPropertyValue(java.lang.String jmxObjectName, java.lang.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(java.lang.String jmxObjectName, java.lang.String jmxAttributeName, java.lang.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 Detail
-
jmx
protected Jmx jmx
-
-
Constructor Detail
-
DSLJmx
public DSLJmx(Jmx jmx)
-
-
Method Detail
-
updatePropertyWithValue
public void updatePropertyWithValue(java.lang.String jmxObjectName, java.lang.String jmxAttributeName, java.lang.String jmxAttributeNewValue) throws java.lang.ExceptionUpdate 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:
java.lang.Exception
-
getPropertyValue
public java.lang.String getPropertyValue(java.lang.String jmxObjectName, java.lang.String jmxAttributeName) throws java.lang.ExceptionGet 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:
java.lang.Exception
-
-