public class ZookeeperClusterNode extends Object implements IgniteClusterNode, Externalizable, Comparable<ZookeeperClusterNode>
| Constructor and Description |
|---|
ZookeeperClusterNode() |
ZookeeperClusterNode(UUID id,
Collection<String> addrs,
Collection<String> hostNames,
IgniteProductVersion ver,
Map<String,Object> attrs,
Serializable consistentId,
long sesTimeout,
boolean client,
DiscoveryMetricsProvider metricsProvider) |
| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
addresses() |
<T> T |
attribute(String name) |
Map<String,Object> |
attributes() |
Map<Integer,CacheMetrics> |
cacheMetrics() |
int |
compareTo(@Nullable ZookeeperClusterNode node) |
Object |
consistentId() |
boolean |
equals(Object obj) |
int |
hashCode() |
Collection<String> |
hostNames() |
UUID |
id() |
boolean |
isClient() |
boolean |
isDaemon() |
boolean |
isLocal() |
void |
local(boolean loc) |
ClusterMetrics |
metrics() |
void |
onClientDisconnected(UUID newId) |
long |
order() |
void |
readExternal(ObjectInput in) |
void |
setCacheMetrics(Map<Integer,CacheMetrics> cacheMetrics) |
void |
setConsistentId(Serializable consistentId) |
void |
setMetrics(ClusterMetrics metrics) |
String |
toString() |
IgniteProductVersion |
version() |
void |
writeExternal(ObjectOutput out) |
public ZookeeperClusterNode()
public ZookeeperClusterNode(UUID id, Collection<String> addrs, Collection<String> hostNames, IgniteProductVersion ver, Map<String,Object> attrs, Serializable consistentId, long sesTimeout, boolean client, DiscoveryMetricsProvider metricsProvider)
id - Node ID.addrs - Node addresses.hostNames - Node host names.ver - Node version.attrs - Node attributes.consistentId - Consistent ID.sesTimeout - Zookeeper session timeout.client - Client node flag.metricsProvider - Metrics provider.public UUID id()
id in interface ClusterNodepublic Object consistentId()
consistentId in interface BaselineNodeconsistentId in interface ClusterNodepublic void setConsistentId(Serializable consistentId)
setConsistentId in interface IgniteClusterNode@Nullable public <T> T attribute(String name)
attribute in interface BaselineNodeattribute in interface ClusterNodepublic ClusterMetrics metrics()
metrics in interface ClusterNodepublic void setMetrics(ClusterMetrics metrics)
setMetrics in interface IgniteClusterNodepublic Map<Integer,CacheMetrics> cacheMetrics()
cacheMetrics in interface IgniteClusterNodepublic void setCacheMetrics(Map<Integer,CacheMetrics> cacheMetrics)
setCacheMetrics in interface IgniteClusterNodepublic Map<String,Object> attributes()
attributes in interface BaselineNodeattributes in interface ClusterNodepublic Collection<String> addresses()
addresses in interface ClusterNodepublic Collection<String> hostNames()
hostNames in interface ClusterNodepublic long order()
order in interface ClusterNodepublic void onClientDisconnected(UUID newId)
newId - New node ID.public IgniteProductVersion version()
version in interface ClusterNodepublic void local(boolean loc)
loc - Local node flag.public boolean isLocal()
isLocal in interface ClusterNodepublic boolean isDaemon()
isDaemon in interface ClusterNodepublic boolean isClient()
isClient in interface ClusterNodepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic int compareTo(@Nullable
@Nullable ZookeeperClusterNode node)
compareTo in interface Comparable<ZookeeperClusterNode>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.29 Release Date : January 8 2026