Package sk.iway.iwcm.system.monitoring
Class MonitoringDB
java.lang.Object
sk.iway.iwcm.system.monitoring.MonitoringDB
MonitoringDB.java
Serializes and deserializes monitoring statistics
into/from table cluster_monitoring, using
XMLEncoder
.
This is done if and only if server runs in cluster configuration.
Otherwise it makes no sense to persist this data, as we can take
them directly from memory. Persisting this data allows us
to monitor execution times on any other node, even if that
node lacks administration interface.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<ExecutionEntry>
getComponentStatsFor
(String node) static List<ExecutionEntry>
getDocumentStatsFor
(String node) static void
getInstance
(boolean refresh) Refresh called byClusterRefresher
static List<ExecutionEntry>
getSqlStatsFor
(String node) static void
Writes snapshot of stats into cluster_monitoring table
-
Field Details
-
TYPE_SQL
- See Also:
-
TYPE_COMPONENT
- See Also:
-
TYPE_DOCUMENT
- See Also:
-
-
Constructor Details
-
MonitoringDB
public MonitoringDB()
-
-
Method Details
-
getInstance
public static void getInstance(boolean refresh) Refresh called byClusterRefresher
-
getSqlStatsFor
-
getComponentStatsFor
-
getDocumentStatsFor
-