AbstractMockDao.NullEventForwarder
Constructor and Description |
---|
MockNodeDao() |
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, findMatching, get, initialize, load, lock, saveOrUpdate
protected void generateId(OnmsNode node)
generateId
in class AbstractMockDao<OnmsNode,Integer>
protected Integer getId(OnmsNode node)
getId
in class AbstractMockDao<OnmsNode,Integer>
public void delete(OnmsNode node)
public void update(OnmsNode node)
public void flush()
public OnmsNode get(String lookupCriteria)
NodeDao
public String getLabelForId(Integer id)
NodeDao
getLabelForId
in interface NodeDao
public String getLocationForId(Integer id)
NodeDao
getLocationForId
in interface NodeDao
public List<OnmsNode> findByLabel(String label)
NodeDao
findByLabel
findByLabel
in interface NodeDao
label
- a String
object.Collection
object.public OnmsNode getHierarchy(Integer id)
NodeDao
getHierarchy
getHierarchy
in interface NodeDao
id
- a Integer
object.OnmsNode
object.public Map<String,Integer> getForeignIdToNodeIdMap(String foreignSource)
NodeDao
getForeignIdToNodeIdMap
getForeignIdToNodeIdMap
in interface NodeDao
foreignSource
- a String
object.Map
object.public List<OnmsNode> findAllByVarCharAssetColumn(String columnName, String columnValue)
NodeDao
findAllByVarCharAssetColumn
findAllByVarCharAssetColumn
in interface NodeDao
columnName
- a String
object.columnValue
- a String
object.Collection
object.public List<OnmsNode> findAllByVarCharAssetColumnCategoryList(String columnName, String columnValue, Collection<OnmsCategory> categories)
NodeDao
findAllByVarCharAssetColumnCategoryList
findAllByVarCharAssetColumnCategoryList
in interface NodeDao
columnName
- a String
object.columnValue
- a String
object.categories
- a Collection
object.Collection
object.public List<OnmsNode> findByCategory(OnmsCategory category)
NodeDao
findByCategory
findByCategory
in interface NodeDao
category
- a OnmsCategory
object.Collection
object.public List<OnmsNode> findAllByCategoryList(Collection<OnmsCategory> categories)
NodeDao
findAllByCategoryList
findAllByCategoryList
in interface NodeDao
categories
- a Collection
object.Collection
object.public List<OnmsNode> findAllByCategoryLists(Collection<OnmsCategory> rowCatNames, Collection<OnmsCategory> colCatNames)
NodeDao
findAllByCategoryLists
findAllByCategoryLists
in interface NodeDao
rowCatNames
- a Collection
object.colCatNames
- a Collection
object.Collection
object.public List<OnmsNode> findByForeignSource(String foreignSource)
NodeDao
findByForeignSource
findByForeignSource
in interface NodeDao
foreignSource
- a String
object.List
object.public List<OnmsNode> findByIpAddressAndService(InetAddress ipAddress, String serviceName)
findByIpAddressAndService
in interface NodeDao
public OnmsNode findByForeignId(String foreignSource, String foreignId)
NodeDao
findByForeignId
findByForeignId
in interface NodeDao
foreignSource
- a String
object.foreignId
- a String
object.OnmsNode
object.public int getNodeCountForForeignSource(String foreignSource)
NodeDao
getNodeCountForForeignSource
getNodeCountForForeignSource
in interface NodeDao
foreignSource
- a String
object.public Map<String,Set<String>> getForeignIdsPerForeignSourceMap()
NodeDao
getForeignIdsPerForeignSourceMap
getForeignIdsPerForeignSourceMap
in interface NodeDao
Map
object.public Set<String> getForeignIdsPerForeignSource(String foreignSource)
NodeDao
getForeignIdsPerForeignSource
getForeignIdsPerForeignSource
in interface NodeDao
foreignSource
- a String
object.Set
object.public List<OnmsNode> findAllProvisionedNodes()
NodeDao
findAllProvisionedNodes
findAllProvisionedNodes
in interface NodeDao
List
object.public List<OnmsIpInterface> findObsoleteIpInterfaces(Integer nodeId, Date scanStamp)
NodeDao
findObsoleteIpInterfaces
findObsoleteIpInterfaces
in interface NodeDao
nodeId
- a Integer
object.scanStamp
- a Date
object.List
object.public List<OnmsSnmpInterface> findObsoleteSnmpInterfaces(Integer nodeId, Date scanStamp)
public void deleteObsoleteInterfaces(Integer nodeId, Date scanStamp)
NodeDao
deleteObsoleteInterfaces
deleteObsoleteInterfaces
in interface NodeDao
nodeId
- a Integer
object.scanStamp
- a Date
object.public void updateNodeScanStamp(Integer nodeId, Date scanStamp)
NodeDao
updateNodeScanStamp
updateNodeScanStamp
in interface NodeDao
nodeId
- a Integer
object.scanStamp
- a Date
object.public Collection<Integer> getNodeIds()
NodeDao
getNodeIds
getNodeIds
in interface NodeDao
Collection
object.public List<OnmsNode> findByForeignSourceAndIpAddress(String foreignSource, String ipAddress)
NodeDao
findByForeignSourceAndIpAddress
findByForeignSourceAndIpAddress
in interface NodeDao
foreignSource
- a String
object.ipAddress
- a String
object.List
object.public SurveillanceStatus findSurveillanceStatusByCategoryLists(Collection<OnmsCategory> rowCategories, Collection<OnmsCategory> columnCategories)
findSurveillanceStatusByCategoryLists
in interface NodeDao
public Integer getNextNodeId(Integer nodeId)
getNextNodeId
in interface NodeDao
public Integer getPreviousNodeId(Integer nodeId)
getPreviousNodeId
in interface NodeDao
public Map<Integer,String> getAllLabelsById()
NodeDao
getAllLabelsById
in interface NodeDao
Map
containing all node ids and their associated labels.public Map<String,Long> getNumberOfNodesBySysOid()
NodeDao
getNumberOfNodesBySysOid
in interface NodeDao
Map
containing the number of nodes for each sysOidpublic int getNextNodeId()
public List<OnmsNode> findByLabelForLocation(String label, String location)
NodeDao
findByLabel
findByLabelForLocation
in interface NodeDao
label
- a String
object.location
- a String
object.Collection
object.public List<OnmsNode> findByForeignId(String foreignId)
NodeDao
findByForeignId
findByForeignId
in interface NodeDao
foreignId
- a String
object.List
object.public List<OnmsNode> findByForeignIdForLocation(String foreignId, String location)
NodeDao
findByForeignIdForLocation
findByForeignIdForLocation
in interface NodeDao
foreignId
- a String
object.location
- a String
object.List
object.public void markHavingFlows(Collection<Integer> ingressIds, Collection<Integer> egressIds)
markHavingFlows
in interface NodeDao
public List<OnmsNode> findAllHavingFlows()
findAllHavingFlows
in interface NodeDao
public List<OnmsNode> findAllHavingIngressFlows()
findAllHavingIngressFlows
in interface NodeDao
public List<OnmsNode> findAllHavingEgressFlows()
findAllHavingEgressFlows
in interface NodeDao
public OnmsNode getDefaultFocusPoint()
getDefaultFocusPoint
in interface NodeDao
Copyright © 2021. All rights reserved.