public class Watcher extends WatcherData implements java.lang.Runnable
Runnable for compliance with ScheduledExecutorService.
Call logCurrentStatus() to produce a 1-line summary of the current system status as information message and an encoded event as trace
message.DETAILED_MESSAGE_PREFIXclassLoading_loaded, classLoading_total, classLoading_unloaded, compilationTime, garbageCollector_count, garbageCollector_time, heap_commited, heap_max, heap_used, nonHeap_commited, nonHeap_max, nonHeap_used, objectPendingFinalizationCount, PROP_CLASS_LOADING, PROP_COMPILATION_TIME, PROP_FINALIZATION_COUNT, PROP_GARBAGE_COLLECTOR, PROP_HEAP, PROP_MEMORY, PROP_NON_HEAP, PROP_SYSTEM_LOAD, runtime_maxMemory, runtime_totalMemory, runtime_usedMemory, systemLoadEVENT_POSITION, EVENT_TIME, eventPosition, SESSION_UUID, sessionUuid, time| Constructor and Description |
|---|
Watcher(org.slf4j.Logger logger)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.slf4j.Logger |
getLogger() |
void |
logCurrentStatus()
Produces a 1-line summary of the current system status as information message and an encoded event as trace message.
|
void |
run() |
read, readableString, readableWrite, writecollectManagedBeanStatus, collectPlatformStatus, collectRuntimeStatus, isCompletelyEqualsImpl, readPropertyImpl, resetImpl, writePropertiesImplgetEventPosition, getSessionUuid, getTime, isCompletelyEqualsTo, read, reset, writepublic Watcher(org.slf4j.Logger logger)
logger - Logger that reports messages.public org.slf4j.Logger getLogger()
public void run()
run in interface java.lang.Runnablepublic void logCurrentStatus()