|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TReaderClient
A high-level interface to T-Reader services.
T-Reader services give read-only access to given data sources under a tree-based data model.
Clients may target T-Reader services at known endpoints (direct mode ). Alternative, they may discover T-Reader services bound to given sources ( discovery mode).
In discovery mode, clients attempt to interact with discovered services, until they succeed with one. They then cache the the endpoint of this service and use it first for subsequent interactions.
TBinderClient| Method Summary | |
|---|---|
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> |
get()
Returns all the Trees in the bound source. |
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> |
get(org.gcube.data.trees.patterns.Pattern pattern)
Returns all the Trees in the bound source which match a given Pattern. |
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> |
get(org.gcube.data.streams.Stream<String> identifiers)
Returns Trees in the bound source with given identifiers. |
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> |
get(org.gcube.data.streams.Stream<String> identifiers,
org.gcube.data.trees.patterns.Pattern pattern)
Returns Trees in the bound source from their identifiers, after pruning them with a Pattern. |
org.gcube.data.trees.data.Tree |
get(String id)
Returns a Tree in the bound source with a given identifier. |
org.gcube.data.trees.data.Tree |
get(String id,
org.gcube.data.trees.patterns.Pattern pattern)
Returns a Tree in the bound source with a given identifier, after pruning it with a Pattern. |
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> |
get(URI loc)
Returns Trees in the bound source with given identifiers. |
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> |
get(URI loc,
org.gcube.data.trees.patterns.Pattern pattern)
Returns Trees in the bound source from their identifiers, after pruning them with a Pattern. |
Element |
getAsElement(String id)
Returns a Tree in the bound source with a given identifier. |
Element |
getAsElement(String id,
org.gcube.data.trees.patterns.Pattern pattern)
Returns a Tree in the bound source with a given identifier, after pruning it with a Pattern. |
org.gcube.data.trees.data.Node |
getNode(String... path)
Returns a Node in the bound source from its path in a tree, i.e. |
Element |
getNodeAsElement(String... ids)
Returns a Node in the bound source from its path in a tree, Returns a Node from its in a tree,
i.e. |
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Node> |
getNodes(org.gcube.data.streams.Stream<org.gcube.data.tm.stubs.Path> paths)
Returns Nodes from their paths in a tree, i.e. |
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Node> |
getNodes(URI paths)
Returns Nodes from their paths in a tree, i.e. |
| Method Detail |
|---|
org.gcube.data.trees.data.Tree get(String id)
throws org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
UnsupportedRequestException,
UnknownTreeException,
Exception
Tree in the bound source with a given identifier.
id - the tree identifier
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnsupportedOperationException - if the bound source does not support the operation
UnsupportedRequestException - if the bound source does not support this particular request
UnknownTreeException - if the identifier does not identify a tree in the bound source
Exception - if the operation fails for an unexpected error
org.gcube.data.trees.data.Tree get(String id,
org.gcube.data.trees.patterns.Pattern pattern)
throws org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
UnsupportedRequestException,
UnknownTreeException,
Exception
Tree in the bound source with a given identifier, after pruning it with a Pattern.
id - the tree identifierpattern - the pattern
Element representation of the tree
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnsupportedOperationException - if the bound source does not support the operation
UnsupportedRequestException - if the bound source does not support this particular request
UnknownTreeException - if the identifier does not identify a tree in the bound source
Exception - if the operation fails for an unexpected error
Element getAsElement(String id)
throws org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
UnsupportedRequestException,
UnknownTreeException,
Exception
Tree in the bound source with a given identifier.
id - the tree identifier
Element representation of the tree
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnknownTreeException - if the identifier does not identify a tree in the bound source
UnsupportedOperationException - if the bound source does not support the operation
UnsupportedRequestException - if the bound source does not support this particular request
Exception - if the operation fails for an unexpected error
Element getAsElement(String id,
org.gcube.data.trees.patterns.Pattern pattern)
throws org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
UnsupportedRequestException,
UnknownTreeException,
Exception
Tree in the bound source with a given identifier, after pruning it with a Pattern.
id - the tree identifierpattern - the pattern
Element representation of the tree
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnsupportedOperationException - if the bound source does not support the operation
UnsupportedRequestException - if the bound source does not support this particular request
UnknownTreeException - if the identifier does not identify a tree in the bound source
Exception - if the operation fails for an unexpected error
org.gcube.data.trees.data.Node getNode(String... path)
throws IllegalArgumentException,
org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
UnsupportedRequestException,
UnknownPathException,
Exception
Node in the bound source from its path in a tree, i.e. the list of of one or more identifiers
of the nodes that connect it to the root of the tree.
path - the node identifiers
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnsupportedOperationException - if the bound source does not support the operation
UnsupportedRequestException - if the bound source does not support this particular request
UnknownPathException - if the identifiers do not identify a node in the bound source
Exception - if the operation fails for an unexpected error
IllegalArgumentException
Element getNodeAsElement(String... ids)
throws org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
UnsupportedRequestException,
UnknownPathException,
Exception
Node in the bound source from its path in a tree, Returns a Node from its in a tree,
i.e. the list of identifiers of the nodes that connect it to the root of the tree.
ids - the node identifiers.
Element representation of the node
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnsupportedOperationException - if the bound source does not support the operation
UnsupportedRequestException - if the bound source does not support this particular request
UnknownPathException - if the identifiers do not identify a node in the bound source
Exception - if the operation fails for an unexpected error
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> get(URI loc,
org.gcube.data.trees.patterns.Pattern pattern)
throws org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
UnsupportedRequestException,
Exception
Trees in the bound source from their identifiers, after pruning them with a Pattern.
loc - a locator to a Resultset of tree identifierspattern - the pattern
Stream of resolved Trees
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnsupportedOperationException - if the bound source does not support the operation
UnsupportedRequestException - if the bound source does not support this particular request
Exception - if the operation fails for an unexpected error
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> get(org.gcube.data.streams.Stream<String> identifiers,
org.gcube.data.trees.patterns.Pattern pattern)
throws org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
UnsupportedRequestException,
Exception
Trees in the bound source from their identifiers, after pruning them with a Pattern.
identifiers - a Stream of tree identifierspattern - the pattern
Stream of resolved Trees
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnsupportedOperationException - if the bound source does not support the operation
UnsupportedRequestException - if the bound source does not support this particular request
Exception - if the operation fails for an unexpected error
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> get(URI loc)
throws org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
UnsupportedRequestException,
Exception
Trees in the bound source with given identifiers.
loc - a locator to a Result Set with tree identifiers
Stream of resolved Trees
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnsupportedOperationException - if the bound source does not support the operation
UnsupportedRequestException - if the bound source does not support this particular request
Exception - if the operation fails for an unexpected error
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> get(org.gcube.data.streams.Stream<String> identifiers)
throws org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
UnsupportedRequestException,
Exception
Trees in the bound source with given identifiers.
identifiers - a Stream of tree identifiers
Stream of resolved Trees
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnsupportedOperationException - if the bound source does not support the operation
UnsupportedRequestException - if the bound source does not support this particular request
Exception - if the operation fails for an unexpected error
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> get(org.gcube.data.trees.patterns.Pattern pattern)
throws org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
UnsupportedRequestException,
Exception
Trees in the bound source which match a given Pattern.
pattern - the pattern
Stream of matching Trees
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnsupportedOperationException - if the bound source does not support the operation
UnsupportedRequestException - if the bound source does not support this particular request
Exception - if the operation fails for an unexpected error
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> get()
throws org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
UnsupportedRequestException,
Exception
Trees in the bound source.
Stream of matching Trees
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnsupportedOperationException - if the bound source does not support the operation
UnsupportedRequestException - if the bound source does not support this particular request
Exception - if the operation fails for an unexpected error
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Node> getNodes(URI paths)
throws org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
UnsupportedRequestException,
Exception
Nodes from their paths in a tree, i.e. lists of identifiers of the nodes that connect them to the
root of a tree.
paths - a locator to a ResultSet of paths.
Stream of Nodes
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnsupportedOperationException - if the bound source does not support the operation
UnsupportedRequestException - if the bound source does not support this particular request
Exception - if the operation fails for an unexpected error
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Node> getNodes(org.gcube.data.streams.Stream<org.gcube.data.tm.stubs.Path> paths)
throws org.gcube.common.clients.DiscoveryException,
UnsupportedOperationException,
UnsupportedRequestException,
Exception
Nodes from their paths in a tree, i.e. lists of identifiers of the nodes that connect them to the
root of a tree.
paths - a Stream of Paths
Stream of Nodes
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
UnsupportedOperationException - if the bound source does not support the operation
UnsupportedRequestException - if the bound source does not support this particular request
Exception - if the operation fails for an unexpected error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||