public class ClusterEventPeriodical extends Periodical
| Constructor and Description |
|---|
ClusterEventPeriodical(MongoJackObjectMapperProvider mapperProvider,
MongoConnection mongoConnection,
NodeId nodeId,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
com.google.common.eventbus.EventBus serverEventBus,
com.google.common.eventbus.EventBus clusterEventBus) |
| Modifier and Type | Method and Description |
|---|---|
void |
doRun() |
int |
getInitialDelaySeconds() |
protected org.slf4j.Logger |
getLogger() |
int |
getPeriodSeconds() |
boolean |
isDaemon() |
boolean |
masterOnly() |
void |
publishClusterEvent(Object event) |
boolean |
runsForever() |
boolean |
startOnThisNode() |
boolean |
stopOnGracefulShutdown() |
getParallelism, initialize, run@Inject public ClusterEventPeriodical(MongoJackObjectMapperProvider mapperProvider, MongoConnection mongoConnection, NodeId nodeId, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.google.common.eventbus.EventBus serverEventBus, com.google.common.eventbus.EventBus clusterEventBus)
public boolean runsForever()
runsForever in class Periodicalpublic boolean stopOnGracefulShutdown()
stopOnGracefulShutdown in class Periodicalpublic boolean masterOnly()
masterOnly in class Periodicalpublic boolean startOnThisNode()
startOnThisNode in class Periodicalpublic boolean isDaemon()
isDaemon in class Periodicalpublic int getInitialDelaySeconds()
getInitialDelaySeconds in class Periodicalpublic int getPeriodSeconds()
getPeriodSeconds in class Periodicalprotected org.slf4j.Logger getLogger()
getLogger in class Periodicalpublic void doRun()
doRun in class Periodicalpublic void publishClusterEvent(Object event)
Copyright © 2012-2015 Graylog, Inc.. All Rights Reserved.