|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TBinderClient
High-level interface to T-Binder services.
T-Binder services host plugins that can bind given data sources to T-Reader and T-Writer services, i.e.
services that give access to the bound sources under a tree-based model.
T-Binder clients pass BindingParameters to target service plugins.
Clients may target T-Binder services at known endpoints (direct mode). Alternatively, they may discover T-Binder services that host given plugins (discovery mode). In discovery mode, clients attempt to interact with all the services until they succeed with one. They then cache the endpoint of this service and use it first for subsequent interactions.
TReaderClient,
TWriterClient| Method Summary | |
|---|---|
List<org.gcube.data.tm.stubs.SourceBinding> |
bind(BindingParameters parameters)
Binds one ore more data sources to T-Reader and/or T-Writer services. |
void |
bindAsync(BindingParameters parameters,
BinderConsumer consumer)
Binds asynchronously to T-Reader and/or T-Writer services. |
| Method Detail |
|---|
List<org.gcube.data.tm.stubs.SourceBinding> bind(BindingParameters parameters)
throws IllegalArgumentException,
org.apache.commons.discovery.DiscoveryException,
InvalidRequestException,
Exception
parameters - the binding parameters
IllegalArgumentException - if the parameters are null
org.apache.commons.discovery.DiscoveryException - if, in discovery mode, there is no service with the target plugin
InvalidRequestException - if the parameters are invalid for the service
Exception - if the operation fails for any other error
void bindAsync(BindingParameters parameters,
BinderConsumer consumer)
throws IllegalArgumentException,
org.apache.commons.discovery.DiscoveryException,
Exception
parameters - the binding parametersconsumer - a consumer for the asynchronous delivery of responses
IllegalArgumentException - if the parameters or the consumer are null
org.apache.commons.discovery.DiscoveryException - if, in discovery mode, there is no service with the target plugin
Exception - if the operation fails for any other error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||