public class MockHwEntityDao extends AbstractMockDao<OnmsHwEntity,Integer> implements HwEntityDao
AbstractMockDao.NullEventForwarder
Constructor and Description |
---|
MockHwEntityDao() |
Modifier and Type | Method and Description |
---|---|
OnmsHwEntity |
findEntityByIndex(Integer nodeId,
Integer entPhysicalIndex)
Find entity by index.
|
OnmsHwEntity |
findEntityByName(Integer nodeId,
String entPhysicalName)
Find entity by name.
|
OnmsHwEntity |
findRootByNodeId(Integer nodeId)
Find root by node id.
|
protected void |
generateId(OnmsHwEntity outage) |
String |
getAttributeValue(Integer nodeId,
Integer entPhysicalIndex,
String attributeName)
Gets the attribute value.
|
String |
getAttributeValue(Integer nodeId,
String nameSource,
String attributeName)
Gets the attribute value.
|
protected Integer |
getId(OnmsHwEntity outage) |
afterPropertiesSet, clear, countAll, countMatching, countMatching, delete, delete, findAll, findMatching, findMatching, flush, get, getAlarmAssociationDao, getAlarmDao, getAssetRecordDao, getCategoryDao, getDistPollerDao, getEventDao, getIpInterfaceDao, getMonitoredServiceDao, getMonitoringLocationDao, getNodeDao, getServiceRegistry, getServiceTypeDao, getSnmpInterfaceDao, initialize, load, lock, save, saveOrUpdate, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, countAll, countMatching, delete, delete, findAll, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, update
protected void generateId(OnmsHwEntity outage)
generateId
in class AbstractMockDao<OnmsHwEntity,Integer>
protected Integer getId(OnmsHwEntity outage)
getId
in class AbstractMockDao<OnmsHwEntity,Integer>
public OnmsHwEntity findRootByNodeId(Integer nodeId)
HwEntityDao
findRootByNodeId
in interface HwEntityDao
nodeId
- the node idpublic OnmsHwEntity findEntityByIndex(Integer nodeId, Integer entPhysicalIndex)
HwEntityDao
findEntityByIndex
in interface HwEntityDao
nodeId
- the node identPhysicalIndex
- the entity physical indexpublic OnmsHwEntity findEntityByName(Integer nodeId, String entPhysicalName)
HwEntityDao
findEntityByName
in interface HwEntityDao
nodeId
- the node identPhysicalName
- the entity physical namepublic String getAttributeValue(Integer nodeId, Integer entPhysicalIndex, String attributeName)
HwEntityDao
getAttributeValue
in interface HwEntityDao
nodeId
- the node identPhysicalIndex
- the entity physical indexattributeName
- the name of the desired attributepublic String getAttributeValue(Integer nodeId, String nameSource, String attributeName)
HwEntityDao
getAttributeValue
in interface HwEntityDao
nodeId
- the node idnameSource
- either the value of entPhysicalName or a regular expression to be applied over the entPhysicalName (should start with '~')attributeName
- the name of the desired attributeCopyright © 2021. All rights reserved.