Package | Description |
---|---|
com.basho.riak.client.http |
The legacy, low-level HTTP REST RiakClient and associated classes, consider using the high-level
IRiakClient |
com.basho.riak.client.http.plain |
A more OO wrapper to the legacy, low-level HTTP REST client map reduce key filters, consider using the high-level
IRiakClient |
com.basho.riak.client.http.response |
HTTP response handling/wrapping classes for the legacy HTTP REST client, consider using the high-level
IRiakClient |
com.basho.riak.client.http.util |
Supporting utility classes for the legacy HTTP REST client, consider using the high-level
IRiakClient |
Modifier and Type | Method and Description |
---|---|
HttpResponse |
RiakObject.delete() |
HttpResponse |
RiakObject.delete(RequestMeta meta) |
HttpResponse |
RiakClient.delete(String bucket,
String key) |
HttpResponse |
RiakClient.delete(String bucket,
String key,
RequestMeta meta) |
HttpResponse |
RiakClient.ping()
GET Riak's ping resource.
|
HttpResponse |
RiakClient.setBucketSchema(String bucket,
RiakBucketInfo bucketInfo) |
HttpResponse |
RiakClient.setBucketSchema(String bucket,
RiakBucketInfo bucketInfo,
RequestMeta meta) |
HttpResponse |
RiakClient.stats()
GET Riak's
/stats (status) resource. |
Modifier and Type | Class and Description |
---|---|
class |
RiakResponseException
A checked decorator for
RiakResponseRuntimeException |
Modifier and Type | Interface and Description |
---|---|
interface |
WithBodyResponse
A unified interface for responses that may return one, or more RiakObjects
|
Modifier and Type | Class and Description |
---|---|
class |
BucketResponse
Response from a GET request at a bucket's URL.
|
class |
DefaultHttpResponse
Simple implementation of HttpResponse interface.
|
class |
FetchResponse
Response from a HEAD or GET request for an object.
|
class |
HttpResponseDecorator
A default decorator implementation for HttpResponse
|
class |
IndexResponse
The response from an index query
|
class |
ListBucketsResponse |
class |
MapReduceResponse
Response from a map-reduce query (POST to /mapred).
|
class |
RiakResponseRuntimeException
Thrown when the Riak server returns a malformed response.
|
class |
StoreResponse
Response from a PUT request for an object.
|
class |
WalkResponse
Response from a GET request for an object with link walking.
|
Modifier and Type | Field and Description |
---|---|
protected HttpResponse |
HttpResponseDecorator.impl |
Constructor and Description |
---|
BucketResponse(HttpResponse r)
On a 2xx response, parses the JSON response into a
RiakBucketInfo |
FetchResponse(HttpResponse r) |
FetchResponse(HttpResponse r,
RiakClient riak)
On a 2xx response, parse the HTTP response from Riak into a
RiakObject . |
HttpResponseDecorator(HttpResponse r) |
IndexResponse(HttpResponse r) |
ListBucketsResponse(HttpResponse r)
Create a list buckets response that parses the resppns ebody json into a
set of buckets.
|
MapReduceResponse(HttpResponse r)
On a 2xx response, parses the response into a
JSONArray |
RiakResponseRuntimeException(HttpResponse response) |
RiakResponseRuntimeException(HttpResponse response,
String message) |
RiakResponseRuntimeException(HttpResponse response,
String message,
Throwable cause) |
RiakResponseRuntimeException(HttpResponse response,
Throwable cause) |
WalkResponse(HttpResponse r) |
WalkResponse(HttpResponse r,
RiakClient riak)
On a 2xx response, parses the HTTP body into a list of steps.
|
Modifier and Type | Method and Description |
---|---|
HttpResponse |
ClientHelper.delete(String bucket,
String key,
RequestMeta meta)
Same as
RiakClient , except only returning the HTTP response |
HttpResponse |
ClientHelper.fetch(String bucket,
String key,
RequestMeta meta) |
HttpResponse |
ClientHelper.fetch(String bucket,
String key,
RequestMeta meta,
boolean streamResponse)
Same as
RiakClient , except only returning the HTTP response and
allows the response to be streamed. |
HttpResponse |
ClientHelper.fetchIndex(String bucket,
String indexName,
int[] values)
Perform the fetch/query on an index
|
HttpResponse |
ClientHelper.fetchIndex(String bucket,
String indexName,
String[] values)
Perform the fetch/query on an index
|
HttpResponse |
ClientHelper.fetchMeta(String bucket,
String key,
RequestMeta meta)
Same as
RiakClient , except only returning the HTTP response |
HttpResponse |
ClientHelper.getBucketSchema(String bucket,
RequestMeta meta)
Same as
RiakClient.getBucketSchema(String, RequestMeta) , except
only returning the HTTP response. |
HttpResponse |
ClientHelper.listBucket(String bucket,
RequestMeta meta,
boolean streamResponse)
Same as
RiakClient , except only returning the HTTP response, and
if streamResponse==true, the response will be streamed back, so the user
is responsible for calling HttpResponseDecorator.close() |
HttpResponse |
ClientHelper.listBuckets()
List the buckets in Riak
|
HttpResponse |
ClientHelper.mapReduce(String job,
RequestMeta meta)
Same as
RiakClient , except only returning the HTTP response |
HttpResponse |
ClientHelper.ping()
Same as
RiakClient.ping() |
HttpResponse |
ClientHelper.setBucketSchema(String bucket,
org.json.JSONObject schema,
RequestMeta meta)
|
HttpResponse |
ClientHelper.stats()
Same as
RiakClient.stats() |
HttpResponse |
ClientHelper.store(RiakObject object,
RequestMeta meta)
Same as
RiakClient , except only returning the HTTP response |
HttpResponse |
ClientHelper.toss(RiakIORuntimeException e)
Hands exception
e to installed exception handler if there is
one or throw it. |
HttpResponse |
ClientHelper.toss(RiakResponseRuntimeException e) |
HttpResponse |
ClientHelper.walk(String bucket,
String key,
String walkSpec,
RequestMeta meta)
Same as
RiakClient , except only returning the HTTP response |
Copyright © 2012. All Rights Reserved.