Class Periodicals

java.lang.Object
org.graylog2.periodical.Periodicals

public class Periodicals extends Object
Author:
Lennart Koopmann <[email protected]>
  • Constructor Details

  • Method Details

    • registerAndStart

      public void registerAndStart(Periodical periodical)
    • unregisterAndStop

      public void unregisterAndStop(Periodical periodical)
    • getAll

      public List<Periodical> getAll()
      Returns:
      a copy of the list of all registered periodicals.
    • getAllStoppedOnGracefulShutdown

      public List<Periodical> getAllStoppedOnGracefulShutdown()
      Returns:
      a copy of the list of all registered periodicals that are configured to be stopped on a graceful shutdown.
    • getAllRunning

      public Set<Periodical> getAllRunning()
      All periodicals which are currently running, i.e. they have been scheduled for periodic execution and ar not just one-off periodicals.
    • getFutures

      public Map<Periodical,ScheduledFuture> getFutures()
      Returns:
      a copy of the map of all executor futures