org.inria.myriads.snoozenode.groupmanager.leadelection
Class LeaderElectionFactory
java.lang.Object
org.inria.myriads.snoozenode.groupmanager.leadelection.LeaderElectionFactory
public final class LeaderElectionFactory
- extends Object
Leader election factory.
- Author:
- Eugen Feller
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 parametersgroupManagerDescription
- The group manager descriptionlistener
- The leader election callback
- Returns:
- The leader election object
- Throws:
Exception
Copyright © 2012. All Rights Reserved.