Class DistributedSingletonServiceConfigurator
java.lang.Object
org.wildfly.clustering.service.SimpleServiceNameProvider
org.wildfly.clustering.singleton.server.DistributedSingletonServiceConfigurator
- All Implemented Interfaces:
Supplier<Group>,ServiceConfigurator,ServiceNameProvider,DistributedSingletonServiceContext,SingletonServiceContext,ImmutableSingletonServiceConfigurator,SingletonServiceConfigurator
public class DistributedSingletonServiceConfigurator
extends SimpleServiceNameProvider
implements SingletonServiceConfigurator, DistributedSingletonServiceContext, Supplier<Group>
Distributed
SingletonServiceConfigurator implementation that uses JBoss MSC 1.4.x service installation.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionDistributedSingletonServiceConfigurator(org.jboss.msc.service.ServiceName name, DistributedSingletonServiceConfiguratorContext context) -
Method Summary
Modifier and TypeMethodDescriptionbuild(org.jboss.msc.service.ServiceTarget target) electionListener(SingletonElectionListener listener) get()intSupplier<ServiceProviderRegistry<org.jboss.msc.service.ServiceName>>requireQuorum(int quorum) Methods inherited from class org.wildfly.clustering.service.SimpleServiceNameProvider
equals, getServiceName, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.wildfly.clustering.service.ServiceNameProvider
getServiceName
-
Constructor Details
-
DistributedSingletonServiceConfigurator
public DistributedSingletonServiceConfigurator(org.jboss.msc.service.ServiceName name, DistributedSingletonServiceConfiguratorContext context)
-
-
Method Details
-
get
-
build
- Specified by:
buildin interfaceImmutableSingletonServiceConfigurator- Specified by:
buildin interfaceServiceConfigurator
-
requireQuorum
- Specified by:
requireQuorumin interfaceSingletonServiceConfigurator
-
electionPolicy
- Specified by:
electionPolicyin interfaceSingletonServiceConfigurator
-
electionListener
- Specified by:
electionListenerin interfaceSingletonServiceConfigurator
-
getServiceProviderRegistry
public Supplier<ServiceProviderRegistry<org.jboss.msc.service.ServiceName>> getServiceProviderRegistry()- Specified by:
getServiceProviderRegistryin interfaceDistributedSingletonServiceContext
-
getCommandDispatcherFactory
- Specified by:
getCommandDispatcherFactoryin interfaceDistributedSingletonServiceContext
-
getElectionPolicy
- Specified by:
getElectionPolicyin interfaceDistributedSingletonServiceContext
-
getElectionListener
- Specified by:
getElectionListenerin interfaceSingletonServiceContext
-
getQuorum
public int getQuorum()- Specified by:
getQuorumin interfaceDistributedSingletonServiceContext
-