public class LocalClusterClientImpl extends Object implements StorePersistence
Constructor and Description |
---|
LocalClusterClientImpl(RemoteStore store) |
LocalClusterClientImpl(RemoteStore store,
Serializer serializer) |
Modifier and Type | Method and Description |
---|---|
void |
backup(String path,
int rate) |
void |
close() |
voldemort.store.cachestore.Value |
get(voldemort.store.cachestore.Key key) |
Iterator |
getKeyIterator() |
void |
insert(voldemort.store.cachestore.Key key,
voldemort.store.cachestore.Value value) |
void |
pack(int rate) |
void |
put(voldemort.store.cachestore.Key key,
Object data) |
void |
put(voldemort.store.cachestore.Key key,
voldemort.store.cachestore.Value value) |
boolean |
remove(voldemort.store.cachestore.Key key) |
int |
size() |
public LocalClusterClientImpl(RemoteStore store)
public LocalClusterClientImpl(RemoteStore store, Serializer serializer)
public void put(voldemort.store.cachestore.Key key, voldemort.store.cachestore.Value value)
put
in interface StorePersistence
key
- value
- is RemoteValue
convert RemoteValue to CacheValuepublic void put(voldemort.store.cachestore.Key key, Object data)
put
in interface Persistence
public voldemort.store.cachestore.Value get(voldemort.store.cachestore.Key key)
get
in interface Persistence
get
in interface StorePersistence
key
- public void insert(voldemort.store.cachestore.Key key, voldemort.store.cachestore.Value value)
insert
in interface StorePersistence
public boolean remove(voldemort.store.cachestore.Key key)
remove
in interface Persistence
public void close()
close
in interface Persistence
public Iterator getKeyIterator()
getKeyIterator
in interface Persistence
public int size()
size
in interface Persistence
public void pack(int rate)
pack
in interface Persistence
public void backup(String path, int rate)
backup
in interface Persistence
Copyright © 2016. All rights reserved.