@ExportPackage @PublicApi
Package com.yahoo.vespa.http.client
Programmatic API for feeding to Vespa clusters independently of the
cluster configuration.
Session
is the central interface which is used to interact with a cluster.
Use SessionFactory
to
instantiate a Session
.-
Interface Summary Interface Description FeedClient API for feeding document operations (add, removes or updates) to one or many Vespa clusters.FeedClient.ResultCallback This callback is executed when new results are arriving or an error occur.Session A Session is an entity used to feed operations (like documents, removes or updates) to one Vespa cluster or several clusters in parallel. -
Class Summary Class Description FeedClientFactory Factory for creating FeedClient.Result The result of a stream operation.Result.Detail Information in a Result for a single operation sent to a single endpoint.SessionFactory Factory for creatingSession
instances.SimpleLoggerResultCallback Simple implementation of the ResultCallback that logs to std err for every X documents: "Result received: 34 (1 failed so far, 2003 sent, success rate 1999.23 docs/sec)." On each failure it will print the Result object content.SyncFeedClient A utility wrapper of a FeedClient which feeds a list of documents and blocks until all responses are returned, before returning the results.SyncFeedClient.SyncOperation Holds the arguments to a single stream operationSyncFeedClient.SyncResult The result of a SyncFeedClient.stream call. -
Enum Summary Enum Description Result.ResultType -
Exception Summary Exception Description FeedConnectException An exception thrown when the client is unable to connect to a feed endpoint.FeedEndpointException An exception type for endpoint specific errors.FeedProtocolException An exception thrown when a feed endpoint returns an error during feeding.