voldemort.client
Class SystemStoreClient<K,V>

java.lang.Object
  extended by voldemort.client.SystemStoreClient<K,V>
Type Parameters:
K - Type of Key
V - Type of Value

public class SystemStoreClient<K,V>
extends java.lang.Object

A client interface for interacting with System stores (managed by the cluster). The naming convention is kept consistent with SocketStore (which is also a client interface).

Author:
csoman

Constructor Summary
SystemStoreClient(java.lang.String storeName, Store<K,V,java.lang.Object> systemStore)
          Constructor that creates a system store client which can be used to interact with the system stores managed by the cluster
 
Method Summary
 boolean deleteSysStore(K key)
           
 Versioned<V> getSysStore(K key)
           
 V getValueSysStore(K key)
           
 Version putSysStore(K key, V value)
           
 Version putSysStore(K key, Versioned<V> value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemStoreClient

public SystemStoreClient(java.lang.String storeName,
                         Store<K,V,java.lang.Object> systemStore)
Constructor that creates a system store client which can be used to interact with the system stores managed by the cluster

Parameters:
storeName - Name of the system store
systemStore - The socket store used to interact with the system stores on the individual server nodes
Method Detail

putSysStore

public Version putSysStore(K key,
                           V value)

putSysStore

public Version putSysStore(K key,
                           Versioned<V> value)

deleteSysStore

public boolean deleteSysStore(K key)

getSysStore

public Versioned<V> getSysStore(K key)

getValueSysStore

public V getValueSysStore(K key)


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu