Package org.opennms.netmgt.dao.api
Class AbstractInterfaceToNodeCache
- java.lang.Object
-
- org.opennms.netmgt.dao.api.AbstractInterfaceToNodeCache
-
- All Implemented Interfaces:
InterfaceToNodeCache
- Direct Known Subclasses:
InterfaceToNodeCacheDaoImpl
,MockInterfaceToNodeCache
public abstract class AbstractInterfaceToNodeCache extends Object implements InterfaceToNodeCache
This class represents a singular instance that is used to map trap IP addresses to known nodes.- Author:
- Johan Edstrom, Brian Weaver , Tarus Balog , OpenNMS
-
-
Constructor Summary
Constructors Constructor Description AbstractInterfaceToNodeCache()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Optional<Integer>
getFirstNodeId(String location, InetAddress ipAddr)
static InterfaceToNodeCache
getInstance()
Deprecated.Inject this value instead of using singleton access.static void
setInstance(InterfaceToNodeCache cache)
-
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
clear, dataSourceSync, getNodeId, removeInterfacesForNode, removeNodeId, setNodeId, size
-
-
-
-
Method Detail
-
setInstance
public static void setInstance(InterfaceToNodeCache cache)
-
getInstance
public static InterfaceToNodeCache getInstance()
Deprecated.Inject this value instead of using singleton access.
-
getFirstNodeId
public Optional<Integer> getFirstNodeId(String location, InetAddress ipAddr)
- Specified by:
getFirstNodeId
in interfaceInterfaceToNodeCache
-
-