|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISClient
Defines the local interface to query an Information System in a gCube infrastructure.
Clients obtain the Queries supported by the underlying implementation from their standard interfaces.
These queries are scoped and may return results either by-value or by-reference.
| Nested Class Summary | |
|---|---|
static class |
ISClient.ISMalformedQueryException
Exception raised when the query expression is not well-formed with respect to the language supported by the underlying implementation of ISClient. |
static class |
ISClient.ISMalformedResultException
Exception raised when the results of a query cannot be parsed by the implementation underlying ISClient. |
static class |
ISClient.ISUnsupportedQueryException
Exception raised when the implementation ISClient does not support a given query. |
| Method Summary | ||
|---|---|---|
|
execute(ISQuery<RESULT> query,
GCUBEScope scope)
Evaluates a query in a given scope and returns its results a local list. |
|
|
executeByRef(ISQuery<RESULT> query,
GCUBEScope scope)
Evaluates a query in a given scope and returns the ISInputStream which contains its results. |
|
|
getQuery(Class<QUERY> type)
Returns a query from the interface or class which defines its type. |
|
GCUBEGenericQuery |
getQuery(String name)
Returns a GCUBEGenericQuery from its implementation-defined name. |
|
| Method Detail |
|---|
<RESULT> List<RESULT> execute(ISQuery<RESULT> query,
GCUBEScope scope)
throws ISClient.ISMalformedQueryException,
ISClient.ISUnsupportedQueryException,
ISException
RESULT - The type of the query results.query - the query.scope - the scope.
ISClient.ISMalformedQueryException - if the query is incorrectly formulated and cannot produce results.
ISException - if the evaluation could not be completed.
ISClient.ISUnsupportedQueryException
<RESULT> ISInputStream<RESULT> executeByRef(ISQuery<RESULT> query,
GCUBEScope scope)
throws ISClient.ISMalformedQueryException,
ISClient.ISUnsupportedQueryException,
ISException
ISInputStream which contains its results.
RESULT - The type of the query results.query - the query.scope - the scope.
ISClient.ISMalformedQueryException - if the query is incorrectly formulated and cannot produce results.
ISException - if the evaluation could not be completed.
ISClient.ISUnsupportedQueryException
<RESULT,QUERY extends ISQuery<RESULT>> QUERY getQuery(Class<QUERY> type)
throws ISClient.ISUnsupportedQueryException,
InstantiationException,
IllegalAccessException
RESULT - the type of the query results.QUERY - the type of the query which produces results of type RESULT.type - the query interface or class.
ISClient.ISUnsupportedQueryException
InstantiationException
IllegalAccessException
GCUBEGenericQuery getQuery(String name)
throws ISClient.ISUnsupportedQueryException
GCUBEGenericQuery from its implementation-defined name.
The method is intended as a means to lookup generic queries pre-defined by
implementations of this interface.
name - the query name
ISClient.ISUnsupportedQueryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||