Package org.opennms.netmgt.dao.api
Interface IpInterfaceDao
-
- All Superinterfaces:
LegacyOnmsDao<OnmsIpInterface,Integer>
,OnmsDao<OnmsIpInterface,Integer>
- All Known Implementing Classes:
IpInterfaceDaoHibernate
,MockIpInterfaceDao
,UnimplementedIpInterfaceDao
public interface IpInterfaceDao extends LegacyOnmsDao<OnmsIpInterface,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(String foreignSource, String foreignId, String ipAddress)
findByForeignKeyAndIpAddressList<OnmsIpInterface>
findByIpAddress(String ipAddress)
findByIpAddressList<OnmsIpInterface>
findByNodeId(Integer nodeId)
findByNodeIdOnmsIpInterface
findByNodeIdAndIpAddress(Integer nodeId, String ipAddress)
findByNodeIdAndIpAddressList<OnmsIpInterface>
findByServiceType(String svcName)
findByServiceTypeList<OnmsIpInterface>
findHierarchyByServiceType(String svcName)
findHierarchyByServiceTypeList<OnmsIpInterface>
findInterfacesWithMetadata(String context, String key, String value)
OnmsIpInterface
findPrimaryInterfaceByNodeId(Integer nodeId)
OnmsIpInterface
get(OnmsNode node, String ipAddress)
getMap<InetAddress,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, String ipAddress)
get
- Parameters:
node
- aOnmsNode
object.ipAddress
- aString
object.- Returns:
- a
OnmsIpInterface
object.
-
findByNodeIdAndIpAddress
OnmsIpInterface findByNodeIdAndIpAddress(Integer nodeId, String ipAddress)
findByNodeIdAndIpAddress
- Parameters:
nodeId
- aInteger
object.ipAddress
- aString
object.- Returns:
- a
OnmsIpInterface
object.
-
findByForeignKeyAndIpAddress
OnmsIpInterface findByForeignKeyAndIpAddress(String foreignSource, String foreignId, String ipAddress)
findByForeignKeyAndIpAddress
- Parameters:
foreignSource
- aString
object.foreignId
- aString
object.ipAddress
- aString
object.- Returns:
- a
OnmsIpInterface
object.
-
findByIpAddress
List<OnmsIpInterface> findByIpAddress(String ipAddress)
findByIpAddress
- Parameters:
ipAddress
- aString
object.- Returns:
- a
Collection
object.
-
findByNodeId
List<OnmsIpInterface> findByNodeId(Integer nodeId)
findByNodeId
- Parameters:
nodeId
- aInteger
object.- Returns:
- a
Collection
object.
-
findByServiceType
List<OnmsIpInterface> findByServiceType(String svcName)
findByServiceType
- Parameters:
svcName
- aString
object.- Returns:
- a
Collection
object.
-
findHierarchyByServiceType
List<OnmsIpInterface> findHierarchyByServiceType(String svcName)
findHierarchyByServiceType
- Parameters:
svcName
- aString
object.- Returns:
- a
Collection
object.
-
getInterfacesForNodes
Map<InetAddress,Integer> getInterfacesForNodes()
Returns a map of all IP to node ID mappings in the database.- Returns:
- a
Map
object.
-
findPrimaryInterfaceByNodeId
OnmsIpInterface findPrimaryInterfaceByNodeId(Integer nodeId)
-
findInterfacesWithMetadata
List<OnmsIpInterface> findInterfacesWithMetadata(String context, String key, String value)
-
-