Package com.tietoenator.trip.jxp.grid
Class TdbGridReplicaSetMember
- java.lang.Object
-
- com.tietoenator.trip.jxp.grid.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
-
-
Constructor Summary
Constructors Constructor Description TdbGridReplicaSetMember(TdbGridReplicaSetMember src)
Copy constructorTdbGridReplicaSetMember(java.lang.String host, java.lang.String name)
Constructor, creates a new member
-
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 equaljava.lang.String
getHost()
Retrieve the name of the host from which the database is publishedjava.lang.String
getName()
Retrieve the name of the databasevoid
setHost(java.lang.String name)
Establish the name of the host from which the database is publishedvoid
setName(java.lang.String name)
Establish the name of the database
-
-
-
Constructor Detail
-
TdbGridReplicaSetMember
public TdbGridReplicaSetMember(java.lang.String host, java.lang.String name)
Constructor, creates a new member- Parameters:
host
- Name of host servername
- 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 classjava.lang.Object
- Parameters:
o
- Object to test- Returns:
- true / false
-
-