Package org.opennms.netmgt.dao.api
Interface SnmpInterfaceDao
-
- All Superinterfaces:
LegacyOnmsDao<OnmsSnmpInterface,Integer>
,OnmsDao<OnmsSnmpInterface,Integer>
- All Known Implementing Classes:
MockSnmpInterfaceDao
,SnmpInterfaceDaoHibernate
public interface SnmpInterfaceDao extends LegacyOnmsDao<OnmsSnmpInterface,Integer>
SnmpInterfaceDao interface.
- Author:
- Ted Kazmark, David Hustace
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<OnmsSnmpInterface>
findAllHavingEgressFlows(Integer nodeId)
List<OnmsSnmpInterface>
findAllHavingFlows(Integer nodeId)
List<OnmsSnmpInterface>
findAllHavingIngressFlows(Integer nodeId)
OnmsSnmpInterface
findByForeignKeyAndIfIndex(String foreignSource, String foreignId, Integer ifIndex)
findByForeignKeyAndIfIndexList<OnmsSnmpInterface>
findByMacLinksOfNode(Integer nodeId)
List<OnmsSnmpInterface>
findByNodeId(Integer nodeId)
OnmsSnmpInterface
findByNodeIdAndDescription(Integer nodeId, String description)
OnmsSnmpInterface
findByNodeIdAndIfIndex(Integer nodeId, Integer ifIndex)
findByNodeIdAndIfIndexList<OnmsSnmpInterface>
findBySnpaAddressOfRelatedIsIsLink(int nodeId)
Returns all OnmsSnmpInterfaces that have a physAddr that matches an isisISAdjNeighSNPAAddress of an IsIsLink related to the given node.long
getNumInterfacesWithFlows()
Returns the number of interfaces that have been marked as having flows irrespective of the MAX_FLOW_AGE and INGRESS_AND_EGRESS_REQUIRED properties settings.void
markHavingEgressFlows(Integer nodeId, Collection<Integer> egressSnmpIfIndexes)
void
markHavingIngressFlows(Integer nodeId, Collection<Integer> ingressSnmpIfIndexes)
-
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
-
findByNodeIdAndIfIndex
OnmsSnmpInterface findByNodeIdAndIfIndex(Integer nodeId, Integer ifIndex)
findByNodeIdAndIfIndex
- Parameters:
nodeId
- aInteger
object.ifIndex
- aInteger
object.- Returns:
- a
OnmsSnmpInterface
object.
-
findByNodeId
List<OnmsSnmpInterface> findByNodeId(Integer nodeId)
-
findByMacLinksOfNode
List<OnmsSnmpInterface> findByMacLinksOfNode(Integer nodeId)
-
findBySnpaAddressOfRelatedIsIsLink
List<OnmsSnmpInterface> findBySnpaAddressOfRelatedIsIsLink(int nodeId)
Returns all OnmsSnmpInterfaces that have a physAddr that matches an isisISAdjNeighSNPAAddress of an IsIsLink related to the given node. Used to retrieve all OnmsSnmpInterfaces that need to be accessed when finding IsIs links of a node.
-
findByForeignKeyAndIfIndex
OnmsSnmpInterface findByForeignKeyAndIfIndex(String foreignSource, String foreignId, Integer ifIndex)
findByForeignKeyAndIfIndex
- Parameters:
foreignSource
- aString
object.foreignId
- aString
object.ifIndex
- aInteger
object.- Returns:
- a
OnmsSnmpInterface
object.
-
findByNodeIdAndDescription
OnmsSnmpInterface findByNodeIdAndDescription(Integer nodeId, String description)
-
markHavingIngressFlows
void markHavingIngressFlows(Integer nodeId, Collection<Integer> ingressSnmpIfIndexes)
-
markHavingEgressFlows
void markHavingEgressFlows(Integer nodeId, Collection<Integer> egressSnmpIfIndexes)
-
findAllHavingFlows
List<OnmsSnmpInterface> findAllHavingFlows(Integer nodeId)
-
findAllHavingIngressFlows
List<OnmsSnmpInterface> findAllHavingIngressFlows(Integer nodeId)
-
findAllHavingEgressFlows
List<OnmsSnmpInterface> findAllHavingEgressFlows(Integer nodeId)
-
getNumInterfacesWithFlows
long getNumInterfacesWithFlows()
Returns the number of interfaces that have been marked as having flows irrespective of the MAX_FLOW_AGE and INGRESS_AND_EGRESS_REQUIRED properties settings.
-
-