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 Summary
Fields Modifier and Type Field Description protected IInternalAccess
ia
Component access.protected IComponentIdentifier
platformid
protected ServiceRegistry
serviceregistry
The local service registry.-
Fields inherited from interface jadex.bridge.service.types.registry.IRemoteRegistryService
REMOTE_REGISTRY_NAME
-
-
Constructor Summary
Constructors Constructor Description RemoteRegistryAgent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkSecurity(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
-
ia
protected IInternalAccess ia
Component access.
-
serviceregistry
protected ServiceRegistry serviceregistry
The local service registry.
-
platformid
protected IComponentIdentifier platformid
-
-
Method Detail
-
start
public IFuture<java.lang.Void> start()
Service initialization.- Returns:
- Null, when done.
-
searchService
public IFuture<IServiceIdentifier> searchService(ServiceQuery<?> query)
Search remote registry for a single service.- Specified by:
searchService
in interfaceIRemoteRegistryService
- Parameters:
query
- The search query.- Returns:
- The first matching service or null if not found.
-
searchServices
public IFuture<java.util.Set<IServiceIdentifier>> searchServices(ServiceQuery<?> query)
Search remote registry for services.- Specified by:
searchServices
in interfaceIRemoteRegistryService
- Parameters:
query
- The search query.- Returns:
- The matching services or empty set if none are found.
-
checkSecurity
protected void checkSecurity(ServiceQuery<?> query)
Check if a query is allowed by caller or set query to unrestricted search only.
-
-