Class LocalSingletonService
- java.lang.Object
-
- org.wildfly.clustering.singleton.server.LocalSingletonService
-
- All Implemented Interfaces:
org.jboss.msc.Service,SingletonService,Singleton
- Direct Known Subclasses:
LocalLegacySingletonService
public class LocalSingletonService extends Object implements SingletonService
LocalSingletonServiceimplementation created using JBoss MSC 1.4.x service installation.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description LocalSingletonService(org.jboss.msc.Service service, LocalSingletonServiceContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodegetPrimaryProvider()Set<Node>getProviders()booleanisPrimary()voidstart(org.jboss.msc.service.StartContext context)voidstop(org.jboss.msc.service.StopContext context)
-
-
-
Constructor Detail
-
LocalSingletonService
public LocalSingletonService(org.jboss.msc.Service service, LocalSingletonServiceContext context)
-
-
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- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context)
- Specified by:
stopin interfaceorg.jboss.msc.Service
-
getPrimaryProvider
public Node getPrimaryProvider()
- Specified by:
getPrimaryProviderin interfaceSingleton
-
getProviders
public Set<Node> getProviders()
- Specified by:
getProvidersin interfaceSingleton
-
-