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()
java.lang.Iterable<java.lang.Integer>
getNodeId(java.lang.String location, java.net.InetAddress ipAddr)
void
removeInterfacesForNode(int nodeId)
boolean
removeNodeId(java.lang.String location, java.net.InetAddress ipAddr, int nodeId)
boolean
setNodeId(java.lang.String location, java.net.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(java.lang.String location, java.net.InetAddress ipAddr, int nodeId)
-
removeNodeId
public boolean removeNodeId(java.lang.String location, java.net.InetAddress ipAddr, int nodeId)
-
getNodeId
public java.lang.Iterable<java.lang.Integer> getNodeId(java.lang.String location, java.net.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)
-
-