Class DSLJmx

java.lang.Object
org.alfresco.utility.dsl.DSLJmx

public class DSLJmx extends Object
DSL for interacting with JMX (using direct JMX call see JmxClient or JmxJolokiaProxyClient
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected Jmx
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    DSLJmx(Jmx jmx)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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")

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • jmx

      protected Jmx jmx
  • Constructor Details

    • DSLJmx

      public DSLJmx(Jmx jmx)
  • 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

      public String getPropertyValue(String jmxObjectName, String jmxAttributeName) throws Exception
      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