public class ServiceProviderRegistrationFactoryService extends Object implements ServiceProviderRegistrationFactory, ServiceRegistry, Group.Listener, org.jboss.msc.service.Service<ServiceProviderRegistrationFactory>
| Constructor and Description |
|---|
ServiceProviderRegistrationFactoryService(ServiceProviderRegistrationFactoryConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
ServiceProviderRegistration |
createRegistration(Object service,
ServiceProviderRegistration.Listener listener)
Registers the local node as providing the specified service, using the specified listener.
|
Group |
getGroup()
Returns the group with which to register service providers.
|
Set<Node> |
getProviders(Object service)
Returns the set of nodes that provide the specified service.
|
Set<Object> |
getServices() |
ServiceProviderRegistrationFactory |
getValue() |
void |
membershipChanged(List<Node> previousMembers,
List<Node> members,
boolean merged)
Indicates that the membership of the group has changed.
|
void |
modified(org.infinispan.notifications.cachelistener.event.CacheEntryModifiedEvent<org.jboss.msc.service.ServiceName,Set<Node>> event) |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
public ServiceProviderRegistrationFactoryService(ServiceProviderRegistrationFactoryConfiguration config)
public Group getGroup()
ServiceProviderRegistrationFactorygetGroup in interface ServiceProviderRegistrationFactorypublic ServiceProviderRegistration createRegistration(Object service, ServiceProviderRegistration.Listener listener)
ServiceProviderRegistrationFactorycreateRegistration in interface ServiceProviderRegistrationFactoryservice - a service to registerlistener - a registry listenerpublic Set<Node> getProviders(Object service)
ServiceProviderRegistrationFactorygetProviders in interface ServiceProviderRegistrationFactoryservice - a service to obtain providers forpublic Set<Object> getServices()
getServices in interface ServiceRegistrypublic ServiceProviderRegistrationFactory getValue()
getValue in interface org.jboss.msc.value.Value<ServiceProviderRegistrationFactory>public void start(org.jboss.msc.service.StartContext context)
start in interface org.jboss.msc.service.Service<ServiceProviderRegistrationFactory>public void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.service.Service<ServiceProviderRegistrationFactory>public void membershipChanged(List<Node> previousMembers, List<Node> members, boolean merged)
Group.ListenermembershipChanged in interface Group.ListenerpreviousMembers - previous group membersmembers - new group membersmerged - indicates whether the membership change is the result of a merge viewCopyright © 2014 JBoss by Red Hat. All rights reserved.