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, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, countAll, countMatching, delete, delete, findAll, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, updateprotected 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 AtInterfaceDaopublic void deactivateForSourceNodeIdIfOlderThan(int sourceNodeid,
Date scanTime)
deactivateForSourceNodeIdIfOlderThan in interface AtInterfaceDaopublic void deleteForNodeSourceIdIfOlderThan(int sourceNodeid,
Date scanTime)
deleteForNodeSourceIdIfOlderThan in interface AtInterfaceDaopublic Collection<OnmsAtInterface> findByMacAddress(String macAddress)
findByMacAddress in interface AtInterfaceDaopublic void setStatusForNode(Integer nodeid, OnmsArpInterface.StatusType action)
setStatusForNode in interface AtInterfaceDaopublic void setStatusForNodeAndIp(Integer nodeid, String ipAddr, OnmsArpInterface.StatusType action)
setStatusForNodeAndIp in interface AtInterfaceDaopublic void setStatusForNodeAndIfIndex(Integer nodeid, Integer ifIndex, OnmsArpInterface.StatusType action)
setStatusForNodeAndIfIndex in interface AtInterfaceDaopublic OnmsAtInterface findByNodeAndAddress(Integer nodeId, InetAddress ipAddress, String macAddress)
findByNodeAndAddress in interface AtInterfaceDaopublic Collection<OnmsAtInterface> getAtInterfaceForAddress(InetAddress address)
AtInterfaceDaoOnmsAtInterface 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 AtInterfaceDaoOnmsAtInterfaceCopyright © 2015. All rights reserved.