Class CohortMembership
- 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CohortMembership()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Validate if the values stored match the object to compare.MemberRegistrationgetLocalRegistration()Return the description of the local server's registration with the cohort.List<MemberRegistration>getRemoteRegistrations()Return details of each of the remote repositories registered with this cohort.inthashCode()Hash code base on variable values.voidsetLocalRegistration(MemberRegistration localRegistration)Set up the description of the local server's registration with the cohort.voidsetRemoteRegistrations(List<MemberRegistration> remoteRegistrations)Set up details of each of the remote repositories registered with this cohort.StringtoString()toString JSON-style
-
-
-
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 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.
-
hashCode
public int hashCode()
Hash code base on variable values.
-
-