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.
author: Bip Thelin version: $Revision: 1.5 $, $Date: 2001/07/22 20:13:30 $
Method Summary
public int
getCheckInterval() Get the time in seconds that this Cluster sleeps.
getInfo() Return descriptive information about this Cluster implementation and
the corresponding version number, in the format
<description>/<version>.
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.
The ClusterReceiver
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
The ClusterSender
Returns a collection containing 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.
Collection with all members in the Cluster
setCheckInterval
public void setCheckInterval(int checkInterval)(Code)
Set the time in seconds that the Cluster waits before
checking for changes and replicated data.
Parameters: checkInterval - The time in seconds to sleep
setClusterName
public void setClusterName(String clusterName)(Code)
Set the name of the cluster to join, if no cluster with
this name is present create one.
Parameters: clusterName - The clustername to join