public class SimpleSingletonElectionPolicy extends Object implements SingletonElectionPolicy
Constructor and Description |
---|
SimpleSingletonElectionPolicy() |
SimpleSingletonElectionPolicy(int position) |
Modifier and Type | Method and Description |
---|---|
ClusterNode |
elect(List<ClusterNode> candidates)
Elect a single node from the specified list of candidate nodes.
|
public SimpleSingletonElectionPolicy()
public SimpleSingletonElectionPolicy(int position)
public ClusterNode elect(List<ClusterNode> candidates)
SingletonElectionPolicy
elect
in interface SingletonElectionPolicy
candidates
- a list of candidate nodes.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.