Class GridDiscoveryTopologySnapshot
- java.lang.Object
-
- org.apache.ignite.internal.managers.discovery.GridDiscoveryTopologySnapshot
-
public class GridDiscoveryTopologySnapshot extends Object
Topology snapshot managed by discovery manager.
-
-
Constructor Summary
Constructors Constructor Description GridDiscoveryTopologySnapshot(long topVer, Collection<ClusterNode> topNodes)Creates a topology snapshot with given topology version and topology nodes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<ClusterNode>topologyNodes()Gets topology nodes from topology snapshot.longtopologyVersion()Gets topology version if this event is raised on topology change and configured discovery SPI implementation supports topology versioning.StringtoString()
-
-
-
Constructor Detail
-
GridDiscoveryTopologySnapshot
public GridDiscoveryTopologySnapshot(long topVer, Collection<ClusterNode> topNodes)Creates a topology snapshot with given topology version and topology nodes.- Parameters:
topVer- Topology version.topNodes- Topology nodes.
-
-
Method Detail
-
topologyVersion
public long topologyVersion()
Gets topology version if this event is raised on topology change and configured discovery SPI implementation supports topology versioning.- Returns:
- Topology version or
0if configured discovery SPI implementation does not support versioning.
-
topologyNodes
public Collection<ClusterNode> topologyNodes()
Gets topology nodes from topology snapshot. If SPI implementation does not support versioning, the best effort snapshot will be captured.- Returns:
- Topology snapshot.
-
-