Class MemberRegistration

  • All Implemented Interfaces:
    java.io.Serializable

    public class MemberRegistration
    extends java.lang.Object
    implements java.io.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object objectToCompare)
      Validate if the values stored match the object to compare.
      java.lang.String getMetadataCollectionId()
      Return the unique identifier of the repository's metadata collection id.
      java.lang.String getMetadataCollectionName()
      Return the metadata collection name.
      java.lang.String getOrganizationName()
      Return the name of the organization.
      java.util.Date getRegistrationTime()
      Return the time that this repository registered with the cluster.
      Connection getRepositoryConnection()
      Return the connection information for a connector that enables remote calls to the repository server.
      java.lang.String getServerName()
      Return the display name for the server.
      java.lang.String getServerType()
      Return the type of server.
      int hashCode()
      Hash code base on variable values.
      void setMetadataCollectionId​(java.lang.String metadataCollectionId)
      Set up the unique identifier of the repository's metadata collection id.
      void setMetadataCollectionName​(java.lang.String metadataCollectionName)
      Set up the metadata collection name.
      void setOrganizationName​(java.lang.String organizationName)
      Set up the name of the organization.
      void setRegistrationTime​(java.util.Date registrationTime)
      Set up the time that this repository registered with the cluster.
      void setRepositoryConnection​(Connection repositoryConnection)
      Set up the connection information for a connector that enables remote calls to the repository server.
      void setServerName​(java.lang.String serverName)
      Set up the display name for the server.
      void setServerType​(java.lang.String serverType)
      Set up the type of server.
      java.lang.String toString()
      toString JSON-style
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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 java.lang.String getMetadataCollectionId()
        Return the unique identifier of the repository's metadata collection id.
        Returns:
        String metadata collection id
      • setMetadataCollectionId

        public void setMetadataCollectionId​(java.lang.String metadataCollectionId)
        Set up the unique identifier of the repository's metadata collection id.
        Parameters:
        metadataCollectionId - String guid
      • getMetadataCollectionName

        public java.lang.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​(java.lang.String metadataCollectionName)
        Set up the metadata collection name. This overrides the default value of the server name.
        Parameters:
        metadataCollectionName - string name
      • getServerName

        public java.lang.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​(java.lang.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 java.lang.String getServerType()
        Return the type of server.
        Returns:
        String server type
      • setServerType

        public void setServerType​(java.lang.String serverType)
        Set up the type of server.
        Parameters:
        serverType - String server type
      • getOrganizationName

        public java.lang.String getOrganizationName()
        Return the name of the organization.
        Returns:
        String name of the organization
      • setOrganizationName

        public void setOrganizationName​(java.lang.String organizationName)
        Set up the name of the organization.
        Parameters:
        organizationName - String name of the organization
      • getRegistrationTime

        public java.util.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​(java.util.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​(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