public class IndexRetentionThread extends Periodical
| Constructor and Description |
|---|
IndexRetentionThread(Configuration configuration,
RebuildIndexRangesJob.Factory rebuildIndexRangesJobFactory,
Deflector deflector,
Indexer indexer,
ActivityWriter activityWriter,
SystemJobManager systemJobManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
doRun() |
int |
getInitialDelaySeconds() |
protected org.slf4j.Logger |
getLogger() |
int |
getPeriodSeconds() |
boolean |
isDaemon() |
boolean |
masterOnly() |
void |
runRetention(RetentionStrategy strategy,
Map<String,org.elasticsearch.action.admin.indices.stats.IndexStats> indices,
int removeCount) |
boolean |
runsForever() |
boolean |
startOnThisNode() |
boolean |
stopOnGracefulShutdown() |
initialize, run@Inject public IndexRetentionThread(Configuration configuration, RebuildIndexRangesJob.Factory rebuildIndexRangesJobFactory, Deflector deflector, Indexer indexer, ActivityWriter activityWriter, SystemJobManager systemJobManager)
public void doRun()
doRun in class Periodicalprotected org.slf4j.Logger getLogger()
getLogger in class Periodicalpublic void runRetention(RetentionStrategy strategy, Map<String,org.elasticsearch.action.admin.indices.stats.IndexStats> indices, int removeCount) throws NoTargetIndexException
NoTargetIndexExceptionpublic 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–2014 TORCH GmbH. All rights reserved.