public class IndexRotationThread extends Periodical
| Constructor and Description |
|---|
IndexRotationThread(NotificationService notificationService,
Indices indices,
Deflector deflector,
ActivityWriter activityWriter,
IndexerSetupService indexerSetupService,
javax.inject.Provider<RotationStrategy> rotationStrategyProvider) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkAndRepair() |
protected void |
checkForRotation() |
void |
doRun() |
int |
getInitialDelaySeconds() |
protected org.slf4j.Logger |
getLogger() |
int |
getPeriodSeconds() |
boolean |
isDaemon() |
boolean |
masterOnly() |
boolean |
runsForever() |
boolean |
startOnThisNode() |
boolean |
stopOnGracefulShutdown() |
getParallelism, initialize, run@Inject public IndexRotationThread(NotificationService notificationService, Indices indices, Deflector deflector, ActivityWriter activityWriter, IndexerSetupService indexerSetupService, javax.inject.Provider<RotationStrategy> rotationStrategyProvider)
public void doRun()
doRun in class Periodicalprotected org.slf4j.Logger getLogger()
getLogger in class Periodicalprotected void checkForRotation()
protected void checkAndRepair()
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 PeriodicalCopyright © 2012-2015 Graylog, Inc.. All Rights Reserved.