public class TdbGridReplicaSet extends TdbMessageProvider implements com.tietoenator.trip.jxp.internal.utils.DOMSink, TdbControlObjectProvider, java.lang.Iterable<TdbGridReplicaSetMember>
Constructor and Description |
---|
TdbGridReplicaSet(TdbSession session)
Constructor, creates a blank instance
|
TdbGridReplicaSet(TdbSession session,
TdbControlObject ob)
Constructor, creates an instance for the replica set referenced
|
Modifier and Type | Method and Description |
---|---|
void |
add(TdbGridReplicaSetMember member)
Add a new member to the replica set
|
boolean |
contains(TdbGridReplicaSetMember member)
Check if the replica set already contains a given member
|
void |
create()
Create a new grid replica set -- this method uses the information from the
Control object provided during construction to create the replica set.
|
void |
create(java.lang.String name,
java.lang.String comment)
Create a new grid replica set.
|
void |
get()
Retrieve the current replication set from the grid.
|
void |
get(java.lang.String name)
Refresh the contents of the named replica set from the grid.
|
java.lang.String |
getComment()
Retrieve the description of the replica set
|
TdbControlObject |
getControlObject()
Retrieve the underlying control object for the replica set
|
java.lang.String |
getName()
Retrieve the name of the replica set
|
java.util.Iterator<TdbGridReplicaSetMember> |
iterator()
Retrieve an iterator on the membership list
|
java.util.List<TdbGridReplicaSetMember> |
members()
Retrieve a collection of members for the replica set
|
void |
put()
Store the contents of the replica set to the grid.
|
void |
remove()
Delete an existing replica set -- this method uses the information from the
Control object provided during construction to name the replica set.
|
void |
remove(java.lang.String name)
Delete an existing replica set.
|
void |
rename(java.lang.String newname)
Rename an existing replica set.
|
void |
setComment(java.lang.String comment)
Establish the description of the replica set
|
void |
setName(java.lang.String name)
Establish the name of the replica set
|
codeList, getLastCode, getLastMessage, hasMessages, messageList, resetMessages
cancel, getSession, isCancelable, setCancelable
public TdbGridReplicaSet(TdbSession session) throws TdbException
session
- Active sessionTdbException
public TdbGridReplicaSet(TdbSession session, TdbControlObject ob) throws TdbException
session
- Active sessionob
- Control object reference for the replica setTdbException
public java.lang.String getName()
public void setName(java.lang.String name)
name
- Replica set namepublic java.lang.String getComment()
public void setComment(java.lang.String comment)
comment
- Replica set descriptionpublic TdbControlObject getControlObject()
getControlObject
in interface TdbControlObjectProvider
public boolean contains(TdbGridReplicaSetMember member)
member
- The replica set member to check for containmentpublic java.util.Iterator<TdbGridReplicaSetMember> iterator()
iterator
in interface java.lang.Iterable<TdbGridReplicaSetMember>
public java.util.List<TdbGridReplicaSetMember> members()
public void add(TdbGridReplicaSetMember member)
member
- The new member to add to the replica setpublic void create(java.lang.String name, java.lang.String comment) throws TdbException
name
- The name of the new replica setcomment
- A comment to store along with the replica setTdbException
public void create() throws TdbException
TdbException
public void remove(java.lang.String name) throws TdbException
name
- Name of the replica set to removeTdbException
public void remove() throws TdbException
TdbException
public void rename(java.lang.String newname) throws TdbException
newname
- The new name of the replica setTdbException
public void get(java.lang.String name) throws TdbException
name
- The name of the replica set to retrieveTdbException
public void get() throws TdbException
TdbException
public void put() throws TdbException
TdbException