Package com.tietoenator.trip.jxp.grid
Class TdbGridHostPublication
- java.lang.Object
-
- com.tietoenator.trip.jxp.grid.TdbGridHostPublication
-
public class TdbGridHostPublication extends java.lang.Object
Container for a particular publication from a host
-
-
Constructor Summary
Constructors Constructor Description TdbGridHostPublication(TdbGridHostPublication src)
Copy constructorTdbGridHostPublication(java.lang.String database, java.lang.String cluster)
Constructor, create a new publication container
-
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 equaljava.lang.String
getCluster()
Retrieve the name of the cluster to which the database is being publishedjava.lang.String
getDatabase()
Retrieve the name of the database being publishedvoid
setCluster(java.lang.String name)
Establish the name of the cluster to which the database is being publishedvoid
setDatabase(java.lang.String name)
Establish the name of the database being published
-
-
-
Constructor Detail
-
TdbGridHostPublication
public TdbGridHostPublication(java.lang.String database, java.lang.String cluster)
Constructor, create a new publication container- Parameters:
database
- Database namecluster
- 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 classjava.lang.Object
- Parameters:
o
- Object to test- Returns:
- true / false
-
-