Package org.elasticsearch.plugins
Interface IndexStorePlugin.RecoveryStateFactory
- Enclosing interface:
- IndexStorePlugin
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An interface that allows to create a new
RecoveryState
per shard.-
Method Summary
Modifier and TypeMethodDescriptionnewRecoveryState(ShardRouting shardRouting, DiscoveryNode targetNode, DiscoveryNode sourceNode)
Creates a newRecoveryState
per shard.
-
Method Details
-
newRecoveryState
RecoveryState newRecoveryState(ShardRouting shardRouting, DiscoveryNode targetNode, @Nullable DiscoveryNode sourceNode)Creates a newRecoveryState
per shard. This method is called once per shard on shard creation.- Returns:
- a new RecoveryState instance
-