Package org.opennms.netmgt.provision
Class SnmpHardwareInventoryProvisioningAdapter
- java.lang.Object
-
- org.opennms.netmgt.provision.SimpleQueuedProvisioningAdapter
-
- org.opennms.netmgt.provision.SimplerQueuedProvisioningAdapter
-
- org.opennms.netmgt.provision.SnmpHardwareInventoryProvisioningAdapter
-
- All Implemented Interfaces:
ProvisioningAdapter,org.springframework.beans.factory.InitializingBean
public class SnmpHardwareInventoryProvisioningAdapter extends SimplerQueuedProvisioningAdapter implements org.springframework.beans.factory.InitializingBean
The Class SnmpHardwareInventoryProvisioningAdapter.- Author:
- Alejandro Galue
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.netmgt.provision.SimpleQueuedProvisioningAdapter
SimpleQueuedProvisioningAdapter.AdapterOperationQueue, SimpleQueuedProvisioningAdapter.AdapterOperationQueueListener
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAMEThe Constant NAME.static StringPREFIXThe Constant PREFIX.-
Fields inherited from class org.opennms.netmgt.provision.SimplerQueuedProvisioningAdapter
m_delay, m_template, m_timeUnit
-
-
Constructor Summary
Constructors Constructor Description SnmpHardwareInventoryProvisioningAdapter()The Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()voiddoAddNode(int nodeId)doAddNodevoiddoNotifyConfigChange(int nodeId)doNotifyConfigChangevoiddoUpdateNode(int nodeId)doUpdateNodeEventForwardergetEventForwarder()Gets the event forwarder.SnmpHwInventoryAdapterConfigDaogetHwAdapterConfigDao()Gets the hardware adapter configuration DAO.HwEntityAttributeTypeDaogetHwEntityAttributeTypeDao()Gets the hardware entity attribute type DAO.HwEntityDaogetHwEntityDao()Gets the hardware entity DAO.LocationAwareSnmpClientgetLocationAwareSnmpClient()StringgetName()getNameNodeDaogetNodeDao()Gets the node DAO.SnmpAgentConfigFactorygetSnmpPeerFactory()Gets the SNMP peer factory.protected Map<SnmpObjId,HwEntityAttributeType>getVendorAttributeMap()Gets the vendor attribute map.voidhandleReloadConfigEvent(IEvent event)Handle reload configuration event.voidsetEventForwarder(EventForwarder eventForwarder)Sets the event forwarder.voidsetHwEntityAttributeTypeDao(HwEntityAttributeTypeDao hwEntityAttributeTypeDao)Sets the hardware entity attribute type DAO.voidsetHwEntityDao(HwEntityDao hwEntityDao)Sets the hardware entity DAO.voidsetHwInventoryAdapterConfigDao(SnmpHwInventoryAdapterConfigDao hwInventoryAdapterConfigDao)Sets the hardware inventory adapter configuration DAO.voidsetLocationAwareSnmpClient(LocationAwareSnmpClient locationAwareSnmpClient)voidsetNodeDao(NodeDao dao)Sets the node DAO.voidsetSnmpPeerFactory(SnmpAgentConfigFactory snmpConfigDao)Sets the SNMP peer factory.-
Methods inherited from class org.opennms.netmgt.provision.SimplerQueuedProvisioningAdapter
doDeleteNode, init, isNodeReady, processPendingOperationForNode, setDelay, setTemplate, setTimeUnit
-
Methods inherited from class org.opennms.netmgt.provision.SimpleQueuedProvisioningAdapter
addNode, deleteNode, getOperationQueue, nodeConfigChanged, updateNode
-
-
-
-
Field Detail
-
PREFIX
public static final String PREFIX
The Constant PREFIX.- See Also:
- Constant Field Values
-
NAME
public static final String NAME
The Constant NAME.- See Also:
- Constant Field Values
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
doAddNode
public void doAddNode(int nodeId) throws ProvisioningAdapterExceptionDescription copied from class:SimplerQueuedProvisioningAdapterdoAddNode
- Overrides:
doAddNodein classSimplerQueuedProvisioningAdapter- Parameters:
nodeId- a int.- Throws:
ProvisioningAdapterException
-
doUpdateNode
public void doUpdateNode(int nodeId) throws ProvisioningAdapterExceptionDescription copied from class:SimplerQueuedProvisioningAdapterdoUpdateNode
- Overrides:
doUpdateNodein classSimplerQueuedProvisioningAdapter- Parameters:
nodeId- a int.- Throws:
ProvisioningAdapterException
-
doNotifyConfigChange
public void doNotifyConfigChange(int nodeId) throws ProvisioningAdapterExceptionDescription copied from class:SimplerQueuedProvisioningAdapterdoNotifyConfigChange
- Overrides:
doNotifyConfigChangein classSimplerQueuedProvisioningAdapter- Parameters:
nodeId- a int.- Throws:
ProvisioningAdapterException
-
getHwEntityDao
public HwEntityDao getHwEntityDao()
Gets the hardware entity DAO.- Returns:
- the hardware entity DAO
-
setHwEntityDao
public void setHwEntityDao(HwEntityDao hwEntityDao)
Sets the hardware entity DAO.- Parameters:
hwEntityDao- the hardware entity DAO
-
getHwEntityAttributeTypeDao
public HwEntityAttributeTypeDao getHwEntityAttributeTypeDao()
Gets the hardware entity attribute type DAO.- Returns:
- the hardware entity attribute type DAO
-
setHwEntityAttributeTypeDao
public void setHwEntityAttributeTypeDao(HwEntityAttributeTypeDao hwEntityAttributeTypeDao)
Sets the hardware entity attribute type DAO.- Parameters:
hwEntityAttributeTypeDao- the hardware entity attribute type DAO
-
getNodeDao
public NodeDao getNodeDao()
Gets the node DAO.- Returns:
- the node DAO
-
setNodeDao
public void setNodeDao(NodeDao dao)
Sets the node DAO.- Parameters:
dao- the node DAO
-
getEventForwarder
public EventForwarder getEventForwarder()
Gets the event forwarder.- Returns:
- the event forwarder
-
setEventForwarder
public void setEventForwarder(EventForwarder eventForwarder)
Sets the event forwarder.- Parameters:
eventForwarder- the event forwarder
-
getSnmpPeerFactory
public SnmpAgentConfigFactory getSnmpPeerFactory()
Gets the SNMP peer factory.- Returns:
- the SNMP peer factory
-
setSnmpPeerFactory
public void setSnmpPeerFactory(SnmpAgentConfigFactory snmpConfigDao)
Sets the SNMP peer factory.- Parameters:
snmpConfigDao- the SNMP peer factory
-
getHwAdapterConfigDao
public SnmpHwInventoryAdapterConfigDao getHwAdapterConfigDao()
Gets the hardware adapter configuration DAO.- Returns:
- the hardware adapter configuration DAO
-
setHwInventoryAdapterConfigDao
public void setHwInventoryAdapterConfigDao(SnmpHwInventoryAdapterConfigDao hwInventoryAdapterConfigDao)
Sets the hardware inventory adapter configuration DAO.- Parameters:
hwInventoryAdapterConfigDao- the hardware inventory adapter configuration DAO
-
setLocationAwareSnmpClient
public void setLocationAwareSnmpClient(LocationAwareSnmpClient locationAwareSnmpClient)
-
getLocationAwareSnmpClient
public LocationAwareSnmpClient getLocationAwareSnmpClient()
-
getName
public String getName()
Description copied from class:SimplerQueuedProvisioningAdaptergetName
- Specified by:
getNamein interfaceProvisioningAdapter- Overrides:
getNamein classSimplerQueuedProvisioningAdapter- Returns:
- a
Stringobject.
-
handleReloadConfigEvent
public void handleReloadConfigEvent(IEvent event)
Handle reload configuration event.- Parameters:
event- the event
-
getVendorAttributeMap
protected Map<SnmpObjId,HwEntityAttributeType> getVendorAttributeMap()
Gets the vendor attribute map.- Returns:
- the vendor attribute map
-
-