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>
DistributedSingletonServiceConfiguratorimplementation that uses JBoss MSC 1.4.x service installation.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description DistributedSingletonServiceConfigurator(org.jboss.msc.service.ServiceName name, DistributedSingletonServiceConfiguratorContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SingletonServiceBuilder<?>build(org.jboss.msc.service.ServiceTarget target)SingletonServiceConfiguratorelectionListener(SingletonElectionListener listener)SingletonServiceConfiguratorelectionPolicy(SingletonElectionPolicy policy)Groupget()Supplier<CommandDispatcherFactory>getCommandDispatcherFactory()SingletonElectionListenergetElectionListener()SingletonElectionPolicygetElectionPolicy()intgetQuorum()Supplier<ServiceProviderRegistry<org.jboss.msc.service.ServiceName>>getServiceProviderRegistry()SingletonServiceConfiguratorrequireQuorum(int quorum)-
Methods inherited from class org.wildfly.clustering.service.SimpleServiceNameProvider
equals, getServiceName, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.wildfly.clustering.service.ServiceNameProvider
getServiceName
-
-
-
-
Constructor Detail
-
DistributedSingletonServiceConfigurator
public DistributedSingletonServiceConfigurator(org.jboss.msc.service.ServiceName name, DistributedSingletonServiceConfiguratorContext context)
-
-
Method Detail
-
build
public SingletonServiceBuilder<?> build(org.jboss.msc.service.ServiceTarget target)
- Specified by:
buildin interfaceImmutableSingletonServiceConfigurator- Specified by:
buildin interfaceServiceConfigurator
-
requireQuorum
public SingletonServiceConfigurator requireQuorum(int quorum)
- Specified by:
requireQuorumin interfaceSingletonServiceConfigurator
-
electionPolicy
public SingletonServiceConfigurator electionPolicy(SingletonElectionPolicy policy)
- Specified by:
electionPolicyin interfaceSingletonServiceConfigurator
-
electionListener
public SingletonServiceConfigurator electionListener(SingletonElectionListener listener)
- Specified by:
electionListenerin interfaceSingletonServiceConfigurator
-
getServiceProviderRegistry
public Supplier<ServiceProviderRegistry<org.jboss.msc.service.ServiceName>> getServiceProviderRegistry()
- Specified by:
getServiceProviderRegistryin interfaceDistributedSingletonServiceContext
-
getCommandDispatcherFactory
public Supplier<CommandDispatcherFactory> getCommandDispatcherFactory()
- Specified by:
getCommandDispatcherFactoryin interfaceDistributedSingletonServiceContext
-
getElectionPolicy
public SingletonElectionPolicy getElectionPolicy()
- Specified by:
getElectionPolicyin interfaceDistributedSingletonServiceContext
-
getElectionListener
public SingletonElectionListener getElectionListener()
- Specified by:
getElectionListenerin interfaceSingletonServiceContext
-
getQuorum
public int getQuorum()
- Specified by:
getQuorumin interfaceDistributedSingletonServiceContext
-
-