Package org.opennms.netmgt.dao.mock
Class MockInterfaceToNodeCache
- java.lang.Object
-
- org.opennms.netmgt.dao.api.AbstractInterfaceToNodeCache
-
- org.opennms.netmgt.dao.mock.MockInterfaceToNodeCache
-
- All Implemented Interfaces:
InterfaceToNodeCache
public class MockInterfaceToNodeCache extends AbstractInterfaceToNodeCache
-
-
Constructor Summary
Constructors Constructor Description MockInterfaceToNodeCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class org.opennms.netmgt.dao.api.AbstractInterfaceToNodeCache
getFirstNodeId, getInstance, setInstance
-
-
-
-
Method Detail
-
setNodeId
public boolean setNodeId(String location, InetAddress ipAddr, int nodeId)
-
removeNodeId
public boolean removeNodeId(String location, InetAddress ipAddr, int nodeId)
-
getNodeId
public Iterable<Integer> getNodeId(String location, InetAddress ipAddr)
-
dataSourceSync
public void dataSourceSync()
-
size
public int size()
-
clear
public void clear()
Description copied from interface:InterfaceToNodeCache
Should only be used for testing.
-
removeInterfacesForNode
public void removeInterfacesForNode(int nodeId)
-
-