public class IndexRetentionThread extends Periodical
Constructor and Description |
---|
IndexRetentionThread(ElasticsearchConfiguration configuration,
IndexSetRegistry indexSetRegistry,
Cluster cluster,
NodeId nodeId,
NotificationService notificationService,
Map<String,javax.inject.Provider<RetentionStrategy>> retentionStrategyMap) |
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 IndexRetentionThread(ElasticsearchConfiguration configuration, IndexSetRegistry indexSetRegistry, Cluster cluster, NodeId nodeId, NotificationService notificationService, Map<String,javax.inject.Provider<RetentionStrategy>> retentionStrategyMap)
public void doRun()
doRun
in class Periodical
protected org.slf4j.Logger getLogger()
getLogger
in class Periodical
public boolean runsForever()
Periodical
runsForever
in class Periodical
public boolean stopOnGracefulShutdown()
Periodical
stopOnGracefulShutdown
in class Periodical
public boolean masterOnly()
Periodical
masterOnly
in class Periodical
public boolean startOnThisNode()
Periodical
startOnThisNode
in class Periodical
public boolean isDaemon()
Periodical
isDaemon
in class Periodical
public int getInitialDelaySeconds()
getInitialDelaySeconds
in class Periodical
public int getPeriodSeconds()
getPeriodSeconds
in class Periodical
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.