Class SystemHealthMonitorable

  • All Implemented Interfaces:
    JsonMonitorable

    public class SystemHealthMonitorable
    extends Object
    implements JsonMonitorable
    A monitorable covering different JVM and runtime aspects TODO(Eyal): Consider implementing a generic JMXBean->JSON converter, so that any MXBean can be exposed as a JsonMonitorable easily.
    Author:
    Eyal Schneider
    • Constructor Detail

      • SystemHealthMonitorable

        public SystemHealthMonitorable()
    • Method Detail

      • getOwnMetrics

        public net.minidev.json.JSONObject getOwnMetrics()
        Specified by:
        getOwnMetrics in interface JsonMonitorable
        Returns:
        The json string describing the entity, not including the child entities.
      • getChildren

        public Map<String,​? extends JsonMonitorable> getChildren()
        Specified by:
        getChildren in interface JsonMonitorable
        Returns:
        The monitorable children of this entity, as [id, JsonExportable] pairs. Using this method, the framework can manage a complete tree to be monitored, where every entity has a unique path.