public class ClusterModule extends AbstractModule
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BALANCED_ALLOCATOR |
static java.util.List<java.lang.Class<? extends AllocationDecider>> |
DEFAULT_ALLOCATION_DECIDERS |
static java.lang.String |
EVEN_SHARD_COUNT_ALLOCATOR |
static Setting<java.lang.String> |
SHARDS_ALLOCATOR_TYPE_SETTING |
Constructor and Description |
---|
ClusterModule(Settings settings) |
Modifier and Type | Method and Description |
---|---|
protected void |
configure()
Configures a
Binder via the exposed methods. |
void |
registerAllocationDecider(java.lang.Class<? extends AllocationDecider> allocationDecider) |
void |
registerIndexTemplateFilter(java.lang.Class<? extends IndexTemplateFilter> indexTemplateFilter) |
void |
registerShardsAllocator(java.lang.String name,
java.lang.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 java.lang.String EVEN_SHARD_COUNT_ALLOCATOR
public static final java.lang.String BALANCED_ALLOCATOR
public static final Setting<java.lang.String> SHARDS_ALLOCATOR_TYPE_SETTING
public static final java.util.List<java.lang.Class<? extends AllocationDecider>> DEFAULT_ALLOCATION_DECIDERS
public ClusterModule(Settings settings)
public void registerAllocationDecider(java.lang.Class<? extends AllocationDecider> allocationDecider)
public void registerShardsAllocator(java.lang.String name, java.lang.Class<? extends ShardsAllocator> clazz)
public void registerIndexTemplateFilter(java.lang.Class<? extends IndexTemplateFilter> indexTemplateFilter)
protected void configure()
AbstractModule
Binder
via the exposed methods.configure
in class AbstractModule