Class IndexShardSnapshotStatus

org.elasticsearch.index.snapshots.IndexShardSnapshotStatus

public class IndexShardSnapshotStatus extends
Represent shard snapshot status
  • Method Details

    • moveToStarted

      public IndexShardSnapshotStatus.Copy moveToStarted(long startTime, int incrementalFileCount, int totalFileCount, long incrementalSize, long totalSize)
    • moveToFinalize

      public IndexShardSnapshotStatus.Copy moveToFinalize(long indexVersion)
    • moveToDone

      public void moveToDone(long endTime, ShardSnapshotResult shardSnapshotResult)
    • abortIfNotCompleted

      public void abortIfNotCompleted( failure)
    • moveToFailed

      public void moveToFailed(long endTime,  failure)
    • generation

      public  generation()
    • getShardSnapshotResult

      public ShardSnapshotResult getShardSnapshotResult()
    • isAborted

      public boolean isAborted()
    • addProcessedFile

      public void addProcessedFile(long size)
      Increments number of processed files
    • asCopy

      Returns a copy of the current IndexShardSnapshotStatus. This method is intended to be used when a coherent state of IndexShardSnapshotStatus is needed.
      Returns:
      a IndexShardSnapshotStatus.Copy
    • newInitializing

      public static  generation)
    • newFailed

      public static  failure)
    • newDone

      public static IndexShardSnapshotStatus newDone(long startTime, long totalTime, int incrementalFileCount, int fileCount, long incrementalSize, long size,  generation)