Class CohortMembership

  • All Implemented Interfaces:
    java.io.Serializable

    public class CohortMembership
    extends java.lang.Object
    implements java.io.Serializable
    CohortMembership describes the structure of the cohort registry store. It contains details of the local registration and a list of remote member registrations.
    See Also:
    Serialized Form
    • Constructor Detail

      • CohortMembership

        public CohortMembership()
        Default constructor
    • Method Detail

      • getLocalRegistration

        public MemberRegistration getLocalRegistration()
        Return the description of the local server's registration with the cohort.
        Returns:
        local registration object
      • setLocalRegistration

        public void setLocalRegistration​(MemberRegistration localRegistration)
        Set up the description of the local server's registration with the cohort.
        Parameters:
        localRegistration - local registration object
      • getRemoteRegistrations

        public java.util.List<MemberRegistration> getRemoteRegistrations()
        Return details of each of the remote repositories registered with this cohort.
        Returns:
        details about the remote members of the cohort
      • setRemoteRegistrations

        public void setRemoteRegistrations​(java.util.List<MemberRegistration> remoteRegistrations)
        Set up details of each of the remote repositories registered with this cohort.
        Parameters:
        remoteRegistrations - details about the remote members of the cohort
      • equals

        public boolean equals​(java.lang.Object objectToCompare)
        Validate if the values stored match the object to compare.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        objectToCompare - test object
        Returns:
        boolean result
      • hashCode

        public int hashCode()
        Hash code base on variable values.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        int
      • toString

        public java.lang.String toString()
        toString JSON-style
        Overrides:
        toString in class java.lang.Object
        Returns:
        string containing variable values