Class GridDiscoveryTopologySnapshot


  • public class GridDiscoveryTopologySnapshot
    extends Object
    Topology snapshot managed by discovery manager.
    • 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 0 if 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.