|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.memcached.compat.SpyObject
net.spy.memcached.MemcachedClient
net.spy.memcached.MembaseClient
net.spy.memcached.CouchbaseClient
public class CouchbaseClient
| Field Summary | |
|---|---|
static String |
MODE_PREFIX
|
| Fields inherited from class net.spy.memcached.MembaseClient |
|---|
reconfiguring |
| Fields inherited from class net.spy.memcached.MemcachedClient |
|---|
authDescriptor, authMonitor, connFactory, mconn, operationTimeout, opFact, shuttingDown, tcService, transcoder |
| Fields inherited from interface net.spy.memcached.MemcachedClientIF |
|---|
MAX_KEY_LENGTH |
| Constructor Summary | |
|---|---|
CouchbaseClient(List<URI> baseList,
String bucketName,
String pwd)
|
|
CouchbaseClient(List<URI> baseList,
String bucketName,
String usr,
String pwd)
|
|
| Method Summary | |
|---|---|
void |
addOp(HttpOperation op)
Adds an operation to the queue where it waits to be sent to Couchbase. |
HttpFuture<View> |
asyncGetView(String designDocumentName,
String viewName)
Gets a view contained in a design document from the cluster. |
HttpFuture<List<View>> |
asyncGetViews(String designDocumentName)
Gets a future with a list of views for a given design document from the cluster. |
View |
getView(String designDocumentName,
String viewName)
Gets a view contained in a design document from the cluster. |
List<View> |
getViews(String designDocumentName)
Gets a list of views for a given design document from the cluster. |
ViewFuture |
query(View view,
Query query)
Queries a Couchbase view by calling its map function. |
HttpFuture<ViewResponseNoDocs> |
queryAndExcludeDocs(View view,
Query query)
Queries a Couchbase view by calling it's map function. |
HttpFuture<ViewResponseReduced> |
queryAndReduce(View view,
Query query)
Queries a Couchbase view by calling it's map function and then the views reduce function. |
void |
reconfigure(Bucket bucket)
This function is called when there is a topology change in the cluster. |
void |
shutdown()
Shuts down the client immediately. |
boolean |
shutdown(long duration,
TimeUnit units)
Shut down this client gracefully. |
| Methods inherited from class net.spy.memcached.MembaseClient |
|---|
asyncGetAndLock, asyncGetAndLock, getAndLock, getAndLock |
| Methods inherited from class net.spy.memcached.MemcachedClient |
|---|
add, add, addObserver, append, append, asyncCAS, asyncCAS, asyncCAS, asyncDecr, asyncGet, asyncGet, asyncGetAndTouch, asyncGetAndTouch, asyncGetBulk, asyncGetBulk, asyncGetBulk, asyncGetBulk, asyncGetBulk, asyncGets, asyncGets, asyncIncr, cas, cas, cas, connectionEstablished, connectionLost, decr, decr, decr, delete, delete, flush, flush, get, get, getAndTouch, getAndTouch, getAvailableServers, getBulk, getBulk, getBulk, getBulk, getNodeLocator, gets, gets, getStats, getStats, getTranscoder, getUnavailableServers, getVersions, incr, incr, incr, listSaslMechanisms, prepend, prepend, removeObserver, replace, replace, set, set, touch, touch, waitForQueues |
| Methods inherited from class net.spy.memcached.compat.SpyObject |
|---|
getLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.spy.memcached.MemcachedClientIF |
|---|
add, add, addObserver, append, append, asyncCAS, asyncCAS, asyncDecr, asyncGet, asyncGet, asyncGetAndTouch, asyncGetAndTouch, asyncGetBulk, asyncGetBulk, asyncGetBulk, asyncGetBulk, asyncGetBulk, asyncGets, asyncGets, asyncIncr, cas, cas, decr, decr, decr, delete, flush, flush, get, get, getAndTouch, getAndTouch, getAvailableServers, getBulk, getBulk, getBulk, getBulk, getNodeLocator, gets, gets, getStats, getStats, getTranscoder, getUnavailableServers, getVersions, incr, incr, incr, listSaslMechanisms, prepend, prepend, removeObserver, replace, replace, set, set, touch, touch, waitForQueues |
| Field Detail |
|---|
public static final String MODE_PREFIX
| Constructor Detail |
|---|
public CouchbaseClient(List<URI> baseList,
String bucketName,
String pwd)
throws IOException,
ConfigurationException
IOException
ConfigurationException
public CouchbaseClient(List<URI> baseList,
String bucketName,
String usr,
String pwd)
throws IOException,
ConfigurationException
IOException
ConfigurationException| Method Detail |
|---|
public HttpFuture<View> asyncGetView(String designDocumentName,
String viewName)
asyncGetView in interface CouchbaseClientIFdesignDocumentName - the name of the design document.viewName - the name of the view to get.
InterruptedException - if the operation is interrupted while in flight
ExecutionException - if an error occurs during executionpublic HttpFuture<List<View>> asyncGetViews(String designDocumentName)
asyncGetViews in interface CouchbaseClientIFdesignDocumentName - the name of the design document.
public View getView(String designDocumentName,
String viewName)
designDocumentName - the name of the design document.viewName - the name of the view to get.
public List<View> getViews(String designDocumentName)
designDocumentName - the name of the design document.
public ViewFuture query(View view,
Query query)
query in interface CouchbaseClientIFview - the view to run the query against.query - the type of query to run against the view.
public HttpFuture<ViewResponseNoDocs> queryAndExcludeDocs(View view,
Query query)
queryAndExcludeDocs in interface CouchbaseClientIFview - the view to run the query against.query - the type of query to run against the view.
public HttpFuture<ViewResponseReduced> queryAndReduce(View view,
Query query)
queryAndReduce in interface CouchbaseClientIFview - the view to run the query against.query - the type of query to run against the view.
public void addOp(HttpOperation op)
public void reconfigure(Bucket bucket)
reconfigure in interface Reconfigurablereconfigure in class MembaseClientbucket - updated vbucket configurationpublic void shutdown()
shutdown in interface MemcachedClientIFshutdown in class MemcachedClient
public boolean shutdown(long duration,
TimeUnit units)
shutdown in interface MemcachedClientIFshutdown in class MembaseClientduration - the amount of time time for shutdownunits - the TimeUnit for the timeout
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||