public class IndexRetentionThread extends Periodical
| Constructor and Description |
|---|
IndexRetentionThread(ElasticsearchConfiguration configuration,
Deflector deflector,
Indices indices,
Cluster cluster,
ActivityWriter activityWriter) |
| 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> deflectorIndices,
int removeCount) |
boolean |
runsForever() |
boolean |
startOnThisNode() |
boolean |
stopOnGracefulShutdown() |
getParallelism, initialize, run@Inject public IndexRetentionThread(ElasticsearchConfiguration configuration, Deflector deflector, Indices indices, Cluster cluster, ActivityWriter activityWriter)
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> deflectorIndices, 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-2015 Graylog, Inc.. All Rights Reserved.