Package org.graylog2.plugin
Class ServerStatus
java.lang.Object
org.graylog2.plugin.ServerStatus
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
-
Constructor Summary
ConstructorDescriptionServerStatus
(BaseConfiguration configuration, Set<ServerStatus.Capability> capabilities, com.google.common.eventbus.EventBus eventBus, javax.inject.Provider<AuditEventSender> auditEventSenderProvider, NodeId nodeId) -
Method Summary
Modifier and TypeMethodDescriptionaddCapabilities
(ServerStatus.Capability... capabilities) addCapability
(ServerStatus.Capability capability) void
Blocks until the server enters the RUNNING state.void
awaitRunning
(Runnable runnable) Deprecated.void
fail()
org.joda.time.DateTime
org.joda.time.DateTimeZone
boolean
hasCapabilities
(ServerStatus.Capability... capabilities) boolean
hasCapability
(ServerStatus.Capability capability) void
boolean
void
void
void
void
void
pauseMessageProcessing
(boolean locked) boolean
void
void
running()
void
setLocalMode
(boolean localMode) void
shutdown()
void
shutdown
(boolean forceProcessing) void
start()
void
throttle()
void
-
Constructor Details
-
ServerStatus
@Inject public ServerStatus(BaseConfiguration configuration, Set<ServerStatus.Capability> capabilities, com.google.common.eventbus.EventBus eventBus, javax.inject.Provider<AuditEventSender> auditEventSenderProvider, NodeId nodeId)
-
-
Method Details
-
getDetailedMessageRecordingStrategy
-
getNodeId
-
getClusterId
-
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.Preferably useawaitRunning()
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
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
-
addCapabilities
-
hasCapability
-
hasCapabilities
-
isProcessing
public boolean isProcessing() -
pauseMessageProcessing
public void pauseMessageProcessing() -
pauseMessageProcessing
public void pauseMessageProcessing(boolean locked) -
resumeMessageProcessing
- Throws:
ProcessingPauseLockedException
-
processingPauseLocked
public boolean processingPauseLocked() -
unlockProcessingPause
public void unlockProcessingPause() -
setLocalMode
public void setLocalMode(boolean localMode)
-
awaitRunning()
instead, which is interruptible.