Class TelemetryClusterInfoPeriodical

java.lang.Object
org.graylog2.plugin.periodical.Periodical
org.graylog2.telemetry.cluster.TelemetryClusterInfoPeriodical
All Implemented Interfaces:
Runnable

public class TelemetryClusterInfoPeriodical extends Periodical
  • Constructor Details

    • TelemetryClusterInfoPeriodical

      @Inject public TelemetryClusterInfoPeriodical(@Named("telemetry_cluster_info_ttl") Duration telemetryClusterInfoTtl, TelemetryService telemetryClusterService)
  • Method Details

    • doRun

      public void doRun()
      Specified by:
      doRun in class Periodical
    • runsForever

      public boolean runsForever()
      Description copied from class: Periodical
      Defines if this thread should be called periodically or only once on startup.
      Specified by:
      runsForever in class Periodical
      Returns:
    • stopOnGracefulShutdown

      public boolean stopOnGracefulShutdown()
      Description copied from class: Periodical
      Should this thread be stopped when a graceful shutdown is in progress? This means that stop() is called and that is no longer triggered periodically.
      Specified by:
      stopOnGracefulShutdown in class Periodical
      Returns:
    • startOnThisNode

      public boolean startOnThisNode()
      Description copied from class: Periodical
      Start on this node? Useful to decide if to start the periodical based on local configuration.
      Specified by:
      startOnThisNode in class Periodical
      Returns:
    • isDaemon

      public boolean isDaemon()
      Description copied from class: Periodical
      Should this periodical be run as a daemon thread?
      Specified by:
      isDaemon in class Periodical
      Returns:
    • getInitialDelaySeconds

      public int getInitialDelaySeconds()
      Specified by:
      getInitialDelaySeconds in class Periodical
      Returns:
      Seconds to wait before starting the thread. 0 for runsForever() threads.
    • getPeriodSeconds

      public int getPeriodSeconds()
      Specified by:
      getPeriodSeconds in class Periodical
      Returns:
      How long to wait between each execution of the thread. 0 for runsForever() threads.
    • getLogger

      @Nonnull protected org.slf4j.Logger getLogger()
      Specified by:
      getLogger in class Periodical