|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.yahoo.ycsb.DataStore
com.yahoo.ycsb.memcached.Memcached
com.yahoo.ycsb.db.SpymemcachedClient
public class SpymemcachedClient
Field Summary | |
---|---|
static MemcachedClient |
client
|
static java.lang.String |
MEMBASE_PORT
|
static java.lang.String |
MEMBASE_PORT_DEFAULT
|
static java.lang.String |
SIMULATE_DELAY
|
static java.lang.String |
SIMULATE_DELAY_DEFAULT
|
static java.lang.String |
VERBOSE
|
static java.lang.String |
VERBOSE_DEFAULT
|
Constructor Summary | |
---|---|
SpymemcachedClient()
|
Method Summary | |
---|---|
int |
add(java.lang.String key,
java.lang.Object value)
Add a value in the database. |
int |
append(java.lang.String key,
long cas,
java.lang.Object value)
Append a value in the database. |
int |
cas(java.lang.String key,
long cas,
java.lang.Object value)
Does a Create and store operation. |
int |
decr(java.lang.String key,
java.lang.Object value)
Decrement a value in the database. |
int |
delete(java.lang.String key)
Delete a value from the database. |
int |
get(java.lang.String key,
java.lang.Object value)
Get a value from the database. |
long |
gets(java.lang.String key)
Get a CAS identifier for a value in the database |
int |
incr(java.lang.String key,
java.lang.Object value)
Increment a value in the database. |
void |
init()
Initialize any state for this DB. |
int |
prepend(java.lang.String key,
long cas,
java.lang.Object value)
Prepends a value to a specific keys current value |
int |
replace(java.lang.String key,
java.lang.Object value)
Replaces the current value of a key if the key already exists |
int |
set(java.lang.String key,
java.lang.Object value)
Set a record in the database. |
Methods inherited from class com.yahoo.ycsb.DataStore |
---|
cleanup, getProperties, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static MemcachedClient client
public static final java.lang.String VERBOSE
public static final java.lang.String VERBOSE_DEFAULT
public static final java.lang.String SIMULATE_DELAY
public static final java.lang.String SIMULATE_DELAY_DEFAULT
public static final java.lang.String MEMBASE_PORT
public static final java.lang.String MEMBASE_PORT_DEFAULT
Constructor Detail |
---|
public SpymemcachedClient()
Method Detail |
---|
public void init()
init
in class DataStore
public int add(java.lang.String key, java.lang.Object value)
Memcached
add
in class Memcached
key
- The key of the value to add.value
- An Object to use as the key's value
public int get(java.lang.String key, java.lang.Object value)
Memcached
get
in class Memcached
key
- The key of the value to get.value
- The Object that the key should contain
public int set(java.lang.String key, java.lang.Object value)
Memcached
set
in class Memcached
key
- The key of the value to insert.value
- An Object to use as the key's value
public int append(java.lang.String key, long cas, java.lang.Object value)
Memcached
append
in class Memcached
key
- The key of the value to be appended to.cas
- The cas value needed to do the appendvalue
- An Object to use as the key's value
public int cas(java.lang.String key, long cas, java.lang.Object value)
Memcached
cas
in class Memcached
key
- The key of the value to do the cas.cas
- The cas value needed to do the appendvalue
- An Object to use as the key's value
public int decr(java.lang.String key, java.lang.Object value)
Memcached
decr
in class Memcached
key
- The key of the value to be decremented.value
- An Object to use as the key's value
public int delete(java.lang.String key)
Memcached
delete
in class Memcached
key
- The key of the value to be deleted.
public int incr(java.lang.String key, java.lang.Object value)
Memcached
incr
in class Memcached
key
- The key of the value to be incremented.value
- An Object to use as the key's value
public long gets(java.lang.String key)
Memcached
gets
in class Memcached
key
- The key of the value to get a CAS identifier for
public int prepend(java.lang.String key, long cas, java.lang.Object value)
Memcached
prepend
in class Memcached
key
- The key of the value to prepend.value
- The Object to prepend to the current key
public int replace(java.lang.String key, java.lang.Object value)
Memcached
replace
in class Memcached
key
- The key of the value to replace.value
- The Object to replace the old value with
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |