Package jadex.bridge.service.search
Interface IServiceRegistry
- 
- All Known Implementing Classes:
- ServiceRegistry
 
 public interface IServiceRegistryInterface for a service registry. todo: further cleanup the interface
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddExcludedComponent(IComponentIdentifier cid)Add an excluded component.voidaddLocalService(IService service)Add a local service to the registry.<T> ISubscriptionIntermediateFuture<T>addQuery(ServiceQuery<T> query)Add a service query to the registry.voidaddService(IServiceIdentifier service)Add a service to the registry.java.util.Set<ServiceQueryInfo<?>>getAllQueries()Get all queries.java.util.Set<IServiceIdentifier>getAllServices()Get all services.IServicegetLocalService(IServiceIdentifier serviceid)Returns the service proxy of a local service identified by service ID.java.util.concurrent.locks.ReadWriteLockgetLock()Returns the lock on the registry.voidremoveExcludedComponent(IComponentIdentifier cid)Remove an excluded component.voidremoveQueries(IComponentIdentifier owner)Remove all service queries of a specific component from the registry.voidremoveQueriesOfPlatform(IComponentIdentifier platform)Remove all service queries of a specific platform from the registry.voidremoveQuery(ServiceQuery<?> query)Remove a service query from the registry.voidremoveService(IServiceIdentifier service)Remove a service from the registry.voidremoveServices(IComponentIdentifier platform)Remove services of a platform from the registry.IServiceIdentifiersearchService(ServiceQuery<?> query)Search for a service.java.util.Set<IServiceIdentifier>searchServices(ServiceQuery<?> query)Search for services.voidupdateService(IServiceIdentifier service)Updates a service if the service meta-information has changes.
 
- 
- 
- 
Method Detail- 
searchServiceIServiceIdentifier searchService(ServiceQuery<?> query) Search for a service.
 - 
searchServicesjava.util.Set<IServiceIdentifier> searchServices(ServiceQuery<?> query) Search for services.
 - 
addServicevoid addService(IServiceIdentifier service) Add a service to the registry.- Parameters:
- service- The service.
 
 - 
addLocalServicevoid addLocalService(IService service) Add a local service to the registry.- Parameters:
- service- The local service.
 
 - 
updateServicevoid updateService(IServiceIdentifier service) Updates a service if the service meta-information has changes.- Parameters:
- service- The service.
 
 - 
removeServicevoid removeService(IServiceIdentifier service) Remove a service from the registry.- Parameters:
- service- The service.
 
 - 
removeServicesvoid removeServices(IComponentIdentifier platform) Remove services of a platform from the registry.- Parameters:
- platform- The platform, null for everything.
 
 - 
addQuery<T> ISubscriptionIntermediateFuture<T> addQuery(ServiceQuery<T> query) Add a service query to the registry.- Parameters:
- query- ServiceQuery.
 
 - 
removeQueryvoid removeQuery(ServiceQuery<?> query) Remove a service query from the registry.- Parameters:
- query- ServiceQuery.
 
 - 
removeQueriesvoid removeQueries(IComponentIdentifier owner) Remove all service queries of a specific component from the registry.- Parameters:
- owner- The query owner.
 
 - 
removeQueriesOfPlatformvoid removeQueriesOfPlatform(IComponentIdentifier platform) Remove all service queries of a specific platform from the registry.- Parameters:
- platform- The platform from which the query owner comes.
 
 - 
addExcludedComponentvoid addExcludedComponent(IComponentIdentifier cid) Add an excluded component.- Parameters:
- The- component identifier.
 
 - 
removeExcludedComponentvoid removeExcludedComponent(IComponentIdentifier cid) Remove an excluded component.- Parameters:
- The- component identifier.
 
 - 
getLocalServiceIService getLocalService(IServiceIdentifier serviceid) Returns the service proxy of a local service identified by service ID.- Parameters:
- serviceid- The service ID.
- Returns:
- The service proxy.
 
 - 
getAllServicesjava.util.Set<IServiceIdentifier> getAllServices() Get all services.- Returns:
- All services (copy).
 
 - 
getAllQueriesjava.util.Set<ServiceQueryInfo<?>> getAllQueries() Get all queries.- Returns:
- All queries (copy).
 
 - 
getLockjava.util.concurrent.locks.ReadWriteLock getLock() Returns the lock on the registry. Care must be taken to perform proper unlocking to avoid permanently blocking the registry. Note that the lock is reentrant, so operations can be performed while the lock is held.- Returns:
- The registry lock.
 
 
- 
 
-