public class IndexRangesMigrationPeriodical extends Periodical
Periodical to check if index ranges need to be recalculated and notify the administrators about it.| Modifier and Type | Class and Description |
|---|---|
static class |
IndexRangesMigrationPeriodical.MongoIndexRangesMigrationComplete |
| Constructor and Description |
|---|
IndexRangesMigrationPeriodical(Cluster cluster,
Deflector deflector,
IndexRangeService indexRangeService,
NotificationService notificationService,
LegacyMongoIndexRangeService legacyMongoIndexRangeService,
EsIndexRangeService esIndexRangeService,
ClusterConfigService clusterConfigService) |
| Modifier and Type | Method and Description |
|---|---|
void |
doRun() |
int |
getInitialDelaySeconds() |
protected org.slf4j.Logger |
getLogger() |
int |
getPeriodSeconds() |
boolean |
isDaemon()
Should this periodical be run as a daemon thread?
|
boolean |
masterOnly()
Only start this thread on master nodes?
|
boolean |
runsForever()
Defines if this thread should be called periodically or only once
on startup.
|
boolean |
startOnThisNode()
Start on this node? Useful to decide if to start the periodical based on local configuration.
|
boolean |
stopOnGracefulShutdown()
Should this thread be stopped when a graceful shutdown is in progress?
This means that stop() is called and that is no longer triggered periodically.
|
getParallelism, initialize, run@Inject public IndexRangesMigrationPeriodical(Cluster cluster, Deflector deflector, IndexRangeService indexRangeService, NotificationService notificationService, LegacyMongoIndexRangeService legacyMongoIndexRangeService, EsIndexRangeService esIndexRangeService, ClusterConfigService clusterConfigService)
public void doRun()
doRun in class Periodicalpublic boolean runsForever()
PeriodicalrunsForever in class Periodicalpublic boolean stopOnGracefulShutdown()
PeriodicalstopOnGracefulShutdown in class Periodicalpublic boolean masterOnly()
PeriodicalmasterOnly in class Periodicalpublic boolean startOnThisNode()
PeriodicalstartOnThisNode in class Periodicalpublic boolean isDaemon()
PeriodicalisDaemon in class Periodicalpublic int getInitialDelaySeconds()
getInitialDelaySeconds in class Periodicalpublic int getPeriodSeconds()
getPeriodSeconds in class Periodicalprotected org.slf4j.Logger getLogger()
getLogger in class PeriodicalCopyright © 2012-2016 Graylog, Inc.. All Rights Reserved.