|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.data.tml.clients.WriterClient
public class WriterClient
A TWriterClient implementation.
| Constructor Summary | |
|---|---|
WriterClient(org.gcube.common.clients.Client<org.gcube.data.tm.stubs.TWriterPortType> client)
|
|
WriterClient(org.apache.axis.message.addressing.EndpointReferenceType endpoint)
Creates an instance to write through a service at a given endpoint. |
|
WriterClient(org.gcube.common.clients.gcore.StatefulQuery query)
Creates an instance for writing in a data source discovered with a given query. |
|
WriterClient(String sourceId)
Creates an instance for writing in a given data source. |
|
| Method Summary | |
|---|---|
org.gcube.data.trees.data.Tree |
add(Element doc)
Adds a Tree to the bound source. |
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> |
add(org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> trees)
Adds zero or more Trees to the bound source. |
org.gcube.data.trees.data.Tree |
add(org.gcube.data.trees.data.Tree doc)
Adds a Tree to the bound source. |
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> |
add(URI treeRs)
Adds zero or more Trees to the bound source. |
org.gcube.data.streams.Stream<org.gcube.data.tm.stubs.UpdateFailure> |
update(org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> deltas)
Updates zero or more Trees in the bound source. |
void |
update(org.gcube.data.trees.data.Tree doc)
Updates a tree in the bound source. |
org.gcube.data.streams.Stream<org.gcube.data.tm.stubs.UpdateFailure> |
update(URI locator)
Updates zero or more Trees in the bound source. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WriterClient(org.gcube.common.clients.Client<org.gcube.data.tm.stubs.TWriterPortType> client)
public WriterClient(org.gcube.common.clients.gcore.StatefulQuery query)
query - the query.public WriterClient(String sourceId)
sourceId - the source identifierpublic WriterClient(org.apache.axis.message.addressing.EndpointReferenceType endpoint)
endpoint - the service endpoint| Method Detail |
|---|
public org.gcube.data.trees.data.Tree add(org.gcube.data.trees.data.Tree doc)
throws org.gcube.common.clients.DiscoveryException,
InvalidTreeException,
Exception
TWriterClientTree to the bound source.
add in interface TWriterClientdoc - the tree
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
InvalidTreeException - if the tree cannot be added because it is invalid
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
public org.gcube.data.trees.data.Tree add(Element doc)
throws org.gcube.common.clients.DiscoveryException,
InvalidTreeException,
Exception
TWriterClientTree to the bound source.
add in interface TWriterClientdoc - the Element representation of the tree
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
InvalidTreeException - if the tree is invalid
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
public org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> add(org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> trees)
throws org.gcube.common.clients.DiscoveryException,
Exception
TWriterClientTrees to the bound source.
add in interface TWriterClienttrees - a Stream of Trees
Stream of added 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
public org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> add(URI treeRs)
throws org.gcube.common.clients.DiscoveryException,
Exception
TWriterClientTrees to the bound source.
add in interface TWriterClienttreeRs - a locator to a Result Set of Trees
Stream of added 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
public void update(org.gcube.data.trees.data.Tree doc)
throws Exception,
org.gcube.common.clients.DiscoveryException,
InvalidTreeException,
UnknownTreeException
TWriterClient
update in interface TWriterClientdoc - the delta tree that captures the update
org.gcube.common.clients.DiscoveryException - if, in discovery mode, there is no service for the bound source
InvalidTreeException - if the delta tree is invalid
UnsupportedOperationException - if the bound source does not support the operation
UnsupportedRequestException - if the bound source does not support this particular request
UnknownTreeException - if the tree is unknown in the bound source (cannot be identified from the delta
tree)
Exception - if the operation fails for an unexpected error
public org.gcube.data.streams.Stream<org.gcube.data.tm.stubs.UpdateFailure> update(org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> deltas)
throws Exception,
org.gcube.common.clients.DiscoveryException
TWriterClientTrees in the bound source.
update in interface TWriterClientdeltas - a Stream of Trees to add
Stream of UpdateFailures
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
public org.gcube.data.streams.Stream<org.gcube.data.tm.stubs.UpdateFailure> update(URI locator)
throws Exception,
org.gcube.common.clients.DiscoveryException
TWriterClientTrees in the bound source.
update in interface TWriterClientlocator - a locator to a Result Set of delta tree that capture the updates
Stream of UpdateFailures
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 | |||||||||