public class BlobStoreSnapshot extends Object implements Snapshot
BlobStoreRepository
for more information.Modifier and Type | Class and Description |
---|---|
static class |
BlobStoreSnapshot.Builder
BlobStoreSnapshot builder
|
Modifier and Type | Method and Description |
---|---|
static BlobStoreSnapshot.Builder |
builder()
Creates new BlobStoreSnapshot builder
|
int |
compareTo(Snapshot o)
Compares two snapshots by their start time
|
long |
endTime()
Returns time when snapshot ended
Can be 0L if snapshot is still running
|
com.google.common.collect.ImmutableList<String> |
indices()
Returns indices that were included into this snapshot
|
String |
name()
Returns snapshot name
|
String |
reason()
Returns reason for complete snapshot failure
|
com.google.common.collect.ImmutableList<SnapshotShardFailure> |
shardFailures()
Returns shard failures
|
long |
startTime()
Returns time when snapshot started
|
SnapshotState |
state()
Returns current snapshot state
|
int |
successfulShards()
Returns total number of shards that were successfully snapshotted
|
int |
totalShard()
Returns total number of shards that were snapshotted
|
Version |
version()
Returns version of Elasticsearch that was used to create this snapshot
|
public String name()
public SnapshotState state()
public String reason()
public Version version()
public com.google.common.collect.ImmutableList<String> indices()
public long startTime()
public long endTime()
public int totalShard()
totalShard
in interface Snapshot
public int successfulShards()
successfulShards
in interface Snapshot
public com.google.common.collect.ImmutableList<SnapshotShardFailure> shardFailures()
shardFailures
in interface Snapshot
public static BlobStoreSnapshot.Builder builder()
public int compareTo(Snapshot o)
compareTo
in interface Comparable<Snapshot>
o
- other snapshot0
if snapshots were created at the same time;
a value less than 0
if this snapshot was created before snapshot o
; and
a value greater than 0
if this snapshot was created after snapshot o
;Copyright © 2009–2015. All rights reserved.