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, wait
getFirstNodeId
public boolean setNodeId(String location, InetAddress ipAddr, int nodeId)
setNodeId
in interface InterfaceToNodeCache
public boolean removeNodeId(String location, InetAddress ipAddr, int nodeId)
removeNodeId
in interface InterfaceToNodeCache
public Iterable<Integer> getNodeId(String location, InetAddress ipAddr)
getNodeId
in interface InterfaceToNodeCache
public void dataSourceSync()
dataSourceSync
in interface InterfaceToNodeCache
public int size()
size
in interface InterfaceToNodeCache
public void clear()
InterfaceToNodeCache
clear
in interface InterfaceToNodeCache
Copyright © 2018. All rights reserved.