public class AsciiOperationFactory extends BaseOperationFactory
| Constructor and Description |
|---|
AsciiOperationFactory() |
| Modifier and Type | Method and Description |
|---|---|
CASOperation |
cas(StoreType type,
java.lang.String key,
long casId,
int flags,
int exp,
byte[] data,
StoreOperation.Callback cb)
Create a CAS operation.
|
ConcatenationOperation |
cat(ConcatenationType catType,
long casId,
java.lang.String key,
byte[] data,
OperationCallback cb)
Get a concatenation operation.
|
protected java.util.Collection<? extends Operation> |
cloneGet(KeyedOperation op) |
DeleteOperation |
delete(java.lang.String key,
DeleteOperation.Callback cb)
Create a deletion operation.
|
DeleteOperation |
delete(java.lang.String key,
long cas,
DeleteOperation.Callback cb)
Create a deletion operation with CAS.
|
DeleteConfigOperation |
deleteConfig(ConfigurationType type,
OperationCallback cb)
Create a deletion operation for config.
|
FlushOperation |
flush(int delay,
OperationCallback cb)
Create a flush operation.
|
GetOperation |
get(java.util.Collection<java.lang.String> keys,
GetOperation.Callback cb)
Create a get operation.
|
GetOperation |
get(java.lang.String key,
GetOperation.Callback cb)
Create a get operation.
|
GetAndTouchOperation |
getAndTouch(java.util.Collection<java.lang.String> keys,
int expiration,
GetAndTouchOperation.Callback cb) |
GetAndTouchOperation |
getAndTouch(java.lang.String key,
int expiration,
GetAndTouchOperation.Callback cb)
Gets the value of a key and resets its timeout.
|
GetConfigOperation |
getConfig(ConfigurationType type,
GetConfigOperation.Callback cb)
Create a getConfig operation.
|
GetlOperation |
getl(java.lang.String key,
int exp,
GetlOperation.Callback cb)
Create a getl operation.
|
GetsOperation |
gets(java.lang.String key,
GetsOperation.Callback cb)
Create a gets operation.
|
StatsOperation |
keyStats(java.lang.String key,
StatsOperation.Callback cb)
Get a new KeyStatsOperation.
|
MutatorOperation |
mutate(Mutator m,
java.lang.String key,
long by,
long exp,
int def,
OperationCallback cb)
Create a mutator operation.
|
NoopOperation |
noop(OperationCallback cb)
Create a NOOP operation.
|
ObserveOperation |
observe(java.lang.String key,
long casId,
int index,
ObserveOperation.Callback cb)
Create an Observe operation.
|
Operation |
refreshCertificate(OperationCallback cb)
Refresh the TLS certificate
|
ReplicaGetOperation |
replicaGet(java.lang.String key,
int index,
ReplicaGetOperation.Callback callback)
Create a replica get operation.
|
ReplicaGetsOperation |
replicaGets(java.lang.String key,
int index,
ReplicaGetsOperation.Callback callback)
Create a replica gets operation.
|
SASLAuthOperation |
saslAuth(java.lang.String[] mech,
java.lang.String serverName,
java.util.Map<java.lang.String,?> props,
javax.security.auth.callback.CallbackHandler cbh,
OperationCallback cb)
Create a new sasl auth operation.
|
SASLMechsOperation |
saslMechs(OperationCallback cb)
Create a new SASL mechs operation.
|
SASLStepOperation |
saslStep(java.lang.String[] mech,
byte[] challenge,
java.lang.String serverName,
java.util.Map<java.lang.String,?> props,
javax.security.auth.callback.CallbackHandler cbh,
OperationCallback cb)
Create a new sasl step operation.
|
SetConfigOperation |
setConfig(ConfigurationType type,
int flags,
byte[] data,
OperationCallback cb)
Create a setConfig operation.
|
StatsOperation |
stats(java.lang.String arg,
StatsOperation.Callback cb)
Get a new StatsOperation.
|
StoreOperation |
store(StoreType storeType,
java.lang.String key,
int flags,
int exp,
byte[] data,
StoreOperation.Callback cb)
Create a store operation.
|
TapOperation |
tapAck(TapOpcode opcode,
int opaque,
OperationCallback cb)
Sends a tap ack message to the server.
|
TapOperation |
tapBackfill(java.lang.String id,
long date,
OperationCallback cb)
Creates a tap backfill stream.
|
TapOperation |
tapCustom(java.lang.String id,
RequestMessage message,
OperationCallback cb)
Creates a custom tap stream.
|
TapOperation |
tapDump(java.lang.String id,
OperationCallback cb)
Sends a tap dump message to the server.
|
TouchOperation |
touch(java.lang.String key,
int expiration,
OperationCallback cb)
Resets a keys expiration time.
|
UnlockOperation |
unlock(java.lang.String key,
long casId,
OperationCallback cb)
Create a Unlock operation.
|
VersionOperation |
version(OperationCallback cb)
Create a new version operation.
|
clonepublic DeleteOperation delete(java.lang.String key, DeleteOperation.Callback cb)
OperationFactorykey - the key to deletecb - the status callbackpublic DeleteOperation delete(java.lang.String key, long cas, DeleteOperation.Callback cb)
OperationFactorykey - the key to deletecas - the CAS value to pass alongcb - the status callbackpublic FlushOperation flush(int delay, OperationCallback cb)
OperationFactorydelay - delay until flush.cb - the status callbackpublic GetAndTouchOperation getAndTouch(java.lang.String key, int expiration, GetAndTouchOperation.Callback cb)
OperationFactorykey - the key to get a value for and reset its timeoutexpiration - the new expiration for the keycb - the callback that will contain the resultpublic GetAndTouchOperation getAndTouch(java.util.Collection<java.lang.String> keys, int expiration, GetAndTouchOperation.Callback cb)
public GetOperation get(java.lang.String key, GetOperation.Callback cb)
OperationFactorykey - the key to getcb - the callback that will contain the resultspublic GetOperation get(java.util.Collection<java.lang.String> keys, GetOperation.Callback cb)
OperationFactorykeys - the collection of keys to getcb - the callback that will contain the resultspublic GetlOperation getl(java.lang.String key, int exp, GetlOperation.Callback cb)
OperationFactorykey - the key to get and lockexp - the amount of time the lock should be valid for in seconds.cb - the callback that will contain the resultspublic ObserveOperation observe(java.lang.String key, long casId, int index, ObserveOperation.Callback cb)
OperationFactorykey - the key to observecasId - the value of CASindex - the VBucket index of keycb - the status callbackpublic UnlockOperation unlock(java.lang.String key, long casId, OperationCallback cb)
OperationFactorykey - the key to unlockcasId - the value of CAScb - the status callbackpublic GetsOperation gets(java.lang.String key, GetsOperation.Callback cb)
OperationFactorykey - the key to getcb - the callback that will contain the resultspublic StatsOperation keyStats(java.lang.String key, StatsOperation.Callback cb)
OperationFactorykey - the key to get stats forcb - the stats callbackpublic Operation refreshCertificate(OperationCallback cb)
OperationFactorycb - The status callbackpublic GetConfigOperation getConfig(ConfigurationType type, GetConfigOperation.Callback cb)
OperationFactorytype - the config type to getcb - the callback that will contain the resultspublic SetConfigOperation setConfig(ConfigurationType type, int flags, byte[] data, OperationCallback cb)
OperationFactorytype - the config type to setflags - the config flagsdata - the datacb - the status callbackpublic DeleteConfigOperation deleteConfig(ConfigurationType type, OperationCallback cb)
OperationFactorytype - the configuration type to deletecb - the status callbackpublic MutatorOperation mutate(Mutator m, java.lang.String key, long by, long exp, int def, OperationCallback cb)
OperationFactorym - the mutator typekey - the mutatee keyby - the amount to increment or decrementexp - the default valuedef - expiration in case we need to default (0 if no default)cb - the status callbackpublic StatsOperation stats(java.lang.String arg, StatsOperation.Callback cb)
OperationFactoryarg - the stat parameter (see protocol docs)cb - the stats callbackpublic StoreOperation store(StoreType storeType, java.lang.String key, int flags, int exp, byte[] data, StoreOperation.Callback cb)
OperationFactorystoreType - the type of store operationkey - the key to storeflags - the storage flagsexp - the expiration timedata - the datacb - the status callbackpublic TouchOperation touch(java.lang.String key, int expiration, OperationCallback cb)
OperationFactorykey - The key whose expiration time is to be reset.expiration - The new expiration time for the keycb - The status callbackpublic VersionOperation version(OperationCallback cb)
OperationFactorypublic NoopOperation noop(OperationCallback cb)
OperationFactorycb - the operation callbackpublic CASOperation cas(StoreType type, java.lang.String key, long casId, int flags, int exp, byte[] data, StoreOperation.Callback cb)
OperationFactorykey - the key to storecasId - the CAS identifier value (from a gets operation)flags - the storage flagsexp - the expiration timedata - the datacb - the status callbackpublic ConcatenationOperation cat(ConcatenationType catType, long casId, java.lang.String key, byte[] data, OperationCallback cb)
OperationFactorycatType - the type of concatenation to perform.casId - the CAS value for an atomic compare-and-catkey - the keydata - the data to storecb - a callback for reporting the statusprotected java.util.Collection<? extends Operation> cloneGet(KeyedOperation op)
cloneGet in class BaseOperationFactorypublic SASLMechsOperation saslMechs(OperationCallback cb)
OperationFactorypublic SASLStepOperation saslStep(java.lang.String[] mech, byte[] challenge, java.lang.String serverName, java.util.Map<java.lang.String,?> props, javax.security.auth.callback.CallbackHandler cbh, OperationCallback cb)
OperationFactorypublic SASLAuthOperation saslAuth(java.lang.String[] mech, java.lang.String serverName, java.util.Map<java.lang.String,?> props, javax.security.auth.callback.CallbackHandler cbh, OperationCallback cb)
OperationFactorypublic TapOperation tapBackfill(java.lang.String id, long date, OperationCallback cb)
OperationFactoryid - The name for the TAP connectiondate - The date to start backfill from.cb - The status callback.public TapOperation tapCustom(java.lang.String id, RequestMessage message, OperationCallback cb)
OperationFactoryid - The name for the TAP connectionmessage - The tap message to send.cb - The status callback.public TapOperation tapAck(TapOpcode opcode, int opaque, OperationCallback cb)
OperationFactoryopcode - the opcode sent to the client by the server.opaque - the opaque value sent to the client by the server.cb - the callback for the tap stream.public TapOperation tapDump(java.lang.String id, OperationCallback cb)
OperationFactoryid - the name for the TAP connectioncb - the callback for the tap stream.public ReplicaGetOperation replicaGet(java.lang.String key, int index, ReplicaGetOperation.Callback callback)
OperationFactorykey - the key to getcallback - the callback that will contain the resultspublic ReplicaGetsOperation replicaGets(java.lang.String key, int index, ReplicaGetsOperation.Callback callback)
OperationFactorykey - the key to getcallback - the callback that will contain the resultsCopyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.