org.inria.myriads.snoozenode.groupmanager.leadelection
Class LeaderElectionFactory

java.lang.Object
  extended by org.inria.myriads.snoozenode.groupmanager.leadelection.LeaderElectionFactory

public final class LeaderElectionFactory
extends Object

Leader election factory.

Author:
Eugen Feller

Method Summary
static LeaderElection newLeaderElection(ZooKeeperSettings zooKeeperParameters, org.inria.myriads.snoozecommon.communication.groupmanager.GroupManagerDescription groupManagerDescription, LeaderElectionListener listener)
          Creates the leader election logic.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newLeaderElection

public static LeaderElection newLeaderElection(ZooKeeperSettings zooKeeperParameters,
                                               org.inria.myriads.snoozecommon.communication.groupmanager.GroupManagerDescription groupManagerDescription,
                                               LeaderElectionListener listener)
                                        throws Exception
Creates the leader election logic.

Parameters:
zooKeeperParameters - The zookeeper parameters
groupManagerDescription - The group manager description
listener - The leader election callback
Returns:
The leader election object
Throws:
Exception


Copyright © 2012. All Rights Reserved.