public class ZenDiscovery extends AbstractLifecycleComponent<Discovery> implements Discovery, PingContextProvider
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
ZenDiscovery.RejoinClusterRequest |
Discovery.AckListener| 修飾子とタイプ | フィールドと説明 |
|---|---|
static String |
DISCOVERY_REJOIN_ACTION_NAME |
static String |
SETTING_JOIN_RETRY_ATTEMPTS |
static String |
SETTING_JOIN_RETRY_DELAY |
static String |
SETTING_JOIN_TIMEOUT |
static String |
SETTING_MASTER_ELECTION_FILTER_CLIENT |
static String |
SETTING_MASTER_ELECTION_FILTER_DATA |
static String |
SETTING_MASTER_ELECTION_WAIT_FOR_JOINS_TIMEOUT |
static String |
SETTING_MAX_PINGS_FROM_ANOTHER_MASTER |
static String |
SETTING_PING_TIMEOUT |
static String |
SETTING_SEND_LEAVE_REQUEST |
lifecycledeprecationLogger, logger, settings| コンストラクタと説明 |
|---|
ZenDiscovery(Settings settings,
ClusterName clusterName,
ThreadPool threadPool,
TransportService transportService,
ClusterService clusterService,
NodeSettingsService nodeSettingsService,
ZenPingService pingService,
ElectMasterService electMasterService,
DiscoverySettings discoverySettings) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
addListener(InitialStateDiscoveryListener listener) |
protected void |
doClose() |
protected void |
doStart() |
protected void |
doStop() |
boolean |
joiningCluster()
returns true if zen discovery is started and there is a currently a background thread active for (re)joining
the cluster used for testing.
|
DiscoveryNode |
localNode() |
String |
nodeDescription() |
boolean |
nodeHasJoinedClusterOnce()
return true if this node has previously joined the cluster at least once.
|
DiscoveryNodes |
nodes()
start of
PingContextProvider implementation |
NodeService |
nodeService() |
void |
publish(ClusterChangedEvent clusterChangedEvent,
Discovery.AckListener ackListener)
end of
PingContextProvider implementation |
protected ClusterState |
rejoin(ClusterState clusterState,
String reason) |
void |
removeListener(InitialStateDiscoveryListener listener) |
void |
setNodeService(NodeService nodeService)
Here as a hack to solve dep injection problem...
|
void |
setRoutingService(RoutingService routingService)
Another hack to solve dep injection problem..., note, this will be called before
any start is called.
|
void |
startInitialJoin()
Triggers the first join cycle
|
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stoplogDeprecatedSetting, logRemovedSetting, nodeNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddLifecycleListener, lifecycleState, removeLifecycleListener, start, stopclosepublic static final String SETTING_MAX_PINGS_FROM_ANOTHER_MASTER
public static final String SETTING_MASTER_ELECTION_FILTER_CLIENT
public static final String SETTING_MASTER_ELECTION_WAIT_FOR_JOINS_TIMEOUT
public static final String SETTING_MASTER_ELECTION_FILTER_DATA
@Inject public ZenDiscovery(Settings settings, ClusterName clusterName, ThreadPool threadPool, TransportService transportService, ClusterService clusterService, NodeSettingsService nodeSettingsService, ZenPingService pingService, ElectMasterService electMasterService, DiscoverySettings discoverySettings)
public void setNodeService(@Nullable NodeService nodeService)
DiscoverysetNodeService インタフェース内 Discoverypublic void setRoutingService(RoutingService routingService)
DiscoverysetRoutingService インタフェース内 Discoveryprotected void doStart()
doStart クラス内 AbstractLifecycleComponent<Discovery>public void startInitialJoin()
DiscoverystartInitialJoin インタフェース内 Discoveryprotected void doStop()
doStop クラス内 AbstractLifecycleComponent<Discovery>protected void doClose()
doClose クラス内 AbstractLifecycleComponent<Discovery>public DiscoveryNode localNode()
public void addListener(InitialStateDiscoveryListener listener)
addListener インタフェース内 Discoverypublic void removeListener(InitialStateDiscoveryListener listener)
removeListener インタフェース内 Discoverypublic String nodeDescription()
nodeDescription インタフェース内 Discoverypublic DiscoveryNodes nodes()
PingContextProvider implementationnodes インタフェース内 DiscoveryNodesProviderpublic NodeService nodeService()
nodeService インタフェース内 DiscoveryNodesProviderpublic boolean nodeHasJoinedClusterOnce()
PingContextProvidernodeHasJoinedClusterOnce インタフェース内 PingContextProviderpublic void publish(ClusterChangedEvent clusterChangedEvent, Discovery.AckListener ackListener)
PingContextProvider implementationpublic boolean joiningCluster()
protected ClusterState rejoin(ClusterState clusterState, String reason)
Copyright © 2009–2016. All rights reserved.