Class MxDelegate

    • Method Detail

      • getInstance

        public static MxDelegate getInstance()
      • init

        public void init()
        Initialize, or reinitialize, the JMX instrumentation support in JetS3t. This method must be invoked at least once within a JVM for the JMX instrumentation to work. When JetS3t's instrumentation is enabled Service and Exception events are always logged, whereas Bucket and Object event logging must be specifically enabled.

        This method checks the given properties for the following System properties:

        PropertyEffect
        com.sun.management.jmxremote If present, enable JMX instrumentation for JetS3t for Java 1.5. On Java 1.5 this System setting is required to enable JMX in general, and if it is present then we automatically enable instrumentation for JetS3t as well.
        jets3t.mx If present, enable JMX instrumentation for JetS3t for Java 1.6+. Because Java 1.6+ no longer requires the "com.sun.management.jmxremote" System setting for JMX to be enabled in general, this property can be used as a substitute that allows users to decide whether JetS3t's JMX instrumentation should be turned on or off.
      • isJmxDelegationActive

        public boolean isJmxDelegationActive()
        Returns:
        true if the JetS3t's JMX delegate has been initialized and activated.