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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opennms.netmgt.dao.api.InterfaceToNodeCache
InterfaceToNodeCache.Entry
-
-
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()
Optional<InterfaceToNodeCache.Entry>
getFirst(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
getInstance, setInstance
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.dao.api.InterfaceToNodeCache
getFirstNodeId
-
-
-
-
Method Detail
-
setNodeId
public boolean setNodeId(String location, InetAddress ipAddr, int nodeId)
-
removeNodeId
public boolean removeNodeId(String location, InetAddress ipAddr, int nodeId)
-
getFirst
public Optional<InterfaceToNodeCache.Entry> getFirst(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)
-
-