Class BlobStoreIndexShardSnapshot

    • Constructor Detail

      • BlobStoreIndexShardSnapshot

        public BlobStoreIndexShardSnapshot​(java.lang.String snapshot,
                                           long indexVersion,
                                           java.util.List<BlobStoreIndexShardSnapshot.FileInfo> indexFiles,
                                           long startTime,
                                           long time,
                                           int incrementalFileCount,
                                           long incrementalSize)
        Constructs new shard snapshot metadata from snapshot metadata
        Parameters:
        snapshot - snapshot id
        indexVersion - index version
        indexFiles - list of files in the shard
        startTime - snapshot start time
        time - snapshot running time
        incrementalFileCount - incremental of files that were snapshotted
        incrementalSize - incremental size of snapshot
    • Method Detail

      • indexVersion

        public long indexVersion()
        Returns index version
        Returns:
        index version
      • snapshot

        public java.lang.String snapshot()
        Returns snapshot id
        Returns:
        snapshot id
      • startTime

        public long startTime()
        Returns snapshot start time
      • time

        public long time()
        Returns snapshot running time
      • incrementalFileCount

        public int incrementalFileCount()
        Returns incremental of files that were snapshotted
      • totalFileCount

        public int totalFileCount()
        Returns total number of files that are referenced by this snapshot
      • incrementalSize

        public long incrementalSize()
        Returns incremental of files size that were snapshotted
      • totalSize

        public long totalSize()
        Returns total size of all files that where snapshotted
      • fromXContent

        public static BlobStoreIndexShardSnapshot fromXContent​(XContentParser parser)
                                                        throws java.io.IOException
        Parses shard snapshot metadata
        Parameters:
        parser - parser
        Returns:
        shard snapshot metadata
        Throws:
        java.io.IOException