Module org.elasticsearch.server
Class IndexShardSnapshotStatus
java.lang.Object
org.elasticsearch.index.snapshots.IndexShardSnapshotStatus
Represent shard snapshot status
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classReturns an immutable state ofIndexShardSnapshotStatusat a given point in time.static enumSnapshot stage
- 
Method SummaryModifier and TypeMethodDescriptionvoidabortIfNotCompleted(String failure) voidaddProcessedFile(long size) Increments number of processed filesvoidaddProcessedFiles(int count, long totalSize) asCopy()Returns a copy of the currentIndexShardSnapshotStatus.booleanvoidmoveToDone(long endTime, ShardSnapshotResult shardSnapshotResult) voidmoveToFailed(long endTime, String failure) moveToFinalize(long indexVersion) moveToStarted(long startTime, int incrementalFileCount, int totalFileCount, long incrementalSize, long totalSize) static IndexShardSnapshotStatusnewDone(long startTime, long totalTime, int incrementalFileCount, int fileCount, long incrementalSize, long size, ShardGeneration generation) static IndexShardSnapshotStatusstatic IndexShardSnapshotStatusnewInitializing(ShardGeneration generation) 
- 
Method Details- 
moveToStartedpublic IndexShardSnapshotStatus.Copy moveToStarted(long startTime, int incrementalFileCount, int totalFileCount, long incrementalSize, long totalSize) 
- 
moveToFinalize
- 
moveToDone
- 
abortIfNotCompleted
- 
moveToFailed
- 
generation
- 
getShardSnapshotResult
- 
isAbortedpublic boolean isAborted()
- 
addProcessedFilepublic void addProcessedFile(long size) Increments number of processed files
- 
addProcessedFilespublic void addProcessedFiles(int count, long totalSize) 
- 
asCopyReturns a copy of the currentIndexShardSnapshotStatus. This method is intended to be used when a coherent state ofIndexShardSnapshotStatusis needed.- Returns:
- a  IndexShardSnapshotStatus.Copy
 
- 
newInitializing
- 
newFailed
- 
newDonepublic static IndexShardSnapshotStatus newDone(long startTime, long totalTime, int incrementalFileCount, int fileCount, long incrementalSize, long size, ShardGeneration generation) 
 
-