|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Cluster works as a Cluster client/server for the local host
Different Cluster implementations can be used to support different
ways to communicate within the Cluster. A Cluster implementation is
responsible for setting up a way to communicate within the Cluster
and also supply "ClientApplications" with ClusterSender
used when sending information in the Cluster and
ClusterInfo
used for receiving information in the Cluster.
Method Summary | |
int |
getCheckInterval()
Get the time in seconds that this Cluster sleeps. |
java.lang.String |
getClusterName()
Return the name of the cluster that this Server is currently configured to operate within. |
ClusterReceiver |
getClusterReceiver(java.lang.String senderId)
Returns a ClusterReceiver which is the interface
to use when receiving information in the Cluster. senderId is
used as a indentifier, only information send through the
ClusterSender with the same senderId can be received. |
ClusterSender |
getClusterSender(java.lang.String senderId)
Returns a ClusterSender which is the interface
to use when sending information in the Cluster. senderId is
used as a identifier so that information sent through this
instance can only be used with the respectice
ClusterReceiver |
Container |
getContainer()
Get the Container associated with our Cluster |
int |
getDebug()
Returns the debug level for this Cluster |
java.lang.String |
getInfo()
Return descriptive information about this Cluster implementation and the corresponding version number, in the format <description>/<version> . |
ClusterMemberInfo |
getLocalClusterMember()
Return cluster information about the local host |
ClusterMemberInfo[] |
getRemoteClusterMembers()
Returns a collection containing ClusterMemberInfo
on the remote members of this Cluster. |
void |
setCheckInterval(int checkInterval)
Set the time in seconds that the Cluster waits before checking for changes and replicated data. |
void |
setClusterName(java.lang.String clusterName)
Set the name of the cluster to join, if no cluster with this name is present create one. |
void |
setContainer(Container container)
Set the Container associated with our Cluster |
void |
setDebug(int debug)
The debug detail level for this Cluster |
Method Detail |
public java.lang.String getInfo()
<description>/<version>
.
public java.lang.String getClusterName()
public void setCheckInterval(int checkInterval)
checkInterval
- The time in seconds to sleeppublic int getCheckInterval()
public void setClusterName(java.lang.String clusterName)
clusterName
- The clustername to joinpublic void setContainer(Container container)
container
- The Container to usepublic Container getContainer()
public void setDebug(int debug)
debug
- The debug levelpublic int getDebug()
public ClusterMemberInfo[] getRemoteClusterMembers()
ClusterMemberInfo
on the remote members of this Cluster. This method does
not include the local host, to retrieve
ClusterMemberInfo
on the local host
use getLocalClusterInfo()
instead.
public ClusterSender getClusterSender(java.lang.String senderId)
ClusterSender
which is the interface
to use when sending information in the Cluster. senderId is
used as a identifier so that information sent through this
instance can only be used with the respectice
ClusterReceiver
public ClusterReceiver getClusterReceiver(java.lang.String senderId)
ClusterReceiver
which is the interface
to use when receiving information in the Cluster. senderId is
used as a indentifier, only information send through the
ClusterSender
with the same senderId can be received.
public ClusterMemberInfo getLocalClusterMember()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |