Class DistributedSingletonService
- java.lang.Object
-
- org.wildfly.clustering.singleton.server.AbstractDistributedSingletonService<SingletonContext>
-
- org.wildfly.clustering.singleton.server.DistributedSingletonService
-
- All Implemented Interfaces:
Supplier<SingletonContext>,org.jboss.msc.Service,org.wildfly.clustering.provider.ServiceProviderRegistration.Listener,Lifecycle,SingletonContext,SingletonService,org.wildfly.clustering.singleton.Singleton,org.wildfly.clustering.singleton.SingletonElectionListener
public class DistributedSingletonService extends AbstractDistributedSingletonService<SingletonContext>
DistributedSingletonServiceimplementation that uses JBoss MSC 1.4.x service installation.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description DistributedSingletonService(DistributedSingletonServiceContext context, org.jboss.msc.Service service, Consumer<org.wildfly.clustering.singleton.Singleton> singleton, List<Map.Entry<org.jboss.msc.service.ServiceName[],DeferredInjector<?>>> injectors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SingletonContextget()voidstart(org.jboss.msc.service.StartContext context)-
Methods inherited from class org.wildfly.clustering.singleton.server.AbstractDistributedSingletonService
elected, getPrimaryProvider, getProviders, isPrimary, providersChanged, start, stop, stop
-
-
-
-
Constructor Detail
-
DistributedSingletonService
public DistributedSingletonService(DistributedSingletonServiceContext context, org.jboss.msc.Service service, Consumer<org.wildfly.clustering.singleton.Singleton> singleton, List<Map.Entry<org.jboss.msc.service.ServiceName[],DeferredInjector<?>>> injectors)
-
-
Method Detail
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException- Specified by:
startin interfaceorg.jboss.msc.Service- Overrides:
startin classAbstractDistributedSingletonService<SingletonContext>- Throws:
org.jboss.msc.service.StartException
-
get
public SingletonContext get()
-
-