public class NoneDiscovery extends AbstractLifecycleComponent implements Discovery
Discovery implementation that is used by TribeService. This implementation
doesn't support any clustering features. Most notably startInitialJoin() does nothing and
Discovery.publish(ClusterChangedEvent, AckListener) is not supported.Discovery.AckListener, Discovery.FailedToCommitClusterStateExceptionlifecycledeprecationLogger, logger, settings| Constructor and Description |
|---|
NoneDiscovery(Settings settings,
ClusterService clusterService,
ClusterSettings clusterSettings) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doClose() |
protected void |
doStart() |
protected void |
doStop() |
DiscoverySettings |
getDiscoverySettings() |
int |
getMinimumMasterNodes() |
DiscoveryNode |
localNode() |
java.lang.String |
nodeDescription() |
void |
publish(ClusterChangedEvent clusterChangedEvent,
Discovery.AckListener ackListener)
Publish all the changes to the cluster from the master (can be called just by the master).
|
void |
setAllocationService(AllocationService allocationService)
Another hack to solve dep injection problem..., note, this will be called before
any start is called.
|
void |
startInitialJoin()
Triggers the first join cycle
|
DiscoveryStats |
stats() |
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stoplogDeprecatedSetting, logRemovedSetting, nodeNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddLifecycleListener, lifecycleState, removeLifecycleListener, start, stopclose@Inject public NoneDiscovery(Settings settings, ClusterService clusterService, ClusterSettings clusterSettings)
public DiscoveryNode localNode()
public java.lang.String nodeDescription()
nodeDescription in interface Discoverypublic void setAllocationService(AllocationService allocationService)
DiscoverysetAllocationService in interface Discoverypublic void publish(ClusterChangedEvent clusterChangedEvent, Discovery.AckListener ackListener)
DiscoveryDiscovery.AckListener allows to keep track of the ack received from nodes, and verify whether
they updated their own cluster state or not.
The method is guaranteed to throw a Discovery.FailedToCommitClusterStateException if the change is not committed and should be rejected.
Any other exception signals the something wrong happened but the change is committed.public DiscoveryStats stats()
public DiscoverySettings getDiscoverySettings()
getDiscoverySettings in interface Discoverypublic void startInitialJoin()
DiscoverystartInitialJoin in interface Discoverypublic int getMinimumMasterNodes()
getMinimumMasterNodes in interface Discoveryprotected void doStart()
doStart in class AbstractLifecycleComponentprotected void doStop()
doStop in class AbstractLifecycleComponentprotected void doClose()
doClose in class AbstractLifecycleComponent