Class TdbGridHostPublication


  • public class TdbGridHostPublication
    extends java.lang.Object
    Container for a particular publication from a host
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      Override the default to define equality only if both database name and cluster name are equal
      java.lang.String getCluster()
      Retrieve the name of the cluster to which the database is being published
      java.lang.String getDatabase()
      Retrieve the name of the database being published
      void setCluster​(java.lang.String name)
      Establish the name of the cluster to which the database is being published
      void setDatabase​(java.lang.String name)
      Establish the name of the database being published
      • Methods inherited from class java.lang.Object

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

      • TdbGridHostPublication

        public TdbGridHostPublication​(java.lang.String database,
                                      java.lang.String cluster)
        Constructor, create a new publication container
        Parameters:
        database - Database name
        cluster - Cluster to which database is published
      • TdbGridHostPublication

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

      • getDatabase

        public java.lang.String getDatabase()
        Retrieve the name of the database being published
        Returns:
        Database name
      • setDatabase

        public void setDatabase​(java.lang.String name)
        Establish the name of the database being published
        Parameters:
        name - Database name
      • getCluster

        public java.lang.String getCluster()
        Retrieve the name of the cluster to which the database is being published
        Returns:
        Cluster name
      • setCluster

        public void setCluster​(java.lang.String name)
        Establish the name of the cluster to which the database is being published
        Parameters:
        name - Cluster name
      • equals

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