public class IndexShardSnapshotStatus
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
IndexShardSnapshotStatus.Copy |
Returns an immutable state of
IndexShardSnapshotStatus at a given point in time. |
static class |
IndexShardSnapshotStatus.Stage |
Snapshot stage
|
Modifier and Type | Method | Description |
---|---|---|
IndexShardSnapshotStatus.Copy |
abortIfNotCompleted(java.lang.String failure) |
|
void |
addProcessedFile(long size) |
Increments number of processed files
|
IndexShardSnapshotStatus.Copy |
asCopy() |
Returns a copy of the current
IndexShardSnapshotStatus . |
boolean |
isAborted() |
|
IndexShardSnapshotStatus.Copy |
moveToDone(long endTime) |
|
void |
moveToFailed(long endTime,
java.lang.String failure) |
|
IndexShardSnapshotStatus.Copy |
moveToFinalize(long indexVersion) |
|
IndexShardSnapshotStatus.Copy |
moveToStarted(long startTime,
int numberOfFiles,
long totalSize) |
|
static IndexShardSnapshotStatus |
newDone(long startTime,
long totalTime,
int files,
long size) |
|
static IndexShardSnapshotStatus |
newFailed(java.lang.String failure) |
|
static IndexShardSnapshotStatus |
newInitializing() |
public IndexShardSnapshotStatus.Copy moveToStarted(long startTime, int numberOfFiles, long totalSize)
public IndexShardSnapshotStatus.Copy moveToFinalize(long indexVersion)
public IndexShardSnapshotStatus.Copy moveToDone(long endTime)
public IndexShardSnapshotStatus.Copy abortIfNotCompleted(java.lang.String failure)
public void moveToFailed(long endTime, java.lang.String failure)
public boolean isAborted()
public void addProcessedFile(long size)
public IndexShardSnapshotStatus.Copy asCopy()
IndexShardSnapshotStatus
. This method is
intended to be used when a coherent state of IndexShardSnapshotStatus
is needed.IndexShardSnapshotStatus.Copy
public static IndexShardSnapshotStatus newInitializing()
public static IndexShardSnapshotStatus newFailed(java.lang.String failure)
public static IndexShardSnapshotStatus newDone(long startTime, long totalTime, int files, long size)