Interface IClusterView

    • Method Detail

      • getViewId

        long getViewId()
        Returns the view id.

        It uniquely defines a view as it's updated on every change (a member join or leave) in the cluster. If the member on which this method is called is not connected to the cluster, INITIAL_VIEW_ID is returned, otherwise a positive value is returned.

      • getClusterMembers

        Set<String> getClusterMembers()
        Returns set of cluster's members' names. Cannot be null but empty..
      • getClusterMemberAddresses

        Set<IAddress> getClusterMemberAddresses()
        Returns The set of cluster's members' IAddress.

        Cannot be null but empty.

      • getAddressFromName

        IAddress getAddressFromName​(String name)
        Returns the IAddress of the member or null if not in the view.
        Parameters:
        name - cluster's member's name
      • getClusterId

        String getClusterId()
        Returns the id of the cluster the view belongs to.

        May return null if a messenger is not connected yet.