public class PreferredSingletonElectionPolicy extends Object implements SingletonElectionPolicy
Constructor and Description |
---|
PreferredSingletonElectionPolicy(Preference preference,
SingletonElectionPolicy policy) |
Modifier and Type | Method and Description |
---|---|
ClusterNode |
elect(List<ClusterNode> candidates)
Elect a single node from the specified list of candidate nodes.
|
public PreferredSingletonElectionPolicy(Preference preference, SingletonElectionPolicy policy)
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.