| java.lang.Object | |
| ↳ | org.mule.modules.riak.RiakConnector |
Known Direct Subclasses
|
Known Indirect Subclasses
|
Riak Connector. Based on Basho's Java client.
{@sample.config INCLUDE_ERROR} {@sample.config INCLUDE_ERROR} {@sample.config INCLUDE_ERROR} {@sample.config INCLUDE_ERROR} {@sample.config INCLUDE_ERROR}| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | RIAK_FLOW_VAR_FETCHED_OBJECT | ||||||||||
| String | RIAK_FLOW_VAR_PREFIX | ||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| LOGGER | |||||||||||
| activeConfiguration | |||||||||||
| clusterTotalMaximumConnections | If a cluster client is used (ie. | ||||||||||
| httpClientConfiguration | The HTTP client configuration to use to connect to Riak. | ||||||||||
| httpClientConfigurations | The HTTP cluster client configurations to use to connect to Riak. | ||||||||||
| lazyLoadBucketProperties | Allows to defer fetching bucket properties from Riak until they are required by one of the Bucket methods that accesses them. | ||||||||||
| name | |||||||||||
| protobufClientConfiguration | The Protocol Buffer client configuration to use to connect to Riak. | ||||||||||
| protobufClientConfigurations | The Protocol Buffer cluster client configurations to use to connect to Riak. | ||||||||||
| retrier | A Retrier to use to perform actions. | ||||||||||
| retryCount | The number of retries to attempt if no retrier has been configured and the
DefaultRetrier is used. |
||||||||||
| riakClient | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Open the connection to Riak.
| |||||||||||
Create a new bucket using the provided name.
| |||||||||||
Delete the object at the specified key of the specified bucket.
| |||||||||||
Close the connection to Riak.
| |||||||||||
Fetches data from a Bucket and stores it in the current message payload.
| |||||||||||
Retrieve all the keys matching the bin index range or value.
| |||||||||||
Fetches a bucket by name.
| |||||||||||
Retrieve all the keys matching the integer index range or value.
| |||||||||||
Retrieve all the keys in the specified bucket.
| |||||||||||
Perform the Riak
/stats operation on the node(s) this client is connected to. | |||||||||||
Retrieve the bucket names.
| |||||||||||
Performs a map-reduce operation that uses a Bin index query as input.
| |||||||||||
Performs a map-reduce over a bucket.
| |||||||||||
Performs a map-reduce over a set of bucket/key/keydata inputs.
| |||||||||||
Performs a map-reduce operation that uses an Int index query as input.
| |||||||||||
Performs a map-reduce operation that uses a Riak Search query as input.
| |||||||||||
Stores the current message payload into a Bucket.
| |||||||||||
Update a bucket using the provided name.
| |||||||||||
Walks the provided links starting at the object defined by the specified key and bucket name.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.beans.factory.BeanNameAware
| |||||||||||
If a cluster client is used (ie. if multiple client configurations are provided), defines the total of maximum connections. By default, no limit is set.
The HTTP client configuration to use to connect to Riak.
The HTTP cluster client configurations to use to connect to Riak.
Allows to defer fetching bucket properties from Riak until they are required by one of the Bucket methods that accesses them.
The Protocol Buffer client configuration to use to connect to Riak.
The Protocol Buffer cluster client configurations to use to connect to Riak.
A Retrier to use to perform actions. If none is configured, the
DefaultRetrier will be used, configured for with retryCount retries.
The number of retries to attempt if no retrier has been configured and the
DefaultRetrier is used.
Open the connection to Riak.
| RiakException | if anything goes haywire when trying to reach Riak. |
|---|---|
| ConfigurationException | if the configuration is invalid. |
| UnsupportedEncodingException |
Create a new bucket using the provided name.
| bucketName | The name of the new bucket. |
|---|---|
| allowSiblings | Should the bucket have allow_mult set to true? |
| backend | Which backend this bucket uses. Not supported by the Protobuf API. |
| enableSearch | To enable or disable search and related commit hooks (support for both pre-1.0 and 1.0 search). Not supported by the Protobuf API. |
| lastWriteWins | Set this bucket last_write_wins. Not supported by the Protobuf API. |
| notFoundOK | Default notfound_ok value. Not supported by the Protobuf API. |
| nVal | The n_val for this bucket. |
| smallVClock | The small_vclock prune size. Not supported by the Protobuf API. |
| bigVClock | The big_vclock prune size. Not supported by the Protobuf API. |
| oldVClock | The old_vclock prune age. Not supported by the Protobuf API. |
| youngVClock | The young_vclock prune age. Not supported by the Protobuf API. |
| preCommitHooks | Erlang or JavaScript function names to be used as pre-commit hooks. Not supported by the Protobuf API. |
| postCommitHooks | Erlang function names to be used as post-commit hooks. Not supported by the Protobuf API. |
| chashKeyFunction | Erlang function names to be used as the chash_key_fun. Not supported by the Protobuf API. |
| linkWalkFunction | Erlang function names to be used as the link_walk_fun. Not supported by the Protobuf API. |
| quorumConfiguration | The specific quorum configuration to use for the operation. |
| RiakRetryFailedException | thrown if the operation can't succeed. |
|---|
Delete the object at the specified key of the specified bucket.
| bucketName | The name of the bucket to fetch from. |
|---|---|
| key | The key at which the data must be stored. |
| vClock | Vector clock to delete. Acceptable types are VClock,
byte[] or String. |
| fetchBeforeDelete | If you want to provide a vclock to delete, but don't have one, setting this true will have the operation first perform a fetch (using the supplied r/pr parameters). |
| quorumConfiguration | The specific quorum configuration to use for the operation. |
| muleEvent | The current MuleEvent. |
| RiakException | thrown if the operation can't succeed. |
|---|---|
| UnsupportedEncodingException | thrown if a vector clock String can't be
converted to byte[] using the MuleEvent's encoding.
|
Close the connection to Riak.
Fetches data from a Bucket and stores it in the current message payload.
| bucketName | The name of the bucket to fetch from. |
|---|---|
| key | The key at which the data must be stored. |
| ifModifiedVClock | Fetch only if the stored vector clock is different from the provided
vector clock. Acceptable types are VClock , byte[] or
String. |
| modifiedSince | Fetch only if the stored value has been modified after the provided date. |
| notFoundOK | If a notfound response counts towards satisfying the r value. |
| returnDeletedVClock | If an object has been deleted, return the tombstone vclock. |
| quorumConfiguration | The specific quorum configuration to use for the operation. |
| resolver | The ConflictResolver to use on any sibling results returned from the fetch (and store if returnBody is true). |
| muleEvent | The current MuleEvent. |
| RiakRetryFailedException | thrown if the operation can't succeed. |
|---|---|
| UnsupportedEncodingException | thrown if a vector clock String can't be
converted to byte[] using the MuleEvent's encoding.
|
Retrieve all the keys matching the bin index range or value.
| bucketName | The name of the bucket to fetch from. |
|---|---|
| indexName | The name of the index. |
| from | The start value of the index range. |
| to | The end value of the index range. |
| value | The fixed index value. |
| RiakException | thrown if the operation can't succeed. |
|---|
Fetches a bucket by name.
| bucketName | The name of the bucket. |
|---|
| RiakRetryFailedException | thrown if the operation can't succeed. |
|---|
Retrieve all the keys matching the integer index range or value.
| bucketName | The name of the bucket to fetch from. |
|---|---|
| indexName | The name of the index. |
| from | The start value of the index range. |
| to | The end value of the index range. |
| value | The fixed index value. |
| RiakException | thrown if the operation can't succeed. |
|---|
Retrieve all the keys in the specified bucket.
| bucketName | The name of the bucket to fetch from. |
|---|
| RiakException | thrown if the operation can't succeed. |
|---|
| ConfigurationException |
|---|
Perform the Riak /stats operation on the node(s) this client is connected to.
This is not supported by the Protobuf API.
| RiakException | If Riak does not respond or if the protobuf API is being used |
|---|
Retrieve the bucket names.
| RiakException | thrown if the fetch operation can't succeed. |
|---|
Performs a map-reduce operation that uses a Bin index query as input.
| bucketName | The name of the bucket to execute the map-reduce on. |
|---|---|
| indexName | The name of the index to query. |
| from | The start value of the index range. |
| to | The end value of the index range. |
| value | The fixed index value. |
| phases | A List of map-reduce phases defined with
MapReducePhaseConfiguration instances. |
| timeout | The maximum duration in milliseconds for the map-reduce operation. |
| RiakException | thrown if the operation can't succeed. |
|---|
Performs a map-reduce over a bucket.
| bucketName | The name of the bucket to execute the map-reduce on. |
|---|---|
| keyFilters | A List of KeyFilter to apply on the inputs of the map-reduce operation. |
| phases | A List of map-reduce phases defined with
MapReducePhaseConfiguration instances. |
| timeout | The maximum duration in milliseconds for the map-reduce operation. |
| RiakException | thrown if the operation can't succeed. |
|---|
Performs a map-reduce over a set of bucket/key/keydata inputs.
| inputs | A List of BucketKeyInputConfiguration used as input for the
map-reduce operation. |
|---|---|
| phases | A List of map-reduce phases defined with
MapReducePhaseConfiguration instances. |
| timeout | The maximum duration in milliseconds for the map-reduce operation. |
| RiakException | thrown if the operation can't succeed. |
|---|
Performs a map-reduce operation that uses an Int index query as input.
| bucketName | The name of the bucket to execute the map-reduce on. |
|---|---|
| indexName | The name of the index to query. |
| from | The start value of the index range. |
| to | The end value of the index range. |
| value | The fixed index value. |
| phases | A List of map-reduce phases defined with
MapReducePhaseConfiguration instances. |
| timeout | The maximum duration in milliseconds for the map-reduce operation. |
| RiakException | thrown if the operation can't succeed. |
|---|
Performs a map-reduce operation that uses a Riak Search query as input.
| bucketName | The name of the bucket to execute the map-reduce on. |
|---|---|
| query | The query to run to provide data to the map-reduce operation. |
| phases | A List of map-reduce phases defined with
MapReducePhaseConfiguration instances. |
| timeout | The maximum duration in milliseconds for the map-reduce operation. |
| RiakException | thrown if the operation can't succeed. |
|---|
| name |
|---|
| clusterTotalMaximumConnections |
|---|
| httpClientConfiguration |
|---|
| httpClientConfigurations |
|---|
| lazyLoadBucketProperties |
|---|
| protobufClientConfiguration |
|---|
| protobufClientConfigurations |
|---|
| retrier |
|---|
| retryCount |
|---|
Stores the current message payload into a Bucket.
| bucketName | The name of the bucket to store into. |
|---|---|
| key | The key at which the data must be stored, which is optional if the current message payload is a IRiakObject. |
| contentType | The content type of the data being stored. Defaults to the mime type of the current message payload. |
| ifNoneMatch | True if you want a conditional store, false otherwise, defaults to false. NOTE: This has different meanings depending on the underlying transport. |
| ifNotModified | True if you want a conditional store, false otherwise, defaults to false. NOTE: This has different meanings depending on the underlying transport. |
| returnBody | Should the store operation return a response body? |
| withoutFetch | Eliminates fetching the existing value before storing the current one. |
| notFoundOK | If notfound_ok counts towards r count (for the pre-store fetch). |
| returnDeletedVClock | If the object has just been deleted, there maybe a tombstone value vclock, set to true to have this returned in the pre-store fetch. |
| quorumConfiguration | The specific quorum configuration to use for the operation. |
| resolver | The ConflictResolver to use on any sibling results returned from the fetch (and store if returnBody is true). |
| mutation | If provided, the current message payload is disregard and the Mutation is applied to generate the data to store. |
| value | The current message payload to store, auto-transformed into bytes[]
if needed, or stored as-is if it's a IRiakObject. |
| muleEvent | The current MuleEvent. |
| RiakRetryFailedException | thrown if the operation can't succeed. |
|---|---|
| MuleException | thrown if the operation can't succeed. |
Update a bucket using the provided name.
| bucketName | The name of the new bucket. |
|---|---|
| allowSiblings | Should the bucket have allow_mult set to true? |
| backend | Which backend this bucket uses. Not supported by the Protobuf API. |
| enableSearch | To enable or disable search and related commit hooks (support for both pre-1.0 and 1.0 search). Not supported by the Protobuf API. |
| lastWriteWins | Set this bucket last_write_wins. Not supported by the Protobuf API. |
| notFoundOK | Default notfound_ok value. Not supported by the Protobuf API. |
| nVal | The n_val for this bucket. |
| smallVClock | The small_vclock prune size. Not supported by the Protobuf API. |
| bigVClock | The big_vclock prune size. Not supported by the Protobuf API. |
| oldVClock | The old_vclock prune age. Not supported by the Protobuf API. |
| youngVClock | The young_vclock prune age. Not supported by the Protobuf API. |
| preCommitHooks | Erlang or JavaScript function names to be used as pre-commit hooks. Not supported by the Protobuf API. |
| postCommitHooks | Erlang function names to be used as post-commit hooks. Not supported by the Protobuf API. |
| chashKeyFunction | Erlang function names to be used as the chash_key_fun. Not supported by the Protobuf API. |
| linkWalkFunction | Erlang function names to be used as the link_walk_fun. Not supported by the Protobuf API. |
| quorumConfiguration | The specific quorum configuration to use for the operation. |
| RiakRetryFailedException | thrown if the operation can't succeed. |
|---|
Walks the provided links starting at the object defined by the specified key and bucket name.
| bucketName | The name of the bucket to fetch from. |
|---|---|
| key | The key at which the data must be stored. |
| linkWalks | The links that must be walked. |
| RiakException | thrown if the operation can't succeed. |
|---|