Class TdbGridReplicaSetMember


  • public class TdbGridReplicaSetMember
    extends java.lang.Object
    Container for a member of a TRIPgrid replica set, i.e. a physical database served by a physical host
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      Overrides default to define equality only if the database name and host name are equal
      java.lang.String getHost()
      Retrieve the name of the host from which the database is published
      java.lang.String getName()
      Retrieve the name of the database
      void setHost​(java.lang.String name)
      Establish the name of the host from which the database is published
      void setName​(java.lang.String name)
      Establish the name of the database
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TdbGridReplicaSetMember

        public TdbGridReplicaSetMember​(java.lang.String host,
                                       java.lang.String name)
        Constructor, creates a new member
        Parameters:
        host - Name of host server
        name - Name of database
      • TdbGridReplicaSetMember

        public TdbGridReplicaSetMember​(TdbGridReplicaSetMember src)
        Copy constructor
        Parameters:
        src - Source of copy
    • Method Detail

      • getName

        public java.lang.String getName()
        Retrieve the name of the database
        Returns:
        Database name
      • setName

        public void setName​(java.lang.String name)
        Establish the name of the database
        Parameters:
        name - Database name
      • getHost

        public java.lang.String getHost()
        Retrieve the name of the host from which the database is published
        Returns:
        Host name
      • setHost

        public void setHost​(java.lang.String name)
        Establish the name of the host from which the database is published
        Parameters:
        name -
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides default to define equality only if the database name and host name are equal
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - Object to test
        Returns:
        true / false