org.gcube.resources.discovery.client.api
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
 List<R> submit(Query query)
          Submits a Query for remote execution and returns a list of typed results.
 

Method Detail

submit

List<R> submit(Query query)
               throws DiscoveryException,
                      InvalidResultException
Submits a Query for remote execution and returns a list of typed results.

Parameters:
query - the query
Returns:
the results
Throws:
DiscoveryException - if the query cannot be submitted
InvalidResultException - if the results cannot be parsed. Implementations may adopt different degrees of tolerance to parsing errors before raising this exception.


Copyright © 2013. All Rights Reserved.