public class ClusterClientImpl extends Object implements StorePersistence
Constructor and Description |
---|
ClusterClientImpl(List<String> urls,
String store) |
ClusterClientImpl(List<String> urls,
String store,
Serializer serializer)
\
|
ClusterClientImpl(List<String> urls,
String store,
Serializer serializer,
ConcurrentMap<String,RemoteStore> remoteStores) |
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 ClusterClientImpl(List<String> urls, String store)
urls
- can inprocess+fullpath+mode or hostname:portstore
- public ClusterClientImpl(List<String> urls, String store, Serializer serializer)
urls
- urls can inprocess+fullpath+mode or hostname:portstore
- serializer
- public ClusterClientImpl(List<String> urls, String store, Serializer serializer, ConcurrentMap<String,RemoteStore> remoteStores)
public void put(voldemort.store.cachestore.Key key, voldemort.store.cachestore.Value value)
put
in interface StorePersistence
public 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
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.