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, resetMessagescancel, getSession, isCancelable, setCancelablepublic TdbGridReplicaSet(TdbSession session) throws TdbException
session - Active sessionTdbExceptionpublic TdbGridReplicaSet(TdbSession session, TdbControlObject ob) throws TdbException
session - Active sessionob - Control object reference for the replica setTdbExceptionpublic 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 TdbControlObjectProviderpublic 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
This method causes network I/O.
name - The name of the new replica setcomment - A comment to store along with the replica setTdbExceptionpublic void create()
throws TdbException
This method causes network I/O.
TdbExceptionpublic void remove(java.lang.String name)
throws TdbException
This method causes network I/O.
name - Name of the replica set to removeTdbExceptionpublic void remove()
throws TdbException
This method causes network I/O.
TdbExceptionpublic void rename(java.lang.String newname)
throws TdbException
This method causes network I/O.
newname - The new name of the replica setTdbExceptionpublic void get(java.lang.String name)
throws TdbException
This method causes network I/O.
name - The name of the replica set to retrieveTdbExceptionpublic void get()
throws TdbException
This method causes network I/O.
TdbExceptionpublic void put()
throws TdbException
This method causes network I/O.
TdbException