org.opennms.netmgt.dao
Interface AtInterfaceDao

All Superinterfaces:
OnmsDao<OnmsAtInterface,Integer>
All Known Implementing Classes:
AtInterfaceDaoHibernate

public interface AtInterfaceDao
extends OnmsDao<OnmsAtInterface,Integer>


Method Summary
 void deactivateForNodeIdIfOlderThan(int nodeid, Timestamp scanTime)
           
 Collection<OnmsAtInterface> findByMacAddress(String macAddress)
           
 OnmsAtInterface findByNodeAndAddress(Integer nodeId, InetAddress ipAddress, String macAddress)
           
 OnmsAtInterface getAtInterfaceForAddress(Connection dbConn, InetAddress address)
          Get the OnmsAtInterface that goes with a given address and node.
 void markDeletedIfNodeDeleted()
           
 void saveAtInterface(Connection dbConn, OnmsAtInterface at)
           
 void setStatusForNode(Integer nodeid, Character action)
           
 void setStatusForNodeAndIfIndex(Integer nodeid, Integer ifIndex, Character action)
           
 void setStatusForNodeAndIp(Integer nodeid, String ipAddr, Character action)
           
 
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

markDeletedIfNodeDeleted

void markDeletedIfNodeDeleted()

deactivateForNodeIdIfOlderThan

void deactivateForNodeIdIfOlderThan(int nodeid,
                                    Timestamp scanTime)

findByMacAddress

Collection<OnmsAtInterface> findByMacAddress(String macAddress)

setStatusForNode

void setStatusForNode(Integer nodeid,
                      Character action)

setStatusForNodeAndIp

void setStatusForNodeAndIp(Integer nodeid,
                           String ipAddr,
                           Character action)

setStatusForNodeAndIfIndex

void setStatusForNodeAndIfIndex(Integer nodeid,
                                Integer ifIndex,
                                Character action)

saveAtInterface

void saveAtInterface(Connection dbConn,
                     OnmsAtInterface at)
                     throws SQLException
Throws:
SQLException

findByNodeAndAddress

OnmsAtInterface findByNodeAndAddress(Integer nodeId,
                                     InetAddress ipAddress,
                                     String macAddress)

getAtInterfaceForAddress

OnmsAtInterface getAtInterfaceForAddress(Connection dbConn,
                                         InetAddress address)
Get the OnmsAtInterface that goes with a given address and node. If it does not exist, but the IP interface does exist, then create it. If an equivalent IP interface does *not* exist, returns null.

Parameters:
dbConn - the database connection, if necessary
ipaddress - the IP address to look up
node - the LinkableNode associated with the interface (if known)
Returns:
an OnmsAtInterface
Throws:
SQLException


Copyright © 2011. All Rights Reserved.