public final class HashTableThriftHandler extends Object implements HashtableServer
| Modifier and Type | Field and Description |
|---|---|
static String |
RPC_MECHANISM |
| Constructor and Description |
|---|
HashTableThriftHandler(StorageSystem storagesystem,
String host,
Config configParams) |
public static String RPC_MECHANISM
public HashTableThriftHandler(StorageSystem storagesystem, String host, Config configParams)
public ResultObject updateNodeProperties(NodeData nodeData) throws RemoteException
updateNodeProperties in interface HashtableServerRemoteExceptionpublic ResultObject getNodeProperties(NodeData nodeData) throws RemoteException
getNodeProperties in interface HashtableServerRemoteExceptionpublic Vector<ResultObject> updateNodePropertiesParallel(Vector<NodeData> vec) throws RemoteException
updateNodePropertiesParallel in interface HashtableServerRemoteExceptionpublic Vector<ResultObject> getObjectsProperties(Vector<NodeData> vec) throws RemoteException
getObjectsProperties in interface HashtableServerRemoteExceptionpublic Date ping() throws RemoteException
ping in interface HashtableServerRemoteExceptionpublic ResultObject put(String key, Object value) throws RemoteException
put in interface HashtableServerRemoteExceptionpublic ResultObject put(String key, Object value, int callingServerId) throws RemoteException
put in interface HashtableServerRemoteExceptionpublic ResultObject get(String key, long storageSystemThreadId) throws RemoteException
get in interface HashtableServerRemoteExceptionpublic Vector<ResultObject> getObjects(Vector<String> keyList) throws RemoteException
getObjects in interface HashtableServerRemoteExceptionpublic Vector<ResultObject> putObjects(ConcurrentHashMap<String,Node> objList) throws RemoteException
putObjects in interface HashtableServerRemoteExceptionpublic ResultObject exec(NodeData nd) throws RemoteException
exec in interface HashtableServerRemoteExceptionpublic Vector<ResultObject> execBulk(Vector<NodeData> keyList) throws RemoteException
execBulk in interface HashtableServerRemoteExceptionpublic Vector<ResultObject> putObjects(ConcurrentHashMap<String,Node> objList, int callerServerId) throws RemoteException
putObjects in interface HashtableServerRemoteExceptionpublic boolean contains(String key) throws RemoteException
contains in interface HashtableServerRemoteExceptionpublic Vector<Node> getAllNodes() throws RemoteException
getAllNodes in interface HashtableServerRemoteExceptionpublic Vector<String> getAllKeys() throws RemoteException
getAllKeys in interface HashtableServerRemoteExceptionpublic String getStats() throws RemoteException
getStats in interface HashtableServerRemoteExceptionpublic void clearStatContainers()
throws RemoteException
clearStatContainers in interface HashtableServerRemoteExceptionpublic Node getNodeFromTable(String nodeId) throws RemoteException
getNodeFromTable in interface HashtableServerRemoteExceptionpublic void loadNodes(Vector<Node> nodes) throws RemoteException
loadNodes in interface HashtableServerRemoteExceptionpublic int getServerId()
throws RemoteException
getServerId in interface HashtableServerRemoteExceptionpublic int getNumServers()
throws RemoteException
getNumServers in interface HashtableServerRemoteExceptionpublic void setNumServers(int n)
throws RemoteException
setNumServers in interface HashtableServerRemoteExceptionpublic ResultObject relocate(int nodeId, String serverName) throws RemoteException
relocate in interface HashtableServerRemoteExceptionpublic void locationChange(int nodeId,
String serverName)
throws RemoteException
locationChange in interface HashtableServerRemoteExceptionpublic ResultObject lock(int nodeId) throws RemoteException
lock in interface HashtableServerRemoteExceptionpublic void removeLocationTableEntry(String key) throws RemoteException
removeLocationTableEntry in interface HashtableServerRemoteExceptionpublic ClusterMeasures getClusterMeasures() throws RemoteException
getClusterMeasures in interface HashtableServerRemoteExceptionpublic void cacheInvalidate(String nodeID) throws RemoteException
cacheInvalidate in interface HashtableServerRemoteExceptionpublic Node getNodeForCaching(String nodeID, int cachingSite) throws RemoteException
getNodeForCaching in interface HashtableServerRemoteExceptionpublic ResultObject cachePut(String nodeID, Node node, int masterCopySite, long storageSystemThreadId) throws RemoteException
cachePut in interface HashtableServerRemoteExceptionpublic Vector<ResultObject> cachePut(Map<Integer,Vector<Node>> nodes, long storageSystemThreadId) throws RemoteException
cachePut in interface HashtableServerRemoteExceptionpublic Vector<ResultObject> getLocalNodes(Vector<String> nodeIds, long storageSystemThreadId) throws RemoteException
getLocalNodes in interface HashtableServerRemoteExceptionpublic Vector<Node> getNodesForCaching(Vector<String> nodeIds, int callingSite) throws RemoteException
getNodesForCaching in interface HashtableServerRemoteExceptionpublic void writeThroughToCache(String paramString, Object value) throws RemoteException
writeThroughToCache in interface HashtableServerRemoteExceptionpublic void writeThroughToCacheBulk(ConcurrentHashMap<String,Node> map) throws RemoteException
writeThroughToCacheBulk in interface HashtableServerRemoteExceptionpublic Node getNodeFromCacheTable(String nodeId) throws RemoteException
getNodeFromCacheTable in interface HashtableServerRemoteExceptionpublic Vector<Node> getCachedObjects(Vector<String> nodeIds) throws RemoteException
getCachedObjects in interface HashtableServerRemoteExceptionpublic void cacheEvictMasterNotify(String cachingServerId, Hashtable<String,Long> evictedNodes) throws RemoteException
cacheEvictMasterNotify in interface HashtableServerRemoteException