public class MockIpInterfaceDao extends AbstractMockDao<OnmsIpInterface,Integer> implements IpInterfaceDao
AbstractMockDao.NullEventForwarder
Constructor and Description |
---|
MockIpInterfaceDao() |
afterPropertiesSet, clear, countAll, countMatching, countMatching, delete, findAll, findMatching, findMatching, get, getAlarmAssociationDao, getAlarmDao, getAssetRecordDao, getCategoryDao, getDistPollerDao, getEventDao, getIpInterfaceDao, getMonitoredServiceDao, getMonitoringLocationDao, getNodeDao, getServiceRegistry, getServiceTypeDao, getSnmpInterfaceDao, initialize, load, lock, saveOrUpdate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countMatching, findMatching
clear, countAll, countMatching, delete, findAll, findMatching, get, initialize, load, lock, saveOrUpdate
public Integer save(OnmsIpInterface iface)
save
in interface OnmsDao<OnmsIpInterface,Integer>
save
in class AbstractMockDao<OnmsIpInterface,Integer>
public void update(OnmsIpInterface iface)
update
in interface OnmsDao<OnmsIpInterface,Integer>
update
in class AbstractMockDao<OnmsIpInterface,Integer>
public void flush()
flush
in interface OnmsDao<OnmsIpInterface,Integer>
flush
in class AbstractMockDao<OnmsIpInterface,Integer>
public void delete(OnmsIpInterface iface)
delete
in interface OnmsDao<OnmsIpInterface,Integer>
delete
in class AbstractMockDao<OnmsIpInterface,Integer>
protected void generateId(OnmsIpInterface iface)
generateId
in class AbstractMockDao<OnmsIpInterface,Integer>
protected Integer getId(OnmsIpInterface iface)
getId
in class AbstractMockDao<OnmsIpInterface,Integer>
public OnmsIpInterface get(OnmsNode node, String ipAddress)
IpInterfaceDao
get
get
in interface IpInterfaceDao
node
- a OnmsNode
object.ipAddress
- a String
object.OnmsIpInterface
object.public OnmsIpInterface findByNodeIdAndIpAddress(Integer nodeId, String ipAddress)
IpInterfaceDao
findByNodeIdAndIpAddress
findByNodeIdAndIpAddress
in interface IpInterfaceDao
nodeId
- a Integer
object.ipAddress
- a String
object.OnmsIpInterface
object.public OnmsIpInterface findByForeignKeyAndIpAddress(String foreignSource, String foreignId, String ipAddress)
IpInterfaceDao
findByForeignKeyAndIpAddress
findByForeignKeyAndIpAddress
in interface IpInterfaceDao
foreignSource
- a String
object.foreignId
- a String
object.ipAddress
- a String
object.OnmsIpInterface
object.public List<OnmsIpInterface> findByIpAddress(String ipAddress)
IpInterfaceDao
findByIpAddress
findByIpAddress
in interface IpInterfaceDao
ipAddress
- a String
object.Collection
object.public List<OnmsIpInterface> findByNodeId(Integer nodeId)
IpInterfaceDao
findByNodeId
findByNodeId
in interface IpInterfaceDao
nodeId
- a Integer
object.Collection
object.public List<OnmsIpInterface> findByServiceType(String svcName)
IpInterfaceDao
findByServiceType
findByServiceType
in interface IpInterfaceDao
svcName
- a String
object.Collection
object.public List<OnmsIpInterface> findHierarchyByServiceType(String svcName)
IpInterfaceDao
findHierarchyByServiceType
findHierarchyByServiceType
in interface IpInterfaceDao
svcName
- a String
object.Collection
object.public Map<InetAddress,Integer> getInterfacesForNodes()
IpInterfaceDao
getInterfacesForNodes
in interface IpInterfaceDao
Map
object.public OnmsIpInterface findPrimaryInterfaceByNodeId(Integer nodeId)
findPrimaryInterfaceByNodeId
in interface IpInterfaceDao
public List<OnmsIpInterface> findInterfacesWithMetadata(String context, String key, String value)
findInterfacesWithMetadata
in interface IpInterfaceDao
Copyright © 2021. All rights reserved.