AbstractMockDao.NullEventForwarder| Constructor and Description |
|---|
MockNodeDao() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(OnmsNode node) |
void |
deleteObsoleteInterfaces(Integer nodeId,
Date scanStamp)
deleteObsoleteInterfaces
|
List<OnmsNode> |
findAllByCategoryList(Collection<OnmsCategory> categories)
findAllByCategoryList
|
List<OnmsNode> |
findAllByCategoryLists(Collection<OnmsCategory> rowCatNames,
Collection<OnmsCategory> colCatNames)
findAllByCategoryLists
|
List<OnmsNode> |
findAllByVarCharAssetColumn(String columnName,
String columnValue)
findAllByVarCharAssetColumn
|
List<OnmsNode> |
findAllByVarCharAssetColumnCategoryList(String columnName,
String columnValue,
Collection<OnmsCategory> categories)
findAllByVarCharAssetColumnCategoryList
|
List<OnmsNode> |
findAllProvisionedNodes()
findAllProvisionedNodes
|
List<OnmsNode> |
findByCategory(OnmsCategory category)
findByCategory
|
OnmsNode |
findByForeignId(String foreignSource,
String foreignId)
findByForeignId
|
List<OnmsNode> |
findByForeignSource(String foreignSource)
findByForeignSource
|
List<OnmsNode> |
findByForeignSourceAndIpAddress(String foreignSource,
String ipAddress)
findByForeignSourceAndIpAddress
|
List<OnmsNode> |
findByIpAddressAndService(InetAddress ipAddress,
String serviceName) |
List<OnmsNode> |
findByLabel(String label)
findByLabel
|
List<OnmsIpInterface> |
findObsoleteIpInterfaces(Integer nodeId,
Date scanStamp)
findObsoleteIpInterfaces
|
List<OnmsSnmpInterface> |
findObsoleteSnmpInterfaces(Integer nodeId,
Date scanStamp) |
SurveillanceStatus |
findSurveillanceStatusByCategoryLists(Collection<OnmsCategory> rowCategories,
Collection<OnmsCategory> columnCategories) |
void |
flush() |
protected void |
generateId(OnmsNode node) |
OnmsNode |
get(String lookupCriteria)
Get a node based on it's node ID or foreignSource:foreignId
|
Map<Integer,String> |
getAllLabelsById()
Retrieves all of node id/label tuples.
|
Set<String> |
getForeignIdsPerForeignSource(String foreignSource)
getForeignIdsPerForeignSource
|
Map<String,Set<String>> |
getForeignIdsPerForeignSourceMap()
getForeignIdsPerForeignSourceMap
|
Map<String,Integer> |
getForeignIdToNodeIdMap(String foreignSource)
getForeignIdToNodeIdMap
|
OnmsNode |
getHierarchy(Integer id)
getHierarchy
|
protected Integer |
getId(OnmsNode node) |
String |
getLabelForId(Integer id)
Light weight call to simply get the node label without loading the entire node.
|
String |
getLocationForId(Integer id)
Light weight call to simply get the node location without loading the entire node.
|
int |
getNextNodeId() |
Integer |
getNextNodeId(Integer nodeId) |
int |
getNodeCountForForeignSource(String foreignSource)
getNodeCountForForeignSource
|
Collection<Integer> |
getNodeIds()
getNodeIds
|
Map<String,Long> |
getNumberOfNodesBySysOid()
Retrieves the number of nodes for each sysOid.
|
Integer |
getPreviousNodeId(Integer nodeId) |
Integer |
save(OnmsNode node) |
void |
update(OnmsNode node) |
void |
updateNodeScanStamp(Integer nodeId,
Date scanStamp)
updateNodeScanStamp
|
afterPropertiesSet, clear, countAll, countMatching, countMatching, delete, findAll, findMatching, findMatching, get, getAlarmDao, getAssetRecordDao, getCategoryDao, getDistPollerDao, getEventDao, getIpInterfaceDao, getMonitoredServiceDao, getMonitoringLocationDao, getNodeDao, getServiceRegistry, getServiceTypeDao, getSnmpInterfaceDao, initialize, load, lock, saveOrUpdateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcountMatching, findMatchingclear, countAll, countMatching, delete, findMatching, get, initialize, load, lock, saveOrUpdateprotected 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)
NodeDaopublic String getLabelForId(Integer id)
NodeDaogetLabelForId in interface NodeDaopublic String getLocationForId(Integer id)
NodeDaogetLocationForId in interface NodeDaopublic List<OnmsNode> findByLabel(String label)
NodeDaofindByLabel
findByLabel in interface NodeDaolabel - a String object.Collection object.public OnmsNode getHierarchy(Integer id)
NodeDaogetHierarchy
getHierarchy in interface NodeDaoid - a Integer object.OnmsNode object.public Map<String,Integer> getForeignIdToNodeIdMap(String foreignSource)
NodeDaogetForeignIdToNodeIdMap
getForeignIdToNodeIdMap in interface NodeDaoforeignSource - a String object.Map object.public List<OnmsNode> findAllByVarCharAssetColumn(String columnName, String columnValue)
NodeDaofindAllByVarCharAssetColumn
findAllByVarCharAssetColumn in interface NodeDaocolumnName - a String object.columnValue - a String object.Collection object.public List<OnmsNode> findAllByVarCharAssetColumnCategoryList(String columnName, String columnValue, Collection<OnmsCategory> categories)
NodeDaofindAllByVarCharAssetColumnCategoryList
findAllByVarCharAssetColumnCategoryList in interface NodeDaocolumnName - a String object.columnValue - a String object.categories - a Collection object.Collection object.public List<OnmsNode> findByCategory(OnmsCategory category)
NodeDaofindByCategory
findByCategory in interface NodeDaocategory - a OnmsCategory object.Collection object.public List<OnmsNode> findAllByCategoryList(Collection<OnmsCategory> categories)
NodeDaofindAllByCategoryList
findAllByCategoryList in interface NodeDaocategories - a Collection object.Collection object.public List<OnmsNode> findAllByCategoryLists(Collection<OnmsCategory> rowCatNames, Collection<OnmsCategory> colCatNames)
NodeDaofindAllByCategoryLists
findAllByCategoryLists in interface NodeDaorowCatNames - a Collection object.colCatNames - a Collection object.Collection object.public List<OnmsNode> findByForeignSource(String foreignSource)
NodeDaofindByForeignSource
findByForeignSource in interface NodeDaoforeignSource - a String object.List object.public List<OnmsNode> findByIpAddressAndService(InetAddress ipAddress, String serviceName)
findByIpAddressAndService in interface NodeDaopublic OnmsNode findByForeignId(String foreignSource, String foreignId)
NodeDaofindByForeignId
findByForeignId in interface NodeDaoforeignSource - a String object.foreignId - a String object.OnmsNode object.public int getNodeCountForForeignSource(String foreignSource)
NodeDaogetNodeCountForForeignSource
getNodeCountForForeignSource in interface NodeDaoforeignSource - a String object.public Map<String,Set<String>> getForeignIdsPerForeignSourceMap()
NodeDaogetForeignIdsPerForeignSourceMap
getForeignIdsPerForeignSourceMap in interface NodeDaoMap object.public Set<String> getForeignIdsPerForeignSource(String foreignSource)
NodeDaogetForeignIdsPerForeignSource
getForeignIdsPerForeignSource in interface NodeDaoforeignSource - a String object.Set object.public List<OnmsNode> findAllProvisionedNodes()
NodeDaofindAllProvisionedNodes
findAllProvisionedNodes in interface NodeDaoList object.public List<OnmsIpInterface> findObsoleteIpInterfaces(Integer nodeId, Date scanStamp)
NodeDaofindObsoleteIpInterfaces
findObsoleteIpInterfaces in interface NodeDaonodeId - a Integer object.scanStamp - a Date object.List object.public List<OnmsSnmpInterface> findObsoleteSnmpInterfaces(Integer nodeId, Date scanStamp)
public void deleteObsoleteInterfaces(Integer nodeId, Date scanStamp)
NodeDaodeleteObsoleteInterfaces
deleteObsoleteInterfaces in interface NodeDaonodeId - a Integer object.scanStamp - a Date object.public void updateNodeScanStamp(Integer nodeId, Date scanStamp)
NodeDaoupdateNodeScanStamp
updateNodeScanStamp in interface NodeDaonodeId - a Integer object.scanStamp - a Date object.public Collection<Integer> getNodeIds()
NodeDaogetNodeIds
getNodeIds in interface NodeDaoCollection object.public List<OnmsNode> findByForeignSourceAndIpAddress(String foreignSource, String ipAddress)
NodeDaofindByForeignSourceAndIpAddress
findByForeignSourceAndIpAddress in interface NodeDaoforeignSource - a String object.ipAddress - a String object.List object.public SurveillanceStatus findSurveillanceStatusByCategoryLists(Collection<OnmsCategory> rowCategories, Collection<OnmsCategory> columnCategories)
findSurveillanceStatusByCategoryLists in interface NodeDaopublic Integer getNextNodeId(Integer nodeId)
getNextNodeId in interface NodeDaopublic Integer getPreviousNodeId(Integer nodeId)
getPreviousNodeId in interface NodeDaopublic Map<Integer,String> getAllLabelsById()
NodeDaogetAllLabelsById in interface NodeDaoMap containing all node ids and their associated labels.public Map<String,Long> getNumberOfNodesBySysOid()
NodeDaogetNumberOfNodesBySysOid in interface NodeDaoMap containing the number of nodes for each sysOidpublic int getNextNodeId()
Copyright © 2020. All rights reserved.