public class RebuildIndexRangesJob extends SystemJob
Modifier and Type | Class and Description |
---|---|
static interface |
RebuildIndexRangesJob.Factory |
SystemJob.Type
Modifier and Type | Field and Description |
---|---|
protected Deflector |
deflector |
protected IndexRangeService |
indexRangeService |
static int |
MAX_CONCURRENCY |
Constructor and Description |
---|
RebuildIndexRangesJob(Deflector deflector,
ServerStatus serverStatus,
Searches searches,
ActivityWriter activityWriter,
IndexRangeService indexRangeService) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
calculateRange(String index) |
void |
execute() |
String |
getClassName() |
protected Map<String,Object> |
getDeflectorIndexRange(String index) |
String |
getDescription() |
int |
getProgress() |
protected void |
info(String what) |
boolean |
isCancelable() |
int |
maxConcurrency() |
boolean |
providesProgress() |
void |
requestCancel() |
getId, getStartedAt, markStarted, setId, toMap
public static final int MAX_CONCURRENCY
protected final Deflector deflector
protected final IndexRangeService indexRangeService
public RebuildIndexRangesJob(Deflector deflector, ServerStatus serverStatus, Searches searches, ActivityWriter activityWriter, IndexRangeService indexRangeService)
public void requestCancel()
requestCancel
in class SystemJob
public int getProgress()
getProgress
in class SystemJob
public String getDescription()
getDescription
in class SystemJob
protected Map<String,Object> calculateRange(String index) throws EmptyIndexException
EmptyIndexException
protected void info(String what)
public boolean providesProgress()
providesProgress
in class SystemJob
public boolean isCancelable()
isCancelable
in class SystemJob
public int maxConcurrency()
maxConcurrency
in class SystemJob
public String getClassName()
getClassName
in class SystemJob
Copyright © 2012-2015 Graylog, Inc.. All Rights Reserved.