Package | Description |
---|---|
org.wildfly.clustering.server.singleton | |
org.wildfly.clustering.singleton | |
org.wildfly.clustering.singleton.election |
Modifier and Type | Method and Description |
---|---|
void |
SingletonService.setElectionPolicy(SingletonElectionPolicy electionPolicy) |
Modifier and Type | Method and Description |
---|---|
SingletonServiceBuilder<T> |
SingletonServiceBuilder.electionPolicy(SingletonElectionPolicy policy) |
Modifier and Type | Class and Description |
---|---|
class |
PreferredSingletonElectionPolicy
An election policy that always elects a preferred node, and defers to a default policy
if the preferred node is not a candidate.
|
class |
SimpleSingletonElectionPolicy
A simple concrete policy service that decides which node in the cluster should be the master node to run certain HASingleton
service based on attribute "Position".
|
Constructor and Description |
---|
PreferredSingletonElectionPolicy(SingletonElectionPolicy policy,
Preference... preferences) |
Copyright © 2014 JBoss by Red Hat. All rights reserved.