Interface DiscoveryClient<R>
-
- Type Parameters:
R- the type of query results
- All Known Implementing Classes:
DelegateClient
public interface DiscoveryClient<R>Local interface for resource discovery.Submits
Querys for remote execution and returns a list of typed results.- Author:
- Fabio Simeoni
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<R>submit(Query query)Submits aQueryfor remote execution and returns a list of typed results.
-
-
-
Method Detail
-
submit
List<R> submit(Query query) throws DiscoveryException, InvalidResultException
Submits aQueryfor remote execution and returns a list of typed results.- Parameters:
query- the query- Returns:
- the results
- Throws:
DiscoveryException- if the query cannot be submittedInvalidResultException- if the results cannot be parsed. Implementations may adopt different degrees of tolerance to parsing errors before raising this exception.
-
-