Class LegacyDistributedSingletonService<T>
java.lang.Object
org.wildfly.clustering.singleton.server.AbstractSingletonService<LegacySingletonContext<T>,ServiceValue<T>>
org.wildfly.clustering.singleton.server.LegacyDistributedSingletonService<T>
- All Implemented Interfaces:
Supplier<SingletonContextRegistration<LegacySingletonContext<T>>>,org.jboss.msc.Service,org.jboss.msc.service.Service<T>,org.jboss.msc.value.Value<T>,ServiceNameProvider,PrimaryProxyContext<T>,SingletonService,Singleton,SingletonService<T>
@Deprecated
public class LegacyDistributedSingletonService<T>
extends AbstractSingletonService<LegacySingletonContext<T>,ServiceValue<T>>
implements SingletonService<T>, PrimaryProxyContext<T>
Deprecated.
Distributed singleton service implementation that uses JBoss MSC 1.3.x service installation.
Decorates an MSC service ensuring that it is only started on one node in the cluster at any given time.
- Author:
- Paul Ferraro
-
Field Summary
Fields inherited from interface org.jboss.msc.Service
NULLFields inherited from interface org.jboss.msc.service.Service
NULL -
Constructor Summary
ConstructorsConstructorDescriptionLegacyDistributedSingletonService(SingletonServiceContext context, org.jboss.msc.service.Service<T> primaryService, org.jboss.msc.service.Service<T> backupService, Consumer<Singleton> singleton) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionorg.wildfly.clustering.server.dispatcher.CommandDispatcher<org.wildfly.clustering.server.GroupMember,LegacySingletonContext<T>> Deprecated.org.jboss.msc.service.ServiceNameDeprecated.Deprecated.getValue()Deprecated.voidstart(org.jboss.msc.service.StartContext context) Deprecated.voidstop(org.jboss.msc.service.StopContext context) Deprecated.Methods inherited from class org.wildfly.clustering.singleton.server.AbstractSingletonService
getMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.singleton.Singleton
getPrimaryProvider, getProviders, isPrimary
-
Constructor Details
-
LegacyDistributedSingletonService
public LegacyDistributedSingletonService(SingletonServiceContext context, org.jboss.msc.service.Service<T> primaryService, org.jboss.msc.service.Service<T> backupService, Consumer<Singleton> singleton) Deprecated.
-
-
Method Details
-
getServiceName
public org.jboss.msc.service.ServiceName getServiceName()Deprecated.- Specified by:
getServiceNamein interfaceServiceNameProvider
-
getSingletonState
Deprecated.- Specified by:
getSingletonStatein interfaceSingleton
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException Deprecated.- Specified by:
startin interfaceorg.jboss.msc.Service- Overrides:
startin classAbstractSingletonService<LegacySingletonContext<T>,ServiceValue<T>> - Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context) Deprecated.- Specified by:
stopin interfaceorg.jboss.msc.Service- Overrides:
stopin classAbstractSingletonService<LegacySingletonContext<T>,ServiceValue<T>>
-
getValue
Deprecated.- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<T>
-
getCommandDispatcher
public org.wildfly.clustering.server.dispatcher.CommandDispatcher<org.wildfly.clustering.server.GroupMember,LegacySingletonContext<T>> getCommandDispatcher()Deprecated.- Specified by:
getCommandDispatcherin interfacePrimaryProxyContext<T>
-