@IgniteSpiMultipleInstancesSupport(value=true) @DiscoverySpiOrderSupport(value=true) @DiscoverySpiHistorySupport(value=true) @DiscoverySpiMutableCustomMessageSupport(value=false) public class ZookeeperDiscoverySpi extends IgniteSpiAdapter implements IgniteDiscoverySpi
| Modifier and Type | Field and Description |
|---|---|
static long |
DFLT_JOIN_TIMEOUT |
static String |
DFLT_ROOT_PATH |
ignite, igniteInstanceNameALL_NODES, SRV_NODES| Constructor and Description |
|---|
ZookeeperDiscoverySpi() |
addTimeoutObject, assertParameter, checkConfigurationConsistency0, clientFailureDetectionTimeout, configInfo, createSpiAttributeName, failureDetectionTimeout, failureDetectionTimeoutEnabled, failureDetectionTimeoutEnabled, getConsistentAttributeNames, getExceptionRegistry, getName, getNodeAttributes, getSpiContext, ignite, initFailureDetectionTimeout, injectables, injectResources, isNodeStopping, onBeforeStart, onClientDisconnected, onClientReconnected, onContextDestroyed, onContextDestroyed0, onContextInitialized, onContextInitialized0, registerMBean, removeTimeoutObject, setName, started, startInfo, startStopwatch, stopInfo, unregisterMBeanclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, getNodeAttributes, onClientDisconnected, onClientReconnected, onContextDestroyed, onContextInitializedpublic static final String DFLT_ROOT_PATH
public static final long DFLT_JOIN_TIMEOUT
public String getZkRootPath()
@IgniteSpiConfiguration(optional=true) public ZookeeperDiscoverySpi setZkRootPath(String zkRootPath)
zkRootPath - Base path in ZooKeeper for znodes created by SPI.this for chaining.public long getSessionTimeout()
@IgniteSpiConfiguration(optional=true) public ZookeeperDiscoverySpi setSessionTimeout(long sesTimeout)
sesTimeout - ZooKeeper session timeout.this for chaining.public long getJoinTimeout()
@IgniteSpiConfiguration(optional=true) public ZookeeperDiscoverySpi setJoinTimeout(long joinTimeout)
joinTimeout - Cluster join timeout (0 means wait forever).this for chaining.public String getZkConnectionString()
@IgniteSpiConfiguration(optional=false) public ZookeeperDiscoverySpi setZkConnectionString(String zkConnectionString)
zkConnectionString - ZooKeeper connection stringthis for chaining.public boolean isClientReconnectDisabled()
true client does not try to reconnect.@IgniteSpiConfiguration(optional=true) public ZookeeperDiscoverySpi setClientReconnectDisabled(boolean clientReconnectDisabled)
clientReconnectDisabled - Client reconnect disabled flag.this for chaining.public boolean clientReconnectSupported()
clientReconnectSupported in interface IgniteDiscoverySpipublic void clientReconnect()
clientReconnect in interface IgniteDiscoverySpipublic boolean knownNode(UUID nodeId)
knownNode in interface IgniteDiscoverySpipublic boolean supportsCommunicationFailureResolve()
supportsCommunicationFailureResolve in interface IgniteDiscoverySpipublic void resolveCommunicationFailure(ClusterNode node, Exception err)
resolveCommunicationFailure in interface IgniteDiscoverySpi@Nullable public @Nullable Serializable consistentId() throws IgniteSpiException
consistentId in interface DiscoverySpiIgniteSpiExceptionpublic Collection<ClusterNode> getRemoteNodes()
getRemoteNodes in interface DiscoverySpipublic boolean allNodesSupport(IgniteFeatures feature)
allNodesSupport in interface IgniteDiscoverySpipublic boolean allNodesSupport(IgniteFeatures feature, IgnitePredicate<ClusterNode> nodesPred)
allNodesSupport in interface IgniteDiscoverySpipublic ClusterNode getLocalNode()
getLocalNode in interface DiscoverySpigetLocalNode in class IgniteSpiAdapter@Nullable public @Nullable ClusterNode getNode(UUID nodeId)
getNode in interface DiscoverySpipublic boolean pingNode(UUID nodeId)
pingNode in interface DiscoverySpipublic void setNodeAttributes(Map<String,Object> attrs, IgniteProductVersion ver)
setNodeAttributes in interface DiscoverySpipublic void setListener(@Nullable
@Nullable DiscoverySpiListener lsnr)
setListener in interface DiscoverySpipublic void setDataExchange(DiscoverySpiDataExchange exchange)
setDataExchange in interface DiscoverySpipublic void setMetricsProvider(DiscoveryMetricsProvider metricsProvider)
setMetricsProvider in interface DiscoverySpipublic void disconnect()
throws IgniteSpiException
disconnect in interface DiscoverySpiIgniteSpiExceptionpublic void setAuthenticator(DiscoverySpiNodeAuthenticator auth)
setAuthenticator in interface DiscoverySpipublic DiscoverySpiNodeAuthenticator getAuthenticator()
public long getGridStartTime()
getGridStartTime in interface DiscoverySpipublic void setGridStartTime(long val)
val - New time value.public void sendCustomEvent(DiscoverySpiCustomMessage msg)
sendCustomEvent in interface DiscoverySpipublic void failNode(UUID nodeId, @Nullable @Nullable String warning)
failNode in interface DiscoverySpipublic boolean isClientMode()
throws IllegalStateException
isClientMode in interface DiscoverySpiIllegalStateExceptionpublic void spiStart(@Nullable
@Nullable String igniteInstanceName)
throws IgniteSpiException
spiStart in interface IgniteSpiIgniteSpiExceptionpublic void setInternalListener(IgniteDiscoverySpiInternalListener lsnr)
setInternalListener in interface IgniteDiscoverySpipublic void simulateNodeFailure()
simulateNodeFailure in interface IgniteDiscoverySpipublic void spiStop()
throws IgniteSpiException
spiStop in interface IgniteSpiIgniteSpiException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.28 Release Date : December 12 2025