org.inria.myriads.snoozenode.groupmanager.leadelection
public final class LeaderElectionFactory extends Object
Modifier and Type | Method and Description |
---|---|
static LeaderElection |
newLeaderElection(ZooKeeperSettings zooKeeperParameters,
org.inria.myriads.snoozecommon.communication.groupmanager.GroupManagerDescription groupManagerDescription,
LeaderElectionListener listener)
Creates the leader election logic.
|
public static LeaderElection newLeaderElection(ZooKeeperSettings zooKeeperParameters, org.inria.myriads.snoozecommon.communication.groupmanager.GroupManagerDescription groupManagerDescription, LeaderElectionListener listener) throws Exception
zooKeeperParameters
- The zookeeper parametersgroupManagerDescription
- The group manager descriptionlistener
- The leader election callbackException
Copyright © 2013. All Rights Reserved.