Class PeriodicalsService

java.lang.Object
com.google.common.util.concurrent.AbstractIdleService
org.graylog2.shared.initializers.PeriodicalsService
All Implemented Interfaces:
com.google.common.util.concurrent.Service

@Singleton public class PeriodicalsService extends com.google.common.util.concurrent.AbstractIdleService
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.google.common.util.concurrent.Service

    com.google.common.util.concurrent.Service.Listener, com.google.common.util.concurrent.Service.State
  • Constructor Summary

    Constructors
    Constructor
    Description
    PeriodicalsService(Periodicals periodicals, Set<Periodical> allPeriodicals, com.google.common.eventbus.EventBus eventBus, LeaderElectionService leaderElectionService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    leaderChanged(LeaderChangedEvent leaderChangedEvent)
     
    protected void
     
    protected void
     

    Methods inherited from class com.google.common.util.concurrent.AbstractIdleService

    addListener, awaitRunning, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, startAsync, state, stopAsync, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • startUp

      protected void startUp() throws Exception
      Specified by:
      startUp in class com.google.common.util.concurrent.AbstractIdleService
      Throws:
      Exception
    • leaderChanged

      public void leaderChanged(LeaderChangedEvent leaderChangedEvent)
    • shutDown

      protected void shutDown() throws Exception
      Specified by:
      shutDown in class com.google.common.util.concurrent.AbstractIdleService
      Throws:
      Exception