Class DSLJmx

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Jmx jmx  
    • Constructor Summary

      Constructors 
      Constructor Description
      DSLJmx​(Jmx jmx)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPropertyValue​(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")
      void updatePropertyWithValue​(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")
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.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:
        java.lang.Exception
      • getPropertyValue

        public java.lang.String getPropertyValue​(java.lang.String jmxObjectName,
                                                 java.lang.String jmxAttributeName)
                                          throws java.lang.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:
        java.lang.Exception