Class MemberRegistration
- java.lang.Object
-
- org.odpi.openmetadata.repositoryservices.connectors.stores.cohortregistrystore.properties.MemberRegistration
-
- All Implemented Interfaces:
Serializable
public class MemberRegistration extends Object implements Serializable
MemberRegistration is a POJO for storing the information about a metadata repository that is a member of the open metadata repository cohort. This information is saved to disk by the OMRSCohortRegistryStore.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MemberRegistration()Default constructor initializes registration information to null.MemberRegistration(MemberRegistration template)Copy/clone constructor copies registration information from the template.
-
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.StringgetMetadataCollectionId()Return the unique identifier of the repository's metadata collection id.StringgetMetadataCollectionName()Return the metadata collection name.StringgetOrganizationName()Return the name of the organization.DategetRegistrationTime()Return the time that this repository registered with the cluster.ConnectiongetRepositoryConnection()Return the connection information for a connector that enables remote calls to the repository server.StringgetServerName()Return the display name for the server.StringgetServerType()Return the type of server.inthashCode()Hash code base on variable values.voidsetMetadataCollectionId(String metadataCollectionId)Set up the unique identifier of the repository's metadata collection id.voidsetMetadataCollectionName(String metadataCollectionName)Set up the metadata collection name.voidsetOrganizationName(String organizationName)Set up the name of the organization.voidsetRegistrationTime(Date registrationTime)Set up the time that this repository registered with the cluster.voidsetRepositoryConnection(Connection repositoryConnection)Set up the connection information for a connector that enables remote calls to the repository server.voidsetServerName(String serverName)Set up the display name for the server.voidsetServerType(String serverType)Set up the type of server.StringtoString()toString JSON-style
-
-
-
Constructor Detail
-
MemberRegistration
public MemberRegistration()
Default constructor initializes registration information to null.
-
MemberRegistration
public MemberRegistration(MemberRegistration template)
Copy/clone constructor copies registration information from the template.- Parameters:
template- MemberRegistration properties to copy
-
-
Method Detail
-
getMetadataCollectionId
public String getMetadataCollectionId()
Return the unique identifier of the repository's metadata collection id.- Returns:
- String metadata collection id
-
setMetadataCollectionId
public void setMetadataCollectionId(String metadataCollectionId)
Set up the unique identifier of the repository's metadata collection id.- Parameters:
metadataCollectionId- String guid
-
getMetadataCollectionName
public String getMetadataCollectionName()
Return the metadata collection name. The server name is returned if the metadata collection name has not been explicitly provided.- Returns:
- string name
-
setMetadataCollectionName
public void setMetadataCollectionName(String metadataCollectionName)
Set up the metadata collection name. This overrides the default value of the server name.- Parameters:
metadataCollectionName- string name
-
getServerName
public String getServerName()
Return the display name for the server. It is not guaranteed to be unique just confusing for administrators if it is different. The display name can change over time with no loss of data integrity.- Returns:
- String display name
-
setServerName
public void setServerName(String serverName)
Set up the display name for the server. It is not guaranteed to be unique just confusing for administrators if it is different. The display name can change over time with no loss of data integrity.- Parameters:
serverName- String display name
-
getServerType
public String getServerType()
Return the type of server.- Returns:
- String server type
-
setServerType
public void setServerType(String serverType)
Set up the type of server.- Parameters:
serverType- String server type
-
getOrganizationName
public String getOrganizationName()
Return the name of the organization.- Returns:
- String name of the organization
-
setOrganizationName
public void setOrganizationName(String organizationName)
Set up the name of the organization.- Parameters:
organizationName- String name of the organization
-
getRegistrationTime
public Date getRegistrationTime()
Return the time that this repository registered with the cluster. (Or null if it has not yet registered.)- Returns:
- Date object representing the registration time stamp
-
setRegistrationTime
public void setRegistrationTime(Date registrationTime)
Set up the time that this repository registered with the cluster. (Or null if it has not yet registered.)- Parameters:
registrationTime- Date object representing the registration time stamp
-
getRepositoryConnection
public Connection getRepositoryConnection()
Return the connection information for a connector that enables remote calls to the repository server.- Returns:
- Connection object containing the properties of the connection
-
setRepositoryConnection
public void setRepositoryConnection(Connection repositoryConnection)
Set up the connection information for a connector that enables remote calls to the repository server.- Parameters:
repositoryConnection- Connection object containing the properties of the connection
-
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.
-
-