public interface ServiceProviderRegistry
Modifier and Type | Interface and Description |
---|---|
static interface |
ServiceProviderRegistry.Listener |
Modifier and Type | Method and Description |
---|---|
Set<ClusterNode> |
getServiceProviders(String service)
Returns the set of nodes that provide the specified service.
|
void |
register(String service,
ServiceProviderRegistry.Listener listener)
Registers the current node as a provider for the specified service.
|
void |
unregister(String service)
Unregisters the current node as a provider for the specified service.
|
void register(String service, ServiceProviderRegistry.Listener listener)
service
- the name of the provided service.listener
- the object to notify in the event the set of nodes providing the specified service changes.void unregister(String service)
service
- a service name.Set<ClusterNode> getServiceProviders(String service)
service
- a service nameCopyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.