public class MockInterfaceToNodeCache extends Object implements InterfaceToNodeCache
| Constructor and Description |
|---|
MockInterfaceToNodeCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Should only be used for testing.
|
void |
dataSourceSync() |
int |
getNodeId(String location,
InetAddress ipAddr) |
int |
removeNodeId(String location,
InetAddress ipAddr) |
int |
setNodeId(String location,
InetAddress ipAddr,
int nodeId) |
int |
size() |
public int setNodeId(String location, InetAddress ipAddr, int nodeId)
setNodeId in interface InterfaceToNodeCachepublic int removeNodeId(String location, InetAddress ipAddr)
removeNodeId in interface InterfaceToNodeCachepublic int getNodeId(String location, InetAddress ipAddr)
getNodeId in interface InterfaceToNodeCachepublic void dataSourceSync()
dataSourceSync in interface InterfaceToNodeCachepublic int size()
size in interface InterfaceToNodeCachepublic void clear()
InterfaceToNodeCacheclear in interface InterfaceToNodeCacheCopyright © 2017. All rights reserved.