public class TdbGridClusterMember
extends java.lang.Object
Constructor and Description |
---|
TdbGridClusterMember(java.lang.String name)
Constructor, creates a replica set member, i.e. a collection of physical
databases that all exhibit the same content.
|
TdbGridClusterMember(java.lang.String host,
java.lang.String name)
Constructor, creates a physical member, i.e. a database residing on a host
|
TdbGridClusterMember(TdbGridClusterMember src)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Overrides the default behavior to define equality only if type, name
and (if applicable) host name are identical
|
java.lang.String |
getHost()
Retrieve the name of the host providing the physical database member
|
java.lang.String |
getName()
Retrieve the name of the cluster member
|
boolean |
isPhysical()
Check if this member is a physical member, i.e. a database published from a host
|
boolean |
isReplicaSet()
Check if this member is a replica set
|
void |
setHost(java.lang.String name)
Establish the name or IP address of the host providing the physical database member
|
void |
setName(java.lang.String name)
Establish the name of the cluster member
|
public TdbGridClusterMember(java.lang.String host, java.lang.String name)
host
- Name or IP address of hostname
- Name of database, thesaurus or clusterpublic TdbGridClusterMember(java.lang.String name)
name
- Name of replica setpublic TdbGridClusterMember(TdbGridClusterMember src)
src
- Source to be copiedpublic boolean isPhysical()
public boolean isReplicaSet()
public java.lang.String getName()
public void setName(java.lang.String name)
name
- Cluster member namepublic java.lang.String getHost()
public void setHost(java.lang.String name)
name
- Host name or IP address; this is ignored if the member is not physicalpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Object to test