Package de.dlr.proseo.monitor.apimetrics
Class MetricsCycleBase
java.lang.Object
java.lang.Thread
de.dlr.proseo.monitor.apimetrics.MetricsCycleBase
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
Metrics10Minutes,MetricsHourly
This abstract class contains the base functionality to call the metrics function cyclic.
- Author:
- Ernst Melchinger
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MetricsThe Metrics instance used for calculationsprotected longMilliseconds to wait between the callsFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionMetricsCycleBase(MonitorConfiguration config, org.springframework.transaction.PlatformTransactionManager txManager, jakarta.persistence.EntityManager em) Constructor of a MetricsCycleBase instance -
Method Summary
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
metrics
The Metrics instance used for calculations -
millisToWait
protected long millisToWaitMilliseconds to wait between the calls
-
-
Constructor Details
-
MetricsCycleBase
public MetricsCycleBase(MonitorConfiguration config, org.springframework.transaction.PlatformTransactionManager txManager, jakarta.persistence.EntityManager em) Constructor of a MetricsCycleBase instance- Parameters:
config- The monitor configurationtxManager- The transaction managerem- The JPA entity manager
-
-
Method Details