public class MockAtInterfaceDao extends AbstractMockDao<OnmsAtInterface,Integer> implements AtInterfaceDao
AbstractMockDao.NullEventForwarder
Constructor and Description |
---|
MockAtInterfaceDao() |
Modifier and Type | Method and Description |
---|---|
void |
deactivateForSourceNodeIdIfOlderThan(int sourceNodeid,
Date scanTime) |
void |
deleteForNodeSourceIdIfOlderThan(int sourceNodeid,
Date scanTime) |
Collection<OnmsAtInterface> |
findByMacAddress(String macAddress) |
OnmsAtInterface |
findByNodeAndAddress(Integer nodeId,
InetAddress ipAddress,
String macAddress) |
protected void |
generateId(OnmsAtInterface entity) |
Collection<OnmsAtInterface> |
getAtInterfaceForAddress(InetAddress address)
Get the
OnmsAtInterface that goes with a given address and
node. |
protected Integer |
getId(OnmsAtInterface entity) |
void |
markDeletedIfNodeDeleted() |
void |
setStatusForNode(Integer nodeid,
OnmsArpInterface.StatusType action) |
void |
setStatusForNodeAndIfIndex(Integer nodeid,
Integer ifIndex,
OnmsArpInterface.StatusType action) |
void |
setStatusForNodeAndIp(Integer nodeid,
String ipAddr,
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
clear, countAll, countMatching, delete, delete, findAll, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, update
protected Integer getId(OnmsAtInterface entity)
getId
in class AbstractMockDao<OnmsAtInterface,Integer>
protected void generateId(OnmsAtInterface entity)
generateId
in class AbstractMockDao<OnmsAtInterface,Integer>
public void markDeletedIfNodeDeleted()
markDeletedIfNodeDeleted
in interface AtInterfaceDao
public void deactivateForSourceNodeIdIfOlderThan(int sourceNodeid, Date scanTime)
deactivateForSourceNodeIdIfOlderThan
in interface AtInterfaceDao
public void deleteForNodeSourceIdIfOlderThan(int sourceNodeid, Date scanTime)
deleteForNodeSourceIdIfOlderThan
in interface AtInterfaceDao
public Collection<OnmsAtInterface> findByMacAddress(String macAddress)
findByMacAddress
in interface AtInterfaceDao
public void setStatusForNode(Integer nodeid, OnmsArpInterface.StatusType action)
setStatusForNode
in interface AtInterfaceDao
public void setStatusForNodeAndIp(Integer nodeid, String ipAddr, OnmsArpInterface.StatusType action)
setStatusForNodeAndIp
in interface AtInterfaceDao
public void setStatusForNodeAndIfIndex(Integer nodeid, Integer ifIndex, OnmsArpInterface.StatusType action)
setStatusForNodeAndIfIndex
in interface AtInterfaceDao
public OnmsAtInterface findByNodeAndAddress(Integer nodeId, InetAddress ipAddress, String macAddress)
findByNodeAndAddress
in interface AtInterfaceDao
public Collection<OnmsAtInterface> getAtInterfaceForAddress(InetAddress address)
AtInterfaceDao
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.getAtInterfaceForAddress
in interface AtInterfaceDao
OnmsAtInterface
Copyright © 2015. All rights reserved.