Package org.opennms.netmgt.dao.mock
Class MockSnmpInterfaceDao
- java.lang.Object
-
- org.opennms.netmgt.dao.mock.AbstractMockDao<OnmsSnmpInterface,java.lang.Integer>
-
- org.opennms.netmgt.dao.mock.MockSnmpInterfaceDao
-
- All Implemented Interfaces:
LegacyOnmsDao<OnmsSnmpInterface,java.lang.Integer>
,OnmsDao<OnmsSnmpInterface,java.lang.Integer>
,SnmpInterfaceDao
,org.springframework.beans.factory.InitializingBean
public class MockSnmpInterfaceDao extends AbstractMockDao<OnmsSnmpInterface,java.lang.Integer> implements SnmpInterfaceDao
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.netmgt.dao.mock.AbstractMockDao
AbstractMockDao.NullEventForwarder
-
-
Constructor Summary
Constructors Constructor Description MockSnmpInterfaceDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<OnmsSnmpInterface>
findAllHavingEgressFlows(java.lang.Integer nodeId)
java.util.List<OnmsSnmpInterface>
findAllHavingFlows(java.lang.Integer nodeId)
java.util.List<OnmsSnmpInterface>
findAllHavingIngressFlows(java.lang.Integer nodeId)
OnmsSnmpInterface
findByForeignKeyAndIfIndex(java.lang.String foreignSource, java.lang.String foreignId, java.lang.Integer ifIndex)
findByForeignKeyAndIfIndexOnmsSnmpInterface
findByNodeIdAndDescription(java.lang.Integer nodeId, java.lang.String description)
OnmsSnmpInterface
findByNodeIdAndIfIndex(java.lang.Integer nodeId, java.lang.Integer ifIndex)
findByNodeIdAndIfIndexprotected void
generateId(OnmsSnmpInterface iface)
protected java.lang.Integer
getId(OnmsSnmpInterface iface)
void
markHavingEgressFlows(java.lang.Integer nodeId, java.util.Collection<java.lang.Integer> egressSnmpIfIndexes)
void
markHavingIngressFlows(java.lang.Integer nodeId, java.util.Collection<java.lang.Integer> ingressSnmpIfIndexes)
java.lang.Integer
save(OnmsSnmpInterface iface)
void
update(OnmsSnmpInterface iface)
-
Methods inherited from class org.opennms.netmgt.dao.mock.AbstractMockDao
afterPropertiesSet, clear, countAll, countMatching, countMatching, delete, delete, findAll, findMatching, findMatching, flush, get, getAlarmAssociationDao, getAlarmDao, getAssetRecordDao, getCategoryDao, getDistPollerDao, getEventDao, getIpInterfaceDao, getMonitoredServiceDao, getMonitoringLocationDao, getNodeDao, getServiceRegistry, getServiceTypeDao, getSnmpInterfaceDao, initialize, load, lock, saveOrUpdate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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, saveOrUpdate
-
-
-
-
Method Detail
-
save
public java.lang.Integer save(OnmsSnmpInterface iface)
- Specified by:
save
in interfaceOnmsDao<OnmsSnmpInterface,java.lang.Integer>
- Overrides:
save
in classAbstractMockDao<OnmsSnmpInterface,java.lang.Integer>
-
update
public void update(OnmsSnmpInterface iface)
- Specified by:
update
in interfaceOnmsDao<OnmsSnmpInterface,java.lang.Integer>
- Overrides:
update
in classAbstractMockDao<OnmsSnmpInterface,java.lang.Integer>
-
generateId
protected void generateId(OnmsSnmpInterface iface)
- Specified by:
generateId
in classAbstractMockDao<OnmsSnmpInterface,java.lang.Integer>
-
getId
protected java.lang.Integer getId(OnmsSnmpInterface iface)
- Specified by:
getId
in classAbstractMockDao<OnmsSnmpInterface,java.lang.Integer>
-
findByNodeIdAndIfIndex
public OnmsSnmpInterface findByNodeIdAndIfIndex(java.lang.Integer nodeId, java.lang.Integer ifIndex)
Description copied from interface:SnmpInterfaceDao
findByNodeIdAndIfIndex
- Specified by:
findByNodeIdAndIfIndex
in interfaceSnmpInterfaceDao
- Parameters:
nodeId
- aInteger
object.ifIndex
- aInteger
object.- Returns:
- a
OnmsSnmpInterface
object.
-
findByForeignKeyAndIfIndex
public OnmsSnmpInterface findByForeignKeyAndIfIndex(java.lang.String foreignSource, java.lang.String foreignId, java.lang.Integer ifIndex)
Description copied from interface:SnmpInterfaceDao
findByForeignKeyAndIfIndex
- Specified by:
findByForeignKeyAndIfIndex
in interfaceSnmpInterfaceDao
- Parameters:
foreignSource
- aString
object.foreignId
- aString
object.ifIndex
- aInteger
object.- Returns:
- a
OnmsSnmpInterface
object.
-
findByNodeIdAndDescription
public OnmsSnmpInterface findByNodeIdAndDescription(java.lang.Integer nodeId, java.lang.String description)
- Specified by:
findByNodeIdAndDescription
in interfaceSnmpInterfaceDao
-
markHavingIngressFlows
public void markHavingIngressFlows(java.lang.Integer nodeId, java.util.Collection<java.lang.Integer> ingressSnmpIfIndexes)
- Specified by:
markHavingIngressFlows
in interfaceSnmpInterfaceDao
-
markHavingEgressFlows
public void markHavingEgressFlows(java.lang.Integer nodeId, java.util.Collection<java.lang.Integer> egressSnmpIfIndexes)
- Specified by:
markHavingEgressFlows
in interfaceSnmpInterfaceDao
-
findAllHavingFlows
public java.util.List<OnmsSnmpInterface> findAllHavingFlows(java.lang.Integer nodeId)
- Specified by:
findAllHavingFlows
in interfaceSnmpInterfaceDao
-
findAllHavingIngressFlows
public java.util.List<OnmsSnmpInterface> findAllHavingIngressFlows(java.lang.Integer nodeId)
- Specified by:
findAllHavingIngressFlows
in interfaceSnmpInterfaceDao
-
findAllHavingEgressFlows
public java.util.List<OnmsSnmpInterface> findAllHavingEgressFlows(java.lang.Integer nodeId)
- Specified by:
findAllHavingEgressFlows
in interfaceSnmpInterfaceDao
-
-