public class RiakMessenger extends RiakConnector
ACTION_COUNT, ACTION_DELETE, ACTION_FETCH, ACTION_LIST, ACTION_STORE, hostname, isConnected, password, port, riakClient, uri, username
Constructor and Description |
---|
RiakMessenger(java.util.Map props) |
Modifier and Type | Method and Description |
---|---|
void |
download(XQueue xq)
It listens to an XQueue for incoming JMS messages and extracts the
bucket name and the key name from each message.
|
void |
fetch(XQueue xq)
It fetches content with the default key from the Riak service and
loads content into a message before sending it to the XQ.
|
java.lang.String |
getOperation() |
void |
store(XQueue xq)
It gets a JMS Message from the XQueue and stores its content into a
bucket with the given key.
|
close, delete, fetch, fetchBucket, getURI, isConnected, list, main, reconnect, store, store
public void fetch(XQueue xq) throws NonSQLException, javax.jms.JMSException
NonSQLException
javax.jms.JMSException
public void store(XQueue xq) throws TimeoutException, NonSQLException, javax.jms.JMSException
TimeoutException
NonSQLException
javax.jms.JMSException
public void download(XQueue xq) throws TimeoutException, NonSQLException, javax.jms.JMSException
TimeoutException
NonSQLException
javax.jms.JMSException
public java.lang.String getOperation()