Class JmxJolokiaProxyClient

  • All Implemented Interfaces:
    Jmx

    @Service
    public class JmxJolokiaProxyClient
    extends java.lang.Object
    implements Jmx
    Jolokia is a JMX-HTTP bridge giving an alternative to JSR-160 connectors. It is an agent based approach with support for many platforms. In addition to basic JMX operations it enhances JMX remoting with unique features like bulk requests and fine grained security policies. {@link https://jolokia.org} In order to use this class you need to have this jolokia agent started on test machine use JmxBuilder to define this service
    • Constructor Detail

      • JmxJolokiaProxyClient

        public JmxJolokiaProxyClient()
    • Method Detail

      • readProperty

        public java.lang.Object readProperty​(java.lang.String objectName,
                                             java.lang.String attributeName)
                                      throws java.lang.Exception
        Specified by:
        readProperty in interface Jmx
        Throws:
        java.lang.Exception
      • writeProperty

        public java.lang.Object writeProperty​(java.lang.String objectName,
                                              java.lang.String attributeName,
                                              java.lang.Object attributeValue)
                                       throws java.lang.Exception
        Specified by:
        writeProperty in interface Jmx
        Throws:
        java.lang.Exception
      • refreshServerProperty

        public void refreshServerProperty​(java.lang.String objectName,
                                          JmxClient.JmxPropertyOperation operation)
                                   throws java.lang.Exception
        Use this to perform start/stop operation after changing server properties
        Parameters:
        objectName -
        operation -
        Throws:
        javax.management.MalformedObjectNameException
        javax.management.ReflectionException
        javax.management.MBeanException
        javax.management.InstanceNotFoundException
        java.lang.Exception
      • getClient

        public org.jolokia.client.J4pClient getClient()
      • getJolokiaAgentServerUrlPath

        public java.lang.String getJolokiaAgentServerUrlPath()
      • isJMXEnabled

        public boolean isJMXEnabled()
        Specified by:
        isJMXEnabled in interface Jmx
      • executeJMXMethod

        public java.lang.Object executeJMXMethod​(java.lang.String objectName,
                                                 java.lang.String methodName,
                                                 java.lang.Object... pArgs)
                                          throws java.lang.Exception
        Specified by:
        executeJMXMethod in interface Jmx
        Throws:
        java.lang.Exception