org.qi4j.library.circuitbreaker.jmx

## Class CircuitBreakerJMX

- java.lang.Object
- - javax.management.NotificationBroadcasterSupport
  - - org.qi4j.library.circuitbreaker.jmx.CircuitBreakerJMX

- All Implemented Interfaces:
    NotificationBroadcaster, NotificationEmitter, CircuitBreakerJMXMBean

      public class CircuitBreakerJMX
      extends NotificationBroadcasterSupport
      implements CircuitBreakerJMXMBean

  MBean for circuit breakers. Exposes CB properties and also the property changes as notifications.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CircuitBreakerJMX(CircuitBreaker circuitBreaker, ObjectName mbeanObjectName)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getEnableOn()`
    `String` | `getLastErrorMessage()`
    `double` | `getServiceLevel()`
    `String` | `getStatus()`
    `int` | `getThreshold()`
    `String` | `getTrippedOn()`
    `void` | `trip()`
    `String` | `turnOn()`

    - ### Methods inherited from class javax.management.NotificationBroadcasterSupport

      `addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### CircuitBreakerJMX

          public CircuitBreakerJMX(CircuitBreaker circuitBreaker,
                           ObjectName mbeanObjectName)

  - ### Method Detail

    - #### getStatus

          public String getStatus()

      Specified by:
        `getStatus` in interface `CircuitBreakerJMXMBean`

    - #### getThreshold

          public int getThreshold()

      Specified by:
        `getThreshold` in interface `CircuitBreakerJMXMBean`

    - #### getServiceLevel

          public double getServiceLevel()

      Specified by:
        `getServiceLevel` in interface `CircuitBreakerJMXMBean`

    - #### getLastErrorMessage

          public String getLastErrorMessage()

      Specified by:
        `getLastErrorMessage` in interface `CircuitBreakerJMXMBean`

    - #### getTrippedOn

          public String getTrippedOn()

      Specified by:
        `getTrippedOn` in interface `CircuitBreakerJMXMBean`

    - #### getEnableOn

          public String getEnableOn()

      Specified by:
        `getEnableOn` in interface `CircuitBreakerJMXMBean`

    - #### turnOn

          public String turnOn()

      Specified by:
        `turnOn` in interface `CircuitBreakerJMXMBean`

    - #### trip

          public void trip()

      Specified by:
        `trip` in interface `CircuitBreakerJMXMBean`