Package com.microej.kf.util.monitoring
Class ResourceMonitoringServiceImpl.MonitoringTask
- java.lang.Object
-
- ej.bon.TimerTask
-
- com.microej.kf.util.monitoring.ResourceMonitoringServiceImpl.MonitoringTask
-
- All Implemented Interfaces:
Runnable
- Enclosing class:
- ResourceMonitoringServiceImpl
public static final class ResourceMonitoringServiceImpl.MonitoringTask extends TimerTask
This class represents the monitoring task ran at regular interval.
-
-
Constructor Summary
Constructors Constructor Description MonitoringTask(MonitoringData monitoringData, boolean runGcBeforeCollecting)Instantiates the monitoring task.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()The action to be performed by this timer task.-
Methods inherited from class ej.bon.TimerTask
cancel, scheduledExecutionTime, uncaughtException
-
-
-
-
Constructor Detail
-
MonitoringTask
public MonitoringTask(MonitoringData monitoringData, boolean runGcBeforeCollecting)
Instantiates the monitoring task.- Parameters:
monitoringData- the data structure to regroup all the monitoring data.runGcBeforeCollecting- the boolean to call the GC before collecting new monitoring data.
-
-