Class IndexShardSnapshotStatus

java.lang.Object
org.elasticsearch.index.snapshots.IndexShardSnapshotStatus

public class IndexShardSnapshotStatus
extends java.lang.Object
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, java.lang.String newGeneration)
    • abortIfNotCompleted

      public void abortIfNotCompleted​(java.lang.String failure)
    • moveToFailed

      public void moveToFailed​(long endTime, java.lang.String failure)
    • generation

      public java.lang.String generation()
    • 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 IndexShardSnapshotStatus newInitializing​(java.lang.String generation)
    • newFailed

      public static IndexShardSnapshotStatus newFailed​(java.lang.String failure)
    • newDone

      public static IndexShardSnapshotStatus newDone​(long startTime, long totalTime, int incrementalFileCount, int fileCount, long incrementalSize, long size, java.lang.String generation)