public class IndexRetentionThread extends Periodical
Constructor and Description |
---|
IndexRetentionThread(ElasticsearchConfiguration configuration,
RebuildIndexRangesJob.Factory rebuildIndexRangesJobFactory,
Deflector deflector,
Indices indices,
Cluster cluster,
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> deflectorIndices,
int removeCount) |
boolean |
runsForever() |
boolean |
startOnThisNode() |
boolean |
stopOnGracefulShutdown() |
getParallelism, initialize, run
@Inject public IndexRetentionThread(ElasticsearchConfiguration configuration, RebuildIndexRangesJob.Factory rebuildIndexRangesJobFactory, Deflector deflector, Indices indices, Cluster cluster, ActivityWriter activityWriter, SystemJobManager systemJobManager)
public void doRun()
doRun
in class Periodical
protected org.slf4j.Logger getLogger()
getLogger
in class Periodical
public void runRetention(RetentionStrategy strategy, Map<String,org.elasticsearch.action.admin.indices.stats.IndexStats> deflectorIndices, int removeCount) throws NoTargetIndexException
NoTargetIndexException
public boolean runsForever()
runsForever
in class Periodical
public boolean stopOnGracefulShutdown()
stopOnGracefulShutdown
in class Periodical
public boolean masterOnly()
masterOnly
in class Periodical
public boolean startOnThisNode()
startOnThisNode
in class Periodical
public boolean isDaemon()
isDaemon
in class Periodical
public int getInitialDelaySeconds()
getInitialDelaySeconds
in class Periodical
public int getPeriodSeconds()
getPeriodSeconds
in class Periodical
Copyright © 2012-2015 Graylog, Inc.. All Rights Reserved.