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_PREFIX
classLoading_loaded, classLoading_total, classLoading_unloaded, compilationTime, garbageCollector_count, garbageCollector_time, heap_commited, heap_max, heap_used, nonHeap_commited, nonHeap_max, nonHeap_used, objectPendingFinalizationCount, runtime_maxMemory, runtime_totalMemory, runtime_usedMemory, systemLoad
EVENT_CATEGORY, EVENT_NAME, EVENT_POSITION, eventCategory, eventName, 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, write
collectManagedBeanStatus, collectPlatformStatus, collectRuntimeStatus, isCompletelyEqualsImpl, readPropertyImpl, resetImpl, writePropertiesImpl
equals, getEventCategory, getEventName, getEventPosition, getFullID, getSessionUuid, getTime, hashCode, isCompletelyEqualsTo, isSameAs, read, reset, toString, write
public Watcher(org.slf4j.Logger logger)
logger
- Logger that reports messages.public org.slf4j.Logger getLogger()
public void run()
run
in interface java.lang.Runnable
public void logCurrentStatus()