Package jadex.platform.service.registry
Class RemoteRegistryAgent
- java.lang.Object
- 
- jadex.platform.service.registry.RemoteRegistryAgent
 
- 
- All Implemented Interfaces:
- IRemoteRegistryService
 
 public class RemoteRegistryAgent extends java.lang.Object implements IRemoteRegistryService Plain service access to a remote registry. See SuperpeerRegistryAgent for extended implementation supporting also persistent queries.
- 
- 
Field SummaryFields Modifier and Type Field Description protected IInternalAccessiaComponent access.protected IComponentIdentifierplatformidprotected ServiceRegistryserviceregistryThe local service registry.- 
Fields inherited from interface jadex.bridge.service.types.registry.IRemoteRegistryServiceREMOTE_REGISTRY_NAME
 
- 
 - 
Constructor SummaryConstructors Constructor Description RemoteRegistryAgent()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckSecurity(ServiceQuery<?> query)Check if a query is allowed by caller or set query to unrestricted search only.IFuture<IServiceIdentifier>searchService(ServiceQuery<?> query)Search remote registry for a single service.IFuture<java.util.Set<IServiceIdentifier>>searchServices(ServiceQuery<?> query)Search remote registry for services.IFuture<java.lang.Void>start()Service initialization.
 
- 
- 
- 
Field Detail- 
iaprotected IInternalAccess ia Component access.
 - 
serviceregistryprotected ServiceRegistry serviceregistry The local service registry.
 - 
platformidprotected IComponentIdentifier platformid 
 
- 
 - 
Method Detail- 
startpublic IFuture<java.lang.Void> start() Service initialization.- Returns:
- Null, when done.
 
 - 
searchServicepublic IFuture<IServiceIdentifier> searchService(ServiceQuery<?> query) Search remote registry for a single service.- Specified by:
- searchServicein interface- IRemoteRegistryService
- Parameters:
- query- The search query.
- Returns:
- The first matching service or null if not found.
 
 - 
searchServicespublic IFuture<java.util.Set<IServiceIdentifier>> searchServices(ServiceQuery<?> query) Search remote registry for services.- Specified by:
- searchServicesin interface- IRemoteRegistryService
- Parameters:
- query- The search query.
- Returns:
- The matching services or empty set if none are found.
 
 - 
checkSecurityprotected void checkSecurity(ServiceQuery<?> query) Check if a query is allowed by caller or set query to unrestricted search only.
 
- 
 
-