Package com.tietoenator.trip.jxp.grid
Class TdbGridClusterMember
java.lang.Object
com.tietoenator.trip.jxp.grid.TdbGridClusterMember
Container class for items within a TRIPgrid cluster.
Cluster members are either databases, i.e. physical entities served by physical hosts, or replica sets, which are copies of the same database served by 2 or more physical hosts. The grid router resolves replica members to a particular physical database on a particular host for each query placed against the cluster.
Cluster members are either databases, i.e. physical entities served by physical hosts, or replica sets, which are copies of the same database served by 2 or more physical hosts. The grid router resolves replica members to a particular physical database on a particular host for each query placed against the cluster.
-
Constructor Summary
ConstructorsConstructorDescriptionCopy constructorTdbGridClusterMember
(String name) Constructor, creates a replica set member, i.e. a collection of physical databases that all exhibit the same content.TdbGridClusterMember
(String host, String name) Constructor, creates a physical member, i.e. a database residing on a host -
Method Summary
Modifier and TypeMethodDescriptionboolean
Overrides the default behavior to define equality only if type, name and (if applicable) host name are identicalgetHost()
Retrieve the name of the host providing the physical database membergetName()
Retrieve the name of the cluster memberboolean
Check if this member is a physical member, i.e. a database published from a hostboolean
Check if this member is a replica setvoid
Establish the name or IP address of the host providing the physical database membervoid
Establish the name of the cluster member
-
Constructor Details
-
TdbGridClusterMember
Constructor, creates a physical member, i.e. a database residing on a host- Parameters:
host
- Name or IP address of hostname
- Name of database, thesaurus or cluster
-
TdbGridClusterMember
Constructor, creates a replica set member, i.e. a collection of physical databases that all exhibit the same content.- Parameters:
name
- Name of replica set
-
TdbGridClusterMember
Copy constructor- Parameters:
src
- Source to be copied
-
-
Method Details
-
isPhysical
public boolean isPhysical()Check if this member is a physical member, i.e. a database published from a host- Returns:
- true / false
-
isReplicaSet
public boolean isReplicaSet()Check if this member is a replica set- Returns:
- true / false
-
getName
Retrieve the name of the cluster member- Returns:
- Cluster member name
-
setName
Establish the name of the cluster member- Parameters:
name
- Cluster member name
-
getHost
Retrieve the name of the host providing the physical database member- Returns:
- Host name if the member is physical, empty string otherwise
-
setHost
Establish the name or IP address of the host providing the physical database member- Parameters:
name
- Host name or IP address; this is ignored if the member is not physical
-
equals
Overrides the default behavior to define equality only if type, name and (if applicable) host name are identical
-