public class TdbGridCluster extends TdbMessageProvider implements com.tietoenator.trip.jxp.internal.utils.DOMSink, TdbControlObjectProvider, java.lang.Iterable<TdbGridClusterMember>
Constructor and Description |
---|
TdbGridCluster(TdbSession session)
Constructor, creates a blank container for a new cluster
|
TdbGridCluster(TdbSession session,
TdbControlObject ob)
Constructor, creates a container for referencing the defined cluster
|
Modifier and Type | Method and Description |
---|---|
void |
add(TdbGridClusterMember member)
Add a cluster member to the cluster
|
boolean |
contains(TdbGridClusterMember member)
Check if the cluster already contains a given member.
|
void |
create(java.lang.String name,
java.lang.String comment)
Create a new grid cluster.
|
void |
get()
Refresh the contents of the cluster from the grid.
|
java.lang.String |
getComment()
Retrieve the description of the cluster
|
TdbControlObject |
getControlObject()
Retrieve the underlying control object for the cluster
|
java.lang.String |
getName()
Retrieve the name of the cluster
|
java.util.Iterator<TdbGridClusterMember> |
iterator()
Retrieve an iterator over the grid cluster's membership list
|
java.util.List<TdbGridClusterMember> |
members()
Retrieve the grid cluster's membership list
|
void |
put()
Store the contents of the cluster to the grid.
|
void |
remove()
Remove the current cluster from the grid.
|
void |
remove(java.lang.String name)
Remove a named cluster from the grid.
|
void |
rename(java.lang.String newname)
Rename an existing cluster.
|
void |
setComment(java.lang.String comment)
Set the description of the cluster
|
void |
setName(java.lang.String name)
Set the name of the cluster
|
codeList, getLastCode, getLastMessage, hasMessages, messageList, resetMessages
cancel, getSession, isCancelable, setCancelable
public TdbGridCluster(TdbSession session) throws TdbException
session
- Active sessionTdbException
public TdbGridCluster(TdbSession session, TdbControlObject ob) throws TdbException
session
- Active sessionob
- Control object referencing the clusterTdbException
public TdbControlObject getControlObject()
getControlObject
in interface TdbControlObjectProvider
public java.lang.String getName()
public void setName(java.lang.String name)
name
- Name of clusterpublic java.lang.String getComment()
public void setComment(java.lang.String comment)
comment
- Cluster description, if anypublic java.util.List<TdbGridClusterMember> members()
public java.util.Iterator<TdbGridClusterMember> iterator()
iterator
in interface java.lang.Iterable<TdbGridClusterMember>
public void add(TdbGridClusterMember member)
member
- The new member to add to the clusterpublic void create(java.lang.String name, java.lang.String comment) throws TdbException
name
- Name of new clustercomment
- Optional description for the new clusterTdbException
public void remove(java.lang.String name) throws TdbException
name
- Name of the cluster to removeTdbException
public void remove() throws TdbException
TdbException
public void rename(java.lang.String newname) throws TdbException
newname
- The new name of the clusterTdbException
public void get() throws TdbException
TdbException
public void put() throws TdbException
TdbException
public boolean contains(TdbGridClusterMember member)
member
- The member to check against the existing membership list