Package | Description |
---|---|
org.elasticsearch.index.shard | |
org.elasticsearch.indices.recovery |
Modifier and Type | Method and Description |
---|---|
IndexShardState |
IndexShard.recovering(String reason,
RecoveryState.Type type,
DiscoveryNode sourceNode)
Marks the shard as recovering based on a remote or local node, fails with exception is recovering is not allowed to be set.
|
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 |
---|---|
static RecoveryState.Type |
RecoveryState.Type.fromId(byte id) |
RecoveryState.Type |
RecoveryState.getType() |
RecoveryState.Type |
StartRecoveryRequest.recoveryType() |
static RecoveryState.Type |
RecoveryState.Type.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RecoveryState.Type[] |
RecoveryState.Type.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
RecoveryTarget.startRecovery(IndexShard indexShard,
RecoveryState.Type recoveryType,
DiscoveryNode sourceNode,
RecoveryTarget.RecoveryListener listener) |
Constructor and Description |
---|
RecoveryState(ShardId shardId,
boolean primary,
RecoveryState.Type type,
DiscoveryNode sourceNode,
DiscoveryNode targetNode) |
RecoveryState(ShardId shardId,
boolean primary,
RecoveryState.Type type,
RestoreSource restoreSource,
DiscoveryNode targetNode) |
StartRecoveryRequest(ShardId shardId,
DiscoveryNode sourceNode,
DiscoveryNode targetNode,
boolean markAsRelocated,
Store.MetadataSnapshot metadataSnapshot,
RecoveryState.Type recoveryType,
long recoveryId)
Start recovery request.
|
Copyright © 2009–2017. All rights reserved.