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 InterfaceToNodeCache
public int removeNodeId(String location, InetAddress ipAddr)
removeNodeId
in interface InterfaceToNodeCache
public int 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 © 2017. All rights reserved.