ClusterType
- The type of ClusterDataType
- The data type from which to create a new cluster.public interface IncrementalClusterCreator<ClusterType extends Cluster<DataType>,DataType> extends ClusterCreator<ClusterType,DataType>, CloneableSerializable
ClusterCreator
that can incrementally add and
remove members from a cluster.Modifier and Type | Method and Description |
---|---|
void |
addClusterMember(ClusterType cluster,
DataType member)
Adds a member to the given cluster.
|
ClusterType |
createCluster()
Creates a new, empty cluster.
|
boolean |
removeClusterMember(ClusterType cluster,
DataType member)
Removes a member from the given cluster.
|
createCluster
clone
ClusterType createCluster()
void addClusterMember(ClusterType cluster, DataType member)
cluster
- The cluster to add a member to.member
- The member to add to the cluster.boolean removeClusterMember(ClusterType cluster, DataType member)
cluster
- The cluster to remove the member from.member
- The member to remove.