Modifier and Type | Method and Description |
---|---|
SnapshotId |
SnapshotStatus.getSnapshotId()
Returns snapshot id
|
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableMap<SnapshotId,com.google.common.collect.ImmutableMap<ShardId,SnapshotIndexShardStatus>> |
TransportNodesSnapshotsStatus.NodeSnapshotStatus.status() |
Constructor and Description |
---|
NodeSnapshotStatus(DiscoveryNode node,
com.google.common.collect.ImmutableMap<SnapshotId,com.google.common.collect.ImmutableMap<ShardId,SnapshotIndexShardStatus>> status) |
Modifier and Type | Method and Description |
---|---|
static SnapshotId |
SnapshotId.readSnapshotId(StreamInput in)
Reads snapshot id from stream input
|
SnapshotId |
SnapshotMetaData.Entry.snapshotId() |
SnapshotId |
RestoreMetaData.Entry.snapshotId()
Returns snapshot id
|
Modifier and Type | Method and Description |
---|---|
SnapshotMetaData.Entry |
SnapshotMetaData.snapshot(SnapshotId snapshotId) |
RestoreMetaData.Entry |
RestoreMetaData.snapshot(SnapshotId snapshotId)
Returns currently running restore process with corresponding snapshot id or null if this snapshot is not being
restored
|
Constructor and Description |
---|
Entry(SnapshotId snapshotId,
boolean includeGlobalState,
SnapshotMetaData.State state,
com.google.common.collect.ImmutableList<String> indices,
com.google.common.collect.ImmutableMap<ShardId,SnapshotMetaData.ShardSnapshotStatus> shards) |
Entry(SnapshotId snapshotId,
RestoreMetaData.State state,
com.google.common.collect.ImmutableList<String> indices,
com.google.common.collect.ImmutableMap<ShardId,RestoreMetaData.ShardRestoreStatus> shards)
Creates new restore metadata
|
Modifier and Type | Method and Description |
---|---|
SnapshotId |
RestoreSource.snapshotId() |
Constructor and Description |
---|
RestoreSource(SnapshotId snapshotId,
String index) |
Modifier and Type | Method and Description |
---|---|
void |
IndexShardRepository.restore(SnapshotId snapshotId,
ShardId shardId,
ShardId snapshotShardId,
RecoveryState recoveryState)
Restores snapshot of the shard.
|
void |
IndexShardSnapshotAndRestoreService.snapshot(SnapshotId snapshotId,
IndexShardSnapshotStatus snapshotStatus)
Creates shard snapshot
|
void |
IndexShardRepository.snapshot(SnapshotId snapshotId,
ShardId shardId,
SnapshotIndexCommit snapshotIndexCommit,
IndexShardSnapshotStatus snapshotStatus)
Creates a snapshot of the shard based on the index commit point.
|
IndexShardSnapshotStatus |
IndexShardRepository.snapshotStatus(SnapshotId snapshotId,
ShardId shardId)
Retrieve shard snapshot status for the stored snapshot
|
Modifier and Type | Method and Description |
---|---|
void |
BlobStoreIndexShardRepository.delete(SnapshotId snapshotId,
ShardId shardId)
Delete shard snapshot
|
void |
BlobStoreIndexShardRepository.restore(SnapshotId snapshotId,
ShardId shardId,
ShardId snapshotShardId,
RecoveryState recoveryState)
Restores snapshot of the shard.
|
void |
BlobStoreIndexShardRepository.snapshot(SnapshotId snapshotId,
ShardId shardId,
SnapshotIndexCommit snapshotIndexCommit,
IndexShardSnapshotStatus snapshotStatus)
Creates a snapshot of the shard based on the index commit point.
|
IndexShardSnapshotStatus |
BlobStoreIndexShardRepository.snapshotStatus(SnapshotId snapshotId,
ShardId shardId)
Retrieve shard snapshot status for the stored snapshot
|
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableList<SnapshotId> |
Repository.snapshots()
Returns the list of snapshots currently stored in the repository
|
Modifier and Type | Method and Description |
---|---|
void |
Repository.deleteSnapshot(SnapshotId snapshotId)
Deletes snapshot
|
Snapshot |
Repository.finalizeSnapshot(SnapshotId snapshotId,
String failure,
int totalShards,
com.google.common.collect.ImmutableList<SnapshotShardFailure> shardFailures)
Finalizes snapshotting process
This method is called on master after all shards are snapshotted.
|
void |
Repository.initializeSnapshot(SnapshotId snapshotId,
com.google.common.collect.ImmutableList<String> indices,
MetaData metaData)
Starts snapshotting process
|
Snapshot |
Repository.readSnapshot(SnapshotId snapshotId)
Reads snapshot description from repository.
|
MetaData |
Repository.readSnapshotMetaData(SnapshotId snapshotId,
com.google.common.collect.ImmutableList<String> indices)
Returns global metadata associate with the snapshot.
|
Modifier and Type | Method and Description |
---|---|
protected com.google.common.collect.ImmutableList<SnapshotId> |
BlobStoreRepository.readSnapshotList()
Reads snapshot index file
This file can be used by read-only repositories that are unable to list files in the repository
|
com.google.common.collect.ImmutableList<SnapshotId> |
BlobStoreRepository.snapshots()
Returns the list of snapshots currently stored in the repository
|
Modifier and Type | Method and Description |
---|---|
void |
BlobStoreRepository.deleteSnapshot(SnapshotId snapshotId)
Deletes snapshot
|
Snapshot |
BlobStoreRepository.finalizeSnapshot(SnapshotId snapshotId,
String failure,
int totalShards,
com.google.common.collect.ImmutableList<SnapshotShardFailure> shardFailures)
Finalizes snapshotting process
This method is called on master after all shards are snapshotted.
|
void |
BlobStoreRepository.initializeSnapshot(SnapshotId snapshotId,
com.google.common.collect.ImmutableList<String> indices,
MetaData metaData)
Starts snapshotting process
|
Snapshot |
BlobStoreRepository.readSnapshot(SnapshotId snapshotId)
Reads snapshot description from repository.
|
MetaData |
BlobStoreRepository.readSnapshotMetaData(SnapshotId snapshotId,
com.google.common.collect.ImmutableList<String> indices)
Returns global metadata associate with the snapshot.
|
Modifier and Type | Method and Description |
---|---|
protected void |
BlobStoreRepository.writeSnapshotList(com.google.common.collect.ImmutableList<SnapshotId> snapshots)
Writes snapshot index file
This file can be used by read-only repositories that are unable to list files in the repository
|
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableList<SnapshotId> |
URLRepository.snapshots() |
Modifier and Type | Method and Description |
---|---|
SnapshotId |
RestoreService.RestoreCompletionResponse.getSnapshotId() |
SnapshotId |
SnapshotException.snapshot() |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableMap<ShardId,IndexShardSnapshotStatus> |
SnapshotsService.currentSnapshotShards(SnapshotId snapshotId)
Returns status of shards that are snapshotted on the node and belong to the given snapshot
|
void |
SnapshotsService.deleteSnapshot(SnapshotId snapshotId,
SnapshotsService.DeleteSnapshotListener listener)
Deletes snapshot from repository.
|
void |
RestoreService.failRestore(SnapshotId snapshotId,
ShardId shardId)
Fails the given snapshot restore operation for the given shard
|
void |
RestoreService.indexShardRestoreCompleted(SnapshotId snapshotId,
ShardId shardId)
This method is used by
IndexShardSnapshotAndRestoreService to notify
RestoreService about shard restore completion. |
void |
SnapshotsService.SnapshotCompletionListener.onSnapshotCompletion(SnapshotId snapshotId,
SnapshotInfo snapshot) |
void |
SnapshotsService.SnapshotCompletionListener.onSnapshotFailure(SnapshotId snapshotId,
Throwable t) |
Snapshot |
SnapshotsService.snapshot(SnapshotId snapshotId)
Retrieves snapshot from repository
|
com.google.common.collect.ImmutableMap<ShardId,IndexShardSnapshotStatus> |
SnapshotsService.snapshotShards(SnapshotId snapshotId)
Returns status of shards currently finished snapshots
|
Constructor and Description |
---|
ConcurrentSnapshotExecutionException(SnapshotId snapshot,
String msg) |
ConcurrentSnapshotExecutionException(SnapshotId snapshot,
String msg,
Throwable cause) |
InvalidSnapshotNameException(SnapshotId snapshot,
String desc) |
SnapshotCreationException(SnapshotId snapshot,
String message) |
SnapshotCreationException(SnapshotId snapshot,
Throwable cause) |
SnapshotException(SnapshotId snapshot,
String msg) |
SnapshotException(SnapshotId snapshot,
String msg,
Throwable cause) |
SnapshotMissingException(SnapshotId snapshot) |
SnapshotMissingException(SnapshotId snapshot,
Throwable cause) |
SnapshotRestoreException(SnapshotId snapshot,
String message) |
SnapshotRestoreException(SnapshotId snapshot,
String message,
Throwable cause) |
Copyright © 2009–2015. All rights reserved.