Interface Repository

    • Method Detail

      • readSnapshot

        Snapshot readSnapshot(SnapshotId snapshotId)
        Reads snapshot description from repository.
        Parameters:
        snapshotId - snapshot ID
        Returns:
        information about snapshot
      • readSnapshotMetaData

        MetaData readSnapshotMetaData(SnapshotId snapshotId,
                                      <any> indices)
        Returns global metadata associate with the snapshot.

        The returned meta data contains global metadata as well as metadata for all indices listed in the indices parameter.
        Parameters:
        snapshotId - snapshot ID
        indices - list of indices
        Returns:
        information about snapshot
      • snapshots

        <any> snapshots()
        Returns the list of snapshots currently stored in the repository
        Returns:
        snapshot list
      • initializeSnapshot

        void initializeSnapshot(SnapshotId snapshotId,
                                <any> indices,
                                MetaData metaData)
        Starts snapshotting process
        Parameters:
        snapshotId - snapshot id
        indices - list of indices to be snapshotted
        metaData - cluster metadata
      • finalizeSnapshot

        Snapshot finalizeSnapshot(SnapshotId snapshotId,
                                  String failure,
                                  int totalShards,
                                  <any> shardFailures)
        Finalizes snapshotting process

        This method is called on master after all shards are snapshotted.
        Parameters:
        snapshotId - snapshot id
        failure - global failure reason or null
        totalShards - total number of shards
        shardFailures - list of shard failures
        Returns:
        snapshot description
      • deleteSnapshot

        void deleteSnapshot(SnapshotId snapshotId)
        Deletes snapshot
        Parameters:
        snapshotId - snapshot id
      • snapshotThrottleTimeInNanos

        long snapshotThrottleTimeInNanos()
        Returns snapshot throttle time in nanoseconds
      • restoreThrottleTimeInNanos

        long restoreThrottleTimeInNanos()
        Returns restore throttle time in nanoseconds
      • startVerification

        String startVerification()
        Verifies repository on the master node and returns the verification token. If the verification token is not null, it's passed to all data nodes for verification. If it's null - no additional verification is required
        Returns:
        verification token that should be passed to all Index Shard Repositories for additional verification or null
      • endVerification

        void endVerification(String verificationToken)
        Called at the end of repository verification process. This method should perform all necessary cleanup of the temporary files created in the repository
        Parameters:
        verificationToken - verification request generated by startVerification() command