org.codehaus.activecluster.election.impl
Class BullyElectionStrategy

java.lang.Object
  extended byorg.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 $

Constructor Summary
BullyElectionStrategy()
           
 
Method Summary
 Node doElection(Cluster cluster)
          Elect a coordinator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BullyElectionStrategy

public BullyElectionStrategy()
Method Detail

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.