Class ResourceWatcherService

org.elasticsearch.watcher.ResourceWatcherService
All Implemented Interfaces:
,

public class ResourceWatcherService extends implements
Generic resource watcher service Other elasticsearch services can register their resource watchers with this service using add(ResourceWatcher) method. This service will call ResourceWatcher.checkAndNotify() method of all registered watcher periodically. The frequency of checks can be specified using resource.reload.interval setting, which defaults to 60s. The service can be disabled by setting resource.reload.enabled setting to false.
  • Field Details

    • ENABLED

      public static final > ENABLED
    • RELOAD_INTERVAL_HIGH

      public static final Setting<org.elasticsearch.core.TimeValue> RELOAD_INTERVAL_HIGH
    • RELOAD_INTERVAL_MEDIUM

      public static final Setting<org.elasticsearch.core.TimeValue> RELOAD_INTERVAL_MEDIUM
    • RELOAD_INTERVAL_LOW

      public static final Setting<org.elasticsearch.core.TimeValue> RELOAD_INTERVAL_LOW
  • Constructor Details

    • ResourceWatcherService

      public ResourceWatcherService(Settings settings, ThreadPool threadPool)
  • Method Details