| org.cougaar.servicediscovery.service.RegistryQueryService
RegistryQueryService | public interface RegistryQueryService extends Service,YPServiceAdapter(Code) | | Service interface for querying the registry to find providers
that provide a particular service.
|
Method Summary | |
public void | findProviders(RegistryQuery query, Callback callback) Returns providers matching the attributes in the RegistryQuery
object. | public void | findProviders(Object lastYPContext, RegistryQuery query, CallbackWithContext callback) Returns providers matching the attributes in the RegistryQuery
object. | public void | findProviders(String agentName, RegistryQuery query, CallbackWithContext callback) Returns providers matching the attributes in the RegistryQuery
object. | public void | findServiceAndBinding(RegistryQuery query, Callback callback) Returns all services matching the attributes in the RegistryQuery object.
Uses default YPService search, i.e. | public void | findServiceAndBinding(Object lastYPContext, RegistryQuery query, CallbackWithContext callback) Returns all services matching the attributes in the RegistryQuery object.
Uses single step YPService search. | public void | findServiceAndBinding(String agentName, RegistryQuery query, CallbackWithContext callback) Returns all services matching the attributes in the RegistryQuery
object.
Uses single step YPService search. | public void | findServices(RegistryQuery query, Callback callback) Returns all services matching the attributes in the RegistryQuery object.
Uses default YPService search, i.e. | public void | findServices(Object lastYPContext, RegistryQuery query, CallbackWithContext callback) Returns all services matching the attributes in the RegistryQuery object.
Uses single step YPService search. | public void | findServices(String agentName, RegistryQuery query, CallbackWithContext callback) Returns all services matching the attributes in the RegistryQuery object.
Uses single step YPService search. |
findProviders | public void findProviders(RegistryQuery query, Callback callback)(Code) | | Returns providers matching the attributes in the RegistryQuery
object. Uses default YPService search, i.e. query progresses
up the structure of YP servers until either a match is found or
search has reached the topmost server.
Parameters: query - RegistryQuery containing the attributes to be matched. Parameters: callback - callback.invoke(Collection) of ProviderInfo objects.If no matches, returns empty list. |
findProviders | public void findProviders(Object lastYPContext, RegistryQuery query, CallbackWithContext callback)(Code) | | Returns providers matching the attributes in the RegistryQuery
object. Uses single step YPService search. Query is applied to the
YP server in the next YPContext. If lastYPContext argument is null,
search starts with the closest YPServer.
Parameters: lastYPContext - YP context where the previous search ended. Use null if starting search. Parameters: query - RegistryQuery containing the attributes to be matched. Parameters: callback - CallbackWithContext, callback.setNextContext(object) withyp server context, callback.invoke(Collection) of ProviderInfo objects. If no matches, returns empty list. |
findProviders | public void findProviders(String agentName, RegistryQuery query, CallbackWithContext callback)(Code) | | Returns providers matching the attributes in the RegistryQuery
object. Uses single step YPService search. Query is applied to the
YP server for the specified agent. Currently requires that agent
also be a YPServer. Bug in CommunityService
(http://bugs.cougaar.org/show_bug.cgi?id=3585) prevents a more general
implementation.
Parameters: agentName - Name of the agent whose YP server should be queried Parameters: query - RegistryQuery containing the attributes to be matched. Parameters: callback - CallbackWithContext, callback.setNextContext(object) withyp server context, callback.invoke(Collection) of ProviderInfo objects. If no matches, returns empty list. |
findServiceAndBinding | public void findServiceAndBinding(RegistryQuery query, Callback callback)(Code) | | Returns all services matching the attributes in the RegistryQuery object.
Uses default YPService search, i.e. query progresses
up the structure of YP servers until either a match is found or
search has reached the topmost server.
Parameters: query - RegistryQuery containing the attributes to be matched. Parameters: callback - callback.invoke(Collection) of lightweight ServiceInfo objects. If no matches, returns empty list. |
findServiceAndBinding | public void findServiceAndBinding(Object lastYPContext, RegistryQuery query, CallbackWithContext callback)(Code) | | Returns all services matching the attributes in the RegistryQuery object.
Uses single step YPService search. Query is applied to the
YP server in the next YPContext. If lastYPContext argument is null,
search starts with the closest YPServer.
Parameters: lastYPContext - YP context where the previous search ended. Use null if starting search. Parameters: query - RegistryQuery containing the attributes to be matched. Parameters: callback - CallbackWithContext, callback.setNextContext(object) withyp server context, callback.invoke(Collection) with lightweight ServiceInfo, objects. If no matches, returns empty list. |
findServiceAndBinding | public void findServiceAndBinding(String agentName, RegistryQuery query, CallbackWithContext callback)(Code) | | Returns all services matching the attributes in the RegistryQuery
object.
Uses single step YPService search. Query is applied to the
YP server for the specified agent. Currently requires that agent
also be a YPServer. Bug in CommunityService
(http://bugs.cougaar.org/show_bug.cgi?id=3585) prevents a more general
implementation.
Parameters: agentName - Name of the agent whose YP server should be queried Parameters: query - RegistryQuery containing the attributes to be matched. Parameters: callback - CallbackWithContext, callback.setNextContext(object) withyp server context, callback.invoke(Collection) with lightweight ServiceInfo, objects. If no matches, returns empty list. |
findServices | public void findServices(RegistryQuery query, Callback callback)(Code) | | Returns all services matching the attributes in the RegistryQuery object.
Uses default YPService search, i.e. query progresses
up the structure of YP servers until either a match is found or
search has reached the topmost server.
Parameters: query - RegistryQuery containing the attributes to be matched. Parameters: callback - callback.invoke(Collection) of ServiceInfo objects. Ifno matches, returns empty list. |
findServices | public void findServices(Object lastYPContext, RegistryQuery query, CallbackWithContext callback)(Code) | | Returns all services matching the attributes in the RegistryQuery object.
Uses single step YPService search. Query is applied to the
YP server in the next YPContext. If lastYPContext argument is null,
search starts with the closest YPServer.
Parameters: lastYPContext - YP context where the previous search ended. Use null if starting search. Parameters: query - RegistryQuery containing the attributes to be matched. Parameters: callback - CallbackWithContext, callback.setNextContext(object) withyp server context, callback.invoke(Collection) with ServiceInfo objects.If no matches, returns empty list. |
findServices | public void findServices(String agentName, RegistryQuery query, CallbackWithContext callback)(Code) | | Returns all services matching the attributes in the RegistryQuery object.
Uses single step YPService search. Query is applied to the
YP server for the specified agent. Currently requires that agent
also be a YPServer. Bug in CommunityService
(http://bugs.cougaar.org/show_bug.cgi?id=3585) prevents a more general
implementation.
Parameters: agentName - Name of the agent whose YP server should be queried Parameters: query - RegistryQuery containing the attributes to be matched. Parameters: callback - CallbackWithContext, callback.setNextContext(object) withyp server context, callback.invoke(Collection) with ServiceInfo objects.If no matches, returns empty list. |
|
|