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.
|
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, 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 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()
Copyright © 2017. All rights reserved.