| Package | Description |
|---|---|
| org.elasticsearch.cluster.routing | |
| org.elasticsearch.index.shard | |
| org.elasticsearch.indices.recovery |
| Modifier and Type | Method and Description |
|---|---|
static RestoreSource |
RestoreSource.readOptionalRestoreSource(StreamInput in) |
static RestoreSource |
RestoreSource.readRestoreSource(StreamInput in) |
RestoreSource |
ShardRouting.restoreSource()
Snapshot id and repository where this shard is being restored from
|
| Modifier and Type | Method and Description |
|---|---|
RoutingTable.Builder |
RoutingTable.Builder.addAsNewRestore(IndexMetaData indexMetaData,
RestoreSource restoreSource,
com.carrotsearch.hppc.IntSet ignoreShards) |
RoutingTable.Builder |
RoutingTable.Builder.addAsRestore(IndexMetaData indexMetaData,
RestoreSource restoreSource) |
IndexRoutingTable.Builder |
IndexRoutingTable.Builder.initializeAsNewRestore(IndexMetaData indexMetaData,
RestoreSource restoreSource,
com.carrotsearch.hppc.IntSet ignoreShards)
Initializes a new empty index, to be restored from a snapshot
|
IndexRoutingTable.Builder |
IndexRoutingTable.Builder.initializeAsRestore(IndexMetaData indexMetaData,
RestoreSource restoreSource)
Initializes an existing index, to be restored from a snapshot
|
static ShardRouting |
ShardRouting.newUnassigned(String index,
int shardId,
RestoreSource restoreSource,
boolean primary,
UnassignedInfo unassignedInfo)
Creates a new unassigned shard.
|
| Modifier and Type | Method and Description |
|---|---|
IndexShardState |
IndexShard.recovering(String reason,
RecoveryState.Type type,
RestoreSource restoreSource)
Marks the shard as recovering based on a restore, fails with exception is recovering is not allowed to be set.
|
| Modifier and Type | Method and Description |
|---|---|
RestoreSource |
RecoveryState.getRestoreSource() |
| Constructor and Description |
|---|
RecoveryState(ShardId shardId,
boolean primary,
RecoveryState.Type type,
RestoreSource restoreSource,
DiscoveryNode targetNode) |
Copyright © 2009–2017. All rights reserved.