public class MockInterfaceToNodeCache extends AbstractInterfaceToNodeCache
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) |
void |
removeInterfacesForNode(int nodeId) |
boolean |
removeNodeId(String location,
InetAddress ipAddr,
int nodeId) |
boolean |
setNodeId(String location,
InetAddress ipAddr,
int nodeId) |
int |
size() |
getFirstNodeId, getInstance, setInstance
public boolean setNodeId(String location, InetAddress ipAddr, int nodeId)
public boolean removeNodeId(String location, InetAddress ipAddr, int nodeId)
public Iterable<Integer> getNodeId(String location, InetAddress ipAddr)
public void dataSourceSync()
public int size()
public void clear()
InterfaceToNodeCache
public void removeInterfacesForNode(int nodeId)
Copyright © 2021. All rights reserved.