public class IndexShardSnapshotStatus
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
IndexShardSnapshotStatus.Stage
Snapshot stage
|
Constructor and Description |
---|
IndexShardSnapshotStatus() |
Modifier and Type | Method and Description |
---|---|
void |
abort()
Marks snapshot as aborted
|
boolean |
aborted()
Returns true if snapshot process was aborted
|
void |
addProcessedFile(long size)
Increments number of processed files
|
java.lang.String |
failure()
Returns the reason for the failure if the snapshot is in the
IndexShardSnapshotStatus.Stage.FAILURE state |
void |
failure(java.lang.String failure)
Sets the reason for the failure if the snapshot is in the
IndexShardSnapshotStatus.Stage.FAILURE state |
void |
files(int numberOfFiles,
long totalSize)
Sets files stats
|
long |
indexVersion()
Returns index version
|
void |
indexVersion(long indexVersion)
Sets index version
|
int |
numberOfFiles()
Number of files
|
int |
processedFiles()
Number of processed files
|
void |
processedFiles(int numberOfFiles,
long totalSize)
Sets processed files stats
|
long |
processedSize()
Size of processed files
|
IndexShardSnapshotStatus.Stage |
stage()
Returns current snapshot stage
|
long |
startTime()
Returns snapshot start time
|
void |
startTime(long startTime)
Sets snapshot start time
|
long |
time()
Returns snapshot processing time
|
void |
time(long time)
Sets snapshot processing time
|
long |
totalSize()
Total snapshot size
|
void |
updateStage(IndexShardSnapshotStatus.Stage stage)
Sets new snapshot stage
|
public IndexShardSnapshotStatus.Stage stage()
public void updateStage(IndexShardSnapshotStatus.Stage stage)
stage
- new snapshot stagepublic long startTime()
public void startTime(long startTime)
startTime
- snapshot start timepublic long time()
public void time(long time)
time
- snapshot processing timepublic boolean aborted()
public void abort()
public void files(int numberOfFiles, long totalSize)
numberOfFiles
- number of files in this snapshottotalSize
- total size of files in this snapshotpublic void processedFiles(int numberOfFiles, long totalSize)
numberOfFiles
- number of files in this snapshottotalSize
- total size of files in this snapshotpublic void addProcessedFile(long size)
public int numberOfFiles()
public long totalSize()
public int processedFiles()
public long processedSize()
public void indexVersion(long indexVersion)
indexVersion
- index versionpublic long indexVersion()
public void failure(java.lang.String failure)
IndexShardSnapshotStatus.Stage.FAILURE
statepublic java.lang.String failure()
IndexShardSnapshotStatus.Stage.FAILURE
state