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() |
Iterable<Integer> |
getNodeId(String location,
InetAddress ipAddr) |
boolean |
removeNodeId(String location,
InetAddress ipAddr,
int nodeId) |
boolean |
setNodeId(String location,
InetAddress ipAddr,
int nodeId) |
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFirstNodeIdpublic boolean setNodeId(String location, InetAddress ipAddr, int nodeId)
setNodeId in interface InterfaceToNodeCachepublic boolean removeNodeId(String location, InetAddress ipAddr, int nodeId)
removeNodeId in interface InterfaceToNodeCachepublic Iterable<Integer> 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 © 2020. All rights reserved.