Class LegacyDistributedSingletonService<T>
- java.lang.Object
-
- org.wildfly.clustering.singleton.server.AbstractDistributedSingletonService<LegacySingletonContext<T>>
-
- org.wildfly.clustering.singleton.server.LegacyDistributedSingletonService<T>
-
- All Implemented Interfaces:
Supplier<LegacySingletonContext<T>>,org.jboss.msc.Service,org.jboss.msc.service.Service<T>,org.jboss.msc.value.Value<T>,org.wildfly.clustering.provider.ServiceProviderRegistration.Listener,org.wildfly.clustering.service.ServiceNameProvider,LegacySingletonContext<T>,Lifecycle,PrimaryProxyContext<T>,SingletonContext,SingletonService,org.wildfly.clustering.singleton.Singleton,org.wildfly.clustering.singleton.SingletonElectionListener,org.wildfly.clustering.singleton.SingletonService<T>
@Deprecated public class LegacyDistributedSingletonService<T> extends AbstractDistributedSingletonService<LegacySingletonContext<T>> implements org.wildfly.clustering.singleton.SingletonService<T>, LegacySingletonContext<T>, PrimaryProxyContext<T>
Deprecated.DistributedSingletonServiceimplementation 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
-
-
Constructor Summary
Constructors Constructor Description LegacyDistributedSingletonService(DistributedSingletonServiceContext context, org.jboss.msc.service.Service<T> primaryService, org.jboss.msc.service.Service<T> backupService)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description LegacySingletonContext<T>get()Deprecated.org.wildfly.clustering.dispatcher.CommandDispatcher<LegacySingletonContext<T>>getCommandDispatcher()Deprecated.Optional<T>getLocalValue()Deprecated.org.jboss.msc.service.ServiceNamegetServiceName()Deprecated.TgetValue()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.AbstractDistributedSingletonService
elected, getPrimaryProvider, getProviders, isPrimary, providersChanged, start, stop
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
LegacyDistributedSingletonService
public LegacyDistributedSingletonService(DistributedSingletonServiceContext context, org.jboss.msc.service.Service<T> primaryService, org.jboss.msc.service.Service<T> backupService)
Deprecated.
-
-
Method Detail
-
getServiceName
public org.jboss.msc.service.ServiceName getServiceName()
Deprecated.- Specified by:
getServiceNamein interfaceorg.wildfly.clustering.service.ServiceNameProvider
-
get
public LegacySingletonContext<T> get()
Deprecated.
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartExceptionDeprecated.- Specified by:
startin interfaceorg.jboss.msc.Service- Specified by:
startin interfaceorg.jboss.msc.service.Service<T>- Overrides:
startin classAbstractDistributedSingletonService<LegacySingletonContext<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- Specified by:
stopin interfaceorg.jboss.msc.service.Service<T>- Overrides:
stopin classAbstractDistributedSingletonService<LegacySingletonContext<T>>
-
getValue
public T getValue()
Deprecated.- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<T>
-
getCommandDispatcher
public org.wildfly.clustering.dispatcher.CommandDispatcher<LegacySingletonContext<T>> getCommandDispatcher()
Deprecated.- Specified by:
getCommandDispatcherin interfacePrimaryProxyContext<T>
-
getLocalValue
public Optional<T> getLocalValue()
Deprecated.- Specified by:
getLocalValuein interfaceLegacySingletonContext<T>
-
-