public class MockStpInterfaceDao extends AbstractMockDao<OnmsStpInterface,Integer> implements StpInterfaceDao
AbstractMockDao.NullEventForwarder
Constructor and Description |
---|
MockStpInterfaceDao() |
Modifier and Type | Method and Description |
---|---|
void |
deactivateForNodeIdIfOlderThan(int nodeId,
Date scanTime) |
void |
deleteForNodeIdIfOlderThan(int nodeId,
Date scanTime) |
OnmsStpInterface |
findByNodeAndVlan(Integer nodeId,
Integer bridgePort,
Integer vlan) |
protected void |
generateId(OnmsStpInterface entity) |
protected Integer |
getId(OnmsStpInterface entity) |
void |
markDeletedIfNodeDeleted() |
void |
setStatusForNode(Integer nodeId,
OnmsArpInterface.StatusType action) |
void |
setStatusForNodeAndIfIndex(Integer nodeId,
Integer ifIndex,
OnmsArpInterface.StatusType action) |
afterPropertiesSet, clear, countAll, countMatching, countMatching, delete, delete, findAll, findMatching, findMatching, flush, get, getAlarmDao, getAssetRecordDao, getCategoryDao, getDistPollerDao, getEventDao, getIpInterfaceDao, getMonitoredServiceDao, getNodeDao, getServiceRegistry, getServiceTypeDao, getSnmpInterfaceDao, initialize, load, lock, save, saveOrUpdate, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countMatching, findMatching
clear, countAll, countMatching, delete, delete, findAll, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, update
protected Integer getId(OnmsStpInterface entity)
getId
in class AbstractMockDao<OnmsStpInterface,Integer>
protected void generateId(OnmsStpInterface entity)
generateId
in class AbstractMockDao<OnmsStpInterface,Integer>
public void markDeletedIfNodeDeleted()
markDeletedIfNodeDeleted
in interface StpInterfaceDao
public void deactivateForNodeIdIfOlderThan(int nodeId, Date scanTime)
deactivateForNodeIdIfOlderThan
in interface StpInterfaceDao
public void deleteForNodeIdIfOlderThan(int nodeId, Date scanTime)
deleteForNodeIdIfOlderThan
in interface StpInterfaceDao
public void setStatusForNode(Integer nodeId, OnmsArpInterface.StatusType action)
setStatusForNode
in interface StpInterfaceDao
public void setStatusForNodeAndIfIndex(Integer nodeId, Integer ifIndex, OnmsArpInterface.StatusType action)
setStatusForNodeAndIfIndex
in interface StpInterfaceDao
public OnmsStpInterface findByNodeAndVlan(Integer nodeId, Integer bridgePort, Integer vlan)
findByNodeAndVlan
in interface StpInterfaceDao
Copyright © 2015. All rights reserved.