tigase.monitor.tasks

## Class DiskTask

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

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

      @Bean(name="disk-task")
      public class DiskTask
      extends AbstractConfigurableTimerTask
      implements Initializable

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected MonitorComponent` | `component`
    `static String` | `DISK_USAGE_MONITOR_EVENT_NAME`
    `protected static DateTimeFormatter` | `dtf`
    `protected EventBus` | `eventBus`
    `protected float` | `threshold`
    `protected HashSet<String>` | `triggeredEvents`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `DiskTask()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Form` | `getCurrentConfiguration()`
    `void` | `initialize()`
    `protected void` | `run()`
    `void` | `setNewConfiguration(Form form)`
    `void` | `setThreshold(Float threshold)`

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

    - #### DISK_USAGE_MONITOR_EVENT_NAME

          public static final String DISK_USAGE_MONITOR_EVENT_NAME

      See Also:
        Constant Field Values

    - #### dtf

          protected static final DateTimeFormatter dtf

    - #### component

          @Inject
          protected MonitorComponent component

    - #### eventBus

          @Inject
          protected EventBus eventBus

    - #### threshold

          protected float threshold

    - #### triggeredEvents

          protected final HashSet<String> triggeredEvents

  - ### Constructor Detail

    - #### DiskTask

          public DiskTask()

  - ### Method Detail

    - #### getCurrentConfiguration

          public Form getCurrentConfiguration()

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

    - #### initialize

          public void initialize()

      Specified by:
        `initialize` in interface `Initializable`

    - #### run

          protected void run()

      Specified by:
        `run` in class `AbstractConfigurableTimerTask`

    - #### setNewConfiguration

          public void setNewConfiguration(Form form)

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

    - #### setThreshold

          public void setThreshold(Float threshold)

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