org.apache.s4.comm.topology
Interface Assignment
- All Known Implementing Classes:
- AssignmentFromZK
public interface Assignment
Upon startup an S4 process in a cluster must be assigned one and only one of the available cluster nodes. Cluster
nodes (ClusterNode
) are defined using a configuration mechanism at startup.
The Assignment implementation is responsible for coordinating how cluster nodes are uniquely assigned to processes.
assignClusterNode
ClusterNode assignClusterNode()
- Returns:
- the ClusterNode associated assigned to this process.