public interface IServiceRegistry
Modifier and Type | Method and Description |
---|---|
void |
addExcludedComponent(IComponentIdentifier cid)
Add an excluded component.
|
void |
addLocalService(IService service)
Add a local service to the registry.
|
<T> ISubscriptionIntermediateFuture<T> |
addQuery(ServiceQuery<T> query)
Add a service query to the registry.
|
void |
addService(IServiceIdentifier service)
Add a service to the registry.
|
java.util.Set<ServiceQueryInfo<?>> |
getAllQueries()
Get all queries.
|
java.util.Set<IServiceIdentifier> |
getAllServices()
Get all services.
|
IService |
getLocalService(IServiceIdentifier serviceid)
Returns the service proxy of a local service identified by service ID.
|
java.util.concurrent.locks.ReadWriteLock |
getLock()
Returns the lock on the registry.
|
void |
removeExcludedComponent(IComponentIdentifier cid)
Remove an excluded component.
|
void |
removeQueries(IComponentIdentifier owner)
Remove all service queries of a specific component from the registry.
|
void |
removeQueriesOfPlatform(IComponentIdentifier platform)
Remove all service queries of a specific platform from the registry.
|
void |
removeQuery(ServiceQuery<?> query)
Remove a service query from the registry.
|
void |
removeService(IServiceIdentifier service)
Remove a service from the registry.
|
void |
removeServices(IComponentIdentifier platform)
Remove services of a platform from the registry.
|
IServiceIdentifier |
searchService(ServiceQuery<?> query)
Search for a service.
|
java.util.Set<IServiceIdentifier> |
searchServices(ServiceQuery<?> query)
Search for services.
|
void |
updateService(IServiceIdentifier service)
Updates a service if the service meta-information
has changes.
|
IServiceIdentifier searchService(ServiceQuery<?> query)
java.util.Set<IServiceIdentifier> searchServices(ServiceQuery<?> query)
void addService(IServiceIdentifier service)
service
- The service.void addLocalService(IService service)
service
- The local service.void updateService(IServiceIdentifier service)
service
- The service.void removeService(IServiceIdentifier service)
service
- The service.void removeServices(IComponentIdentifier platform)
platform
- The platform, null for everything.<T> ISubscriptionIntermediateFuture<T> addQuery(ServiceQuery<T> query)
query
- ServiceQuery.void removeQuery(ServiceQuery<?> query)
query
- ServiceQuery.void removeQueries(IComponentIdentifier owner)
owner
- The query owner.void removeQueriesOfPlatform(IComponentIdentifier platform)
platform
- The platform from which the query owner comes.void addExcludedComponent(IComponentIdentifier cid)
The
- component identifier.void removeExcludedComponent(IComponentIdentifier cid)
The
- component identifier.IService getLocalService(IServiceIdentifier serviceid)
serviceid
- The service ID.java.util.Set<IServiceIdentifier> getAllServices()
java.util.Set<ServiceQueryInfo<?>> getAllQueries()
java.util.concurrent.locks.ReadWriteLock getLock()