Class 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 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