public class DiscoveryModule extends AbstractModule
Modifier and Type | Field and Description |
---|---|
static String |
DISCOVERY_TYPE_KEY |
static String |
ZEN_MASTER_SERVICE_TYPE_KEY |
Constructor and Description |
---|
DiscoveryModule(Settings settings) |
Modifier and Type | Method and Description |
---|---|
void |
addDiscoveryType(String type,
Class<? extends Discovery> clazz)
Adds a custom Discovery type.
|
void |
addElectMasterService(String type,
Class<? extends ElectMasterService> masterService)
Adds a custom zen master service type.
|
void |
addUnicastHostProvider(Class<? extends UnicastHostsProvider> unicastHostProvider)
Adds a custom unicast hosts provider to build a dynamic list of unicast hosts list when doing unicast discovery.
|
void |
addZenPing(Class<? extends ZenPing> clazz) |
protected void |
configure()
Configures a
Binder via the exposed methods. |
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 DISCOVERY_TYPE_KEY
public static final String ZEN_MASTER_SERVICE_TYPE_KEY
public DiscoveryModule(Settings settings)
public void addUnicastHostProvider(Class<? extends UnicastHostsProvider> unicastHostProvider)
public void addDiscoveryType(String type, Class<? extends Discovery> clazz)
public void addElectMasterService(String type, Class<? extends ElectMasterService> masterService)
protected void configure()
AbstractModule
Binder
via the exposed methods.configure
in class AbstractModule
Copyright © 2009–2016. All rights reserved.