Package org.opennms.netmgt.dao.api
Interface IpInterfaceDao
-
- All Superinterfaces:
LegacyOnmsDao<OnmsIpInterface,java.lang.Integer>
,OnmsDao<OnmsIpInterface,java.lang.Integer>
- All Known Implementing Classes:
IpInterfaceDaoHibernate
,MockIpInterfaceDao
,UnimplementedIpInterfaceDao
public interface IpInterfaceDao extends LegacyOnmsDao<OnmsIpInterface,java.lang.Integer>
IpInterfaceDao interface.
- Author:
- Ted Kazmark, David Hustace, Matt Brozowski
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OnmsIpInterface
findByForeignKeyAndIpAddress(java.lang.String foreignSource, java.lang.String foreignId, java.lang.String ipAddress)
findByForeignKeyAndIpAddressjava.util.List<OnmsIpInterface>
findByIpAddress(java.lang.String ipAddress)
findByIpAddressjava.util.List<OnmsIpInterface>
findByNodeId(java.lang.Integer nodeId)
findByNodeIdOnmsIpInterface
findByNodeIdAndIpAddress(java.lang.Integer nodeId, java.lang.String ipAddress)
findByNodeIdAndIpAddressjava.util.List<OnmsIpInterface>
findByServiceType(java.lang.String svcName)
findByServiceTypejava.util.List<OnmsIpInterface>
findHierarchyByServiceType(java.lang.String svcName)
findHierarchyByServiceTypejava.util.List<OnmsIpInterface>
findInterfacesWithMetadata(java.lang.String context, java.lang.String key, java.lang.String value)
OnmsIpInterface
findPrimaryInterfaceByNodeId(java.lang.Integer nodeId)
OnmsIpInterface
get(OnmsNode node, java.lang.String ipAddress)
getjava.util.Map<java.net.InetAddress,java.lang.Integer>
getInterfacesForNodes()
Returns a map of all IP to node ID mappings in the database.-
Methods inherited from interface org.opennms.netmgt.dao.api.LegacyOnmsDao
countMatching, findMatching
-
Methods inherited from interface org.opennms.netmgt.dao.api.OnmsDao
clear, countAll, countMatching, delete, delete, findAll, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, update
-
-
-
-
Method Detail
-
get
OnmsIpInterface get(OnmsNode node, java.lang.String ipAddress)
get
- Parameters:
node
- aOnmsNode
object.ipAddress
- aString
object.- Returns:
- a
OnmsIpInterface
object.
-
findByNodeIdAndIpAddress
OnmsIpInterface findByNodeIdAndIpAddress(java.lang.Integer nodeId, java.lang.String ipAddress)
findByNodeIdAndIpAddress
- Parameters:
nodeId
- aInteger
object.ipAddress
- aString
object.- Returns:
- a
OnmsIpInterface
object.
-
findByForeignKeyAndIpAddress
OnmsIpInterface findByForeignKeyAndIpAddress(java.lang.String foreignSource, java.lang.String foreignId, java.lang.String ipAddress)
findByForeignKeyAndIpAddress
- Parameters:
foreignSource
- aString
object.foreignId
- aString
object.ipAddress
- aString
object.- Returns:
- a
OnmsIpInterface
object.
-
findByIpAddress
java.util.List<OnmsIpInterface> findByIpAddress(java.lang.String ipAddress)
findByIpAddress
- Parameters:
ipAddress
- aString
object.- Returns:
- a
Collection
object.
-
findByNodeId
java.util.List<OnmsIpInterface> findByNodeId(java.lang.Integer nodeId)
findByNodeId
- Parameters:
nodeId
- aInteger
object.- Returns:
- a
Collection
object.
-
findByServiceType
java.util.List<OnmsIpInterface> findByServiceType(java.lang.String svcName)
findByServiceType
- Parameters:
svcName
- aString
object.- Returns:
- a
Collection
object.
-
findHierarchyByServiceType
java.util.List<OnmsIpInterface> findHierarchyByServiceType(java.lang.String svcName)
findHierarchyByServiceType
- Parameters:
svcName
- aString
object.- Returns:
- a
Collection
object.
-
getInterfacesForNodes
java.util.Map<java.net.InetAddress,java.lang.Integer> getInterfacesForNodes()
Returns a map of all IP to node ID mappings in the database.- Returns:
- a
Map
object.
-
findPrimaryInterfaceByNodeId
OnmsIpInterface findPrimaryInterfaceByNodeId(java.lang.Integer nodeId)
-
findInterfacesWithMetadata
java.util.List<OnmsIpInterface> findInterfacesWithMetadata(java.lang.String context, java.lang.String key, java.lang.String value)
-
-