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>,ServiceProviderRegistration.Listener,ServiceNameProvider,LegacySingletonContext<T>,Lifecycle,PrimaryProxyContext<T>,SingletonContext,SingletonService,Singleton,SingletonElectionListener,SingletonService<T>
@Deprecated
public class LegacyDistributedSingletonService<T>
extends AbstractDistributedSingletonService<LegacySingletonContext<T>>
implements SingletonService<T>, LegacySingletonContext<T>, PrimaryProxyContext<T>
Deprecated.
Distributed
SingletonService 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(DistributedSingletonServiceContext context, org.jboss.msc.service.Service<T> primaryService, org.jboss.msc.service.Service<T> backupService) Deprecated. -
Method Summary
Methods inherited from class org.wildfly.clustering.singleton.server.AbstractDistributedSingletonService
elected, getPrimaryProvider, getProviders, isPrimary, providersChanged, start, stopMethods 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, isPrimaryMethods inherited from interface org.wildfly.clustering.singleton.SingletonElectionListener
elected
-
Constructor Details
-
LegacyDistributedSingletonService
public LegacyDistributedSingletonService(DistributedSingletonServiceContext context, org.jboss.msc.service.Service<T> primaryService, org.jboss.msc.service.Service<T> backupService) Deprecated.
-
-
Method Details
-
getServiceName
public org.jboss.msc.service.ServiceName getServiceName()Deprecated.- Specified by:
getServiceNamein interfaceServiceNameProvider
-
get
Deprecated. -
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 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- Overrides:
stopin classAbstractDistributedSingletonService<LegacySingletonContext<T>>
-
getValue
Deprecated.- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<T>
-
getCommandDispatcher
Deprecated.- Specified by:
getCommandDispatcherin interfacePrimaryProxyContext<T>
-
getLocalValue
Deprecated.- Specified by:
getLocalValuein interfaceLegacySingletonContext<T>
-