public interface ClusterPlugin
Plugin
implementations to customer behavior of cluster management.Modifier and Type | Method and Description |
---|---|
default java.util.Collection<AllocationDecider> |
createAllocationDeciders(Settings settings,
ClusterSettings clusterSettings)
Return deciders used to customize where shards are allocated.
|
default java.util.Map<java.lang.String,java.util.function.Supplier<ShardsAllocator>> |
getShardsAllocators(Settings settings,
ClusterSettings clusterSettings)
Return
ShardsAllocator implementations added by this plugin. |
default java.util.Collection<AllocationDecider> createAllocationDeciders(Settings settings, ClusterSettings clusterSettings)
settings
- Settings for the nodeclusterSettings
- Settings for the clusterAllocationDecider
instancesdefault java.util.Map<java.lang.String,java.util.function.Supplier<ShardsAllocator>> getShardsAllocators(Settings settings, ClusterSettings clusterSettings)
ShardsAllocator
implementations added by this plugin.
The key of the returned Map
is the name of the allocator, and the value
is a function to construct the allocator.settings
- Settings for the nodeclusterSettings
- Settings for the cluster