Package org.wildfly.clustering.provider
Interface ServiceProviderRegistry<T>
- Type Parameters:
T- a service type
- All Superinterfaces:
Registrar<T>
A distributed registry of service providers.
Allows capability to query which nodes can provide a given service.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptiongetGroup()Returns the group with which to register service providers.getProviders(T service) Returns the set of nodes that can provide the specified service.Returns the complete list of services known to this registry.Registers the local node as providing the specified service.register(T service, ServiceProviderRegistration.Listener listener) Registers the local node as providing the specified service, using the specified listener.
-
Method Details
-
getGroup
Group getGroup()Returns the group with which to register service providers.- Returns:
- a group
-
register
Registers the local node as providing the specified service. -
register
Registers the local node as providing the specified service, using the specified listener.- Parameters:
service- a service to registerlistener- a registry listener- Returns:
- a new service provider registration
-
getProviders
Returns the set of nodes that can provide the specified service.- Parameters:
service- a service to obtain providers for- Returns:
- a set of nodes
-
getServices
Returns the complete list of services known to this registry.- Returns:
- a set of services
-