Class ResourceMonitoringServiceImpl.MonitoringTask

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    ResourceMonitoringServiceImpl

    public static final class ResourceMonitoringServiceImpl.MonitoringTask
    extends ej.bon.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
      void run()  
      • Methods inherited from class ej.bon.TimerTask

        cancel, scheduledExecutionTime, uncaughtException
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        Specified by:
        run in class ej.bon.TimerTask