public class ClusterModule extends AbstractModule
Modifier and Type | Field and Description |
---|---|
static String |
BALANCED_ALLOCATOR |
static List<Class<? extends AllocationDecider>> |
DEFAULT_ALLOCATION_DECIDERS |
static String |
EVEN_SHARD_COUNT_ALLOCATOR |
static String |
SHARDS_ALLOCATOR_TYPE_KEY |
Constructor and Description |
---|
ClusterModule(Settings settings) |
Modifier and Type | Method and Description |
---|---|
protected void |
configure()
Configures a
Binder via the exposed methods. |
void |
registerAllocationDecider(Class<? extends AllocationDecider> allocationDecider) |
void |
registerClusterDynamicSetting(String setting,
Validator validator) |
void |
registerIndexDynamicSetting(String setting,
Validator validator) |
void |
registerIndexTemplateFilter(Class<? extends IndexTemplateFilter> indexTemplateFilter) |
void |
registerShardsAllocator(String name,
Class<? extends ShardsAllocator> clazz) |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
public static final String EVEN_SHARD_COUNT_ALLOCATOR
public static final String BALANCED_ALLOCATOR
public static final String SHARDS_ALLOCATOR_TYPE_KEY
public static final List<Class<? extends AllocationDecider>> DEFAULT_ALLOCATION_DECIDERS
public ClusterModule(Settings settings)
public void registerIndexDynamicSetting(String setting, Validator validator)
public void registerClusterDynamicSetting(String setting, Validator validator)
public void registerAllocationDecider(Class<? extends AllocationDecider> allocationDecider)
public void registerShardsAllocator(String name, Class<? extends ShardsAllocator> clazz)
public void registerIndexTemplateFilter(Class<? extends IndexTemplateFilter> indexTemplateFilter)
protected void configure()
AbstractModule
Binder
via the exposed methods.configure
in class AbstractModule
Copyright © 2009–2016. All rights reserved.