org.opennms.netmgt.dao
Interface IpInterfaceDao

All Superinterfaces:
OnmsDao<OnmsIpInterface,Integer>
All Known Implementing Classes:
IpInterfaceDaoHibernate

public interface IpInterfaceDao
extends OnmsDao<OnmsIpInterface,Integer>

IpInterfaceDao interface.

Author:
Ted Kazmark, David Hustace, Matt Brozowski

Method Summary
 OnmsIpInterface findByForeignKeyAndIpAddress(String foreignSource, String foreignId, String ipAddress)
          findByForeignKeyAndIpAddress
 List<OnmsIpInterface> findByIpAddress(String ipAddress)
          findByIpAddress
 OnmsIpInterface findByNodeIdAndIpAddress(Integer nodeId, String ipAddress)
          findByNodeIdAndIpAddress
 List<OnmsIpInterface> findByServiceType(String svcName)
          findByServiceType
 List<OnmsIpInterface> findHierarchyByServiceType(String svcName)
          findHierarchyByServiceType
 OnmsIpInterface findPrimaryInterfaceByNodeId(Integer nodeId)
           
 OnmsIpInterface get(OnmsNode node, String ipAddress)
          get
 Map<InetAddress,Integer> getInterfacesForNodes()
          Returns a map of all IP to node ID mappings in the database.
 
Methods inherited from interface org.opennms.netmgt.dao.OnmsDao
clear, countAll, countMatching, delete, findAll, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, update
 

Method Detail

get

OnmsIpInterface get(OnmsNode node,
                    String ipAddress)

get

Parameters:
node - a OnmsNode object.
ipAddress - a String object.
Returns:
a OnmsIpInterface object.

findByNodeIdAndIpAddress

OnmsIpInterface findByNodeIdAndIpAddress(Integer nodeId,
                                         String ipAddress)

findByNodeIdAndIpAddress

Parameters:
nodeId - a Integer object.
ipAddress - a String object.
Returns:
a OnmsIpInterface object.

findByForeignKeyAndIpAddress

OnmsIpInterface findByForeignKeyAndIpAddress(String foreignSource,
                                             String foreignId,
                                             String ipAddress)

findByForeignKeyAndIpAddress

Parameters:
foreignSource - a String object.
foreignId - a String object.
ipAddress - a String object.
Returns:
a OnmsIpInterface object.

findByIpAddress

List<OnmsIpInterface> findByIpAddress(String ipAddress)

findByIpAddress

Parameters:
ipAddress - a String object.
Returns:
a Collection object.

findByServiceType

List<OnmsIpInterface> findByServiceType(String svcName)

findByServiceType

Parameters:
svcName - a String object.
Returns:
a Collection object.

findHierarchyByServiceType

List<OnmsIpInterface> findHierarchyByServiceType(String svcName)

findHierarchyByServiceType

Parameters:
svcName - a String 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)


Copyright © 2011. All Rights Reserved.