java.lang.Object
org.odpi.openmetadata.repositoryservices.connectors.stores.cohortregistrystore.properties.CohortMembership
All Implemented Interfaces:
Serializable

public class CohortMembership extends Object implements 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:
  • Constructor Details

    • CohortMembership

      public CohortMembership()
      Default constructor
  • Method Details

    • 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 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(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(Object objectToCompare)
      Validate if the values stored match the object to compare.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - test object
      Returns:
      boolean result
    • hashCode

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

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