Package org.pipecraft.infra.monitoring
Class SystemHealthMonitorable
- java.lang.Object
-
- org.pipecraft.infra.monitoring.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 Summary
Constructors Constructor Description SystemHealthMonitorable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,? extends JsonMonitorable>getChildren()net.minidev.json.JSONObjectgetOwnMetrics()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pipecraft.infra.monitoring.JsonMonitorable
getFullMetrics
-
-
-
-
Method Detail
-
getOwnMetrics
public net.minidev.json.JSONObject getOwnMetrics()
- Specified by:
getOwnMetricsin interfaceJsonMonitorable- Returns:
- The json string describing the entity, not including the child entities.
-
getChildren
public Map<String,? extends JsonMonitorable> getChildren()
- Specified by:
getChildrenin interfaceJsonMonitorable- 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.
-
-