tigase.monitor.tasks

## Class LoadCheckerTask

- java.lang.Object
- - tigase.monitor.tasks.AbstractConfigurableTask
  - - tigase.monitor.tasks.AbstractConfigurableTimerTask
    - - tigase.monitor.tasks.LoadCheckerTask

- All Implemented Interfaces:
    UnregisterAware, ConfigurableTask, InfoTask, MonitorTask

      @Bean(name="load-checker-task")
      public class LoadCheckerTask
      extends AbstractConfigurableTimerTask
      implements InfoTask

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `MONITOR_EVENT_NAME`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `LoadCheckerTask()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `getAverageLoadThreshold()`
    `Form` | `getCurrentConfiguration()`
    `Form` | `getTaskInfo()`
    `protected void` | `run()`
    `void` | `setAverageLoadThreshold(Long averageLoadThreshold)`
    `void` | `setNewConfiguration(Form form)`

    - ### Methods inherited from class tigase.monitor.tasks.AbstractConfigurableTimerTask

      `beforeUnregister, disable, enable, getPeriod, getTimerTaskService, setPeriod, setPeriod, setTimerTaskService`

    - ### Methods inherited from class tigase.monitor.tasks.AbstractConfigurableTask

      `isEnabled, setEnabled`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### MONITOR_EVENT_NAME

          public static final String MONITOR_EVENT_NAME

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### LoadCheckerTask

          public LoadCheckerTask()

  - ### Method Detail

    - #### getAverageLoadThreshold

          public long getAverageLoadThreshold()

    - #### getCurrentConfiguration

          public Form getCurrentConfiguration()

      Specified by:
        `getCurrentConfiguration` in interface `ConfigurableTask`
      Overrides:
        `getCurrentConfiguration` in class `AbstractConfigurableTimerTask`

    - #### getTaskInfo

          public Form getTaskInfo()

      Specified by:
        `getTaskInfo` in interface `InfoTask`

    - #### run

          protected void run()

      Specified by:
        `run` in class `AbstractConfigurableTimerTask`

    - #### setAverageLoadThreshold

          public void setAverageLoadThreshold(Long averageLoadThreshold)

    - #### setNewConfiguration

          public void setNewConfiguration(Form form)

      Specified by:
        `setNewConfiguration` in interface `ConfigurableTask`
      Overrides:
        `setNewConfiguration` in class `AbstractConfigurableTimerTask`

Copyright © 2022 "Tigase, Inc.". All rights reserved.