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()
ServiceProviderRegistrationFactory
getGroup
in interface ServiceProviderRegistrationFactory
public ServiceProviderRegistration createRegistration(Object service, ServiceProviderRegistration.Listener listener)
ServiceProviderRegistrationFactory
createRegistration
in interface ServiceProviderRegistrationFactory
listener
- a registry listenerpublic Set<Node> getProviders(Object service)
ServiceProviderRegistrationFactory
getProviders
in interface ServiceProviderRegistrationFactory
public Set<Object> getServices()
getServices
in interface ServiceRegistry
public 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.Listener
membershipChanged
in interface Group.Listener
previousMembers
- previous group members.members
- new group membersmerged
- indicates whether the membership change is the result of a merge viewCopyright © 2013 JBoss by Red Hat. All rights reserved.