Class ServerStatus

java.lang.Object
org.graylog2.plugin.ServerStatus

@Singleton public class ServerStatus extends Object
  • Constructor Details

  • Method Details

    • getDetailedMessageRecordingStrategy

      public ServerStatus.MessageDetailRecordingStrategy getDetailedMessageRecordingStrategy()
    • getNodeId

      public NodeId getNodeId()
    • getClusterId

      public String getClusterId()
    • getLifecycle

      public Lifecycle getLifecycle()
    • initialize

      public void initialize()
    • start

      public void start()
    • shutdown

      public void shutdown(boolean forceProcessing)
    • shutdown

      public void shutdown()
    • fail

      public void fail()
    • throttle

      public void throttle()
    • running

      public void running()
    • overrideLoadBalancerDead

      public void overrideLoadBalancerDead()
    • overrideLoadBalancerAlive

      public void overrideLoadBalancerAlive()
    • overrideLoadBalancerThrottled

      public void overrideLoadBalancerThrottled()
    • awaitRunning

      @Deprecated public void awaitRunning(Runnable runnable)
      Deprecated.
      Preferably use awaitRunning() instead, which is interruptible.
      Blocks until the server enters the RUNNING state and then executes the given Runnable.

      This method is not interruptible while waiting for the server to enter the RUNNING state.

    • awaitRunning

      public void awaitRunning() throws InterruptedException
      Blocks until the server enters the RUNNING state.
      Throws:
      InterruptedException - if the thread is interrupted while waiting for the server to enter the RUNNING state.
    • getStartedAt

      public org.joda.time.DateTime getStartedAt()
    • getTimezone

      public org.joda.time.DateTimeZone getTimezone()
    • addCapability

      public ServerStatus addCapability(ServerStatus.Capability capability)
    • addCapabilities

      public ServerStatus addCapabilities(ServerStatus.Capability... capabilities)
    • hasCapability

      public boolean hasCapability(ServerStatus.Capability capability)
    • hasCapabilities

      public boolean hasCapabilities(ServerStatus.Capability... capabilities)
    • isProcessing

      public boolean isProcessing()
    • pauseMessageProcessing

      public void pauseMessageProcessing()
    • pauseMessageProcessing

      public void pauseMessageProcessing(boolean locked)
    • resumeMessageProcessing

      public void resumeMessageProcessing() throws ProcessingPauseLockedException
      Throws:
      ProcessingPauseLockedException
    • processingPauseLocked

      public boolean processingPauseLocked()
    • unlockProcessingPause

      public void unlockProcessingPause()
    • setLocalMode

      public void setLocalMode(boolean localMode)