org.codehaus.activecluster.election.impl
Class BullyElectionStrategy
java.lang.Object
org.codehaus.activecluster.election.impl.BullyElectionStrategy
- All Implemented Interfaces:
- ElectionStrategy
- public class BullyElectionStrategy
- extends Object
- implements ElectionStrategy
BullyElectionStrategy
Use a simple bully algorithm to elect a coordinator.
the member with the lowest lexicographical name is choosen
- Version:
- $Revision: 1.2 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BullyElectionStrategy
public BullyElectionStrategy()
doElection
public Node doElection(Cluster cluster)
throws JMSException
- Elect a coordinator.
- Specified by:
doElection
in interface ElectionStrategy
- Parameters:
cluster
-
- Returns:
- the elected Node
- Throws:
JMSException
Copyright © 2004-2005 Protique, Ltd.. All Rights Reserved.