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 String
NAME
The Constant NAME.static String
PREFIX
The 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 void
afterPropertiesSet()
void
doAddNode(int nodeId)
doAddNodevoid
doNotifyConfigChange(int nodeId)
doNotifyConfigChangevoid
doUpdateNode(int nodeId)
doUpdateNodeEventForwarder
getEventForwarder()
Gets the event forwarder.SnmpHwInventoryAdapterConfigDao
getHwAdapterConfigDao()
Gets the hardware adapter configuration DAO.HwEntityAttributeTypeDao
getHwEntityAttributeTypeDao()
Gets the hardware entity attribute type DAO.HwEntityDao
getHwEntityDao()
Gets the hardware entity DAO.LocationAwareSnmpClient
getLocationAwareSnmpClient()
String
getName()
getNameNodeDao
getNodeDao()
Gets the node DAO.SnmpAgentConfigFactory
getSnmpPeerFactory()
Gets the SNMP peer factory.protected Map<SnmpObjId,HwEntityAttributeType>
getVendorAttributeMap()
Gets the vendor attribute map.void
handleReloadConfigEvent(IEvent event)
Handle reload configuration event.void
setEventForwarder(EventForwarder eventForwarder)
Sets the event forwarder.void
setHwEntityAttributeTypeDao(HwEntityAttributeTypeDao hwEntityAttributeTypeDao)
Sets the hardware entity attribute type DAO.void
setHwEntityDao(HwEntityDao hwEntityDao)
Sets the hardware entity DAO.void
setHwInventoryAdapterConfigDao(SnmpHwInventoryAdapterConfigDao hwInventoryAdapterConfigDao)
Sets the hardware inventory adapter configuration DAO.void
setLocationAwareSnmpClient(LocationAwareSnmpClient locationAwareSnmpClient)
void
setNodeDao(NodeDao dao)
Sets the node DAO.void
setSnmpPeerFactory(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:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
doAddNode
public void doAddNode(int nodeId) throws ProvisioningAdapterException
Description copied from class:SimplerQueuedProvisioningAdapter
doAddNode
- Overrides:
doAddNode
in classSimplerQueuedProvisioningAdapter
- Parameters:
nodeId
- a int.- Throws:
ProvisioningAdapterException
-
doUpdateNode
public void doUpdateNode(int nodeId) throws ProvisioningAdapterException
Description copied from class:SimplerQueuedProvisioningAdapter
doUpdateNode
- Overrides:
doUpdateNode
in classSimplerQueuedProvisioningAdapter
- Parameters:
nodeId
- a int.- Throws:
ProvisioningAdapterException
-
doNotifyConfigChange
public void doNotifyConfigChange(int nodeId) throws ProvisioningAdapterException
Description copied from class:SimplerQueuedProvisioningAdapter
doNotifyConfigChange
- Overrides:
doNotifyConfigChange
in 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:SimplerQueuedProvisioningAdapter
getName
- Specified by:
getName
in interfaceProvisioningAdapter
- Overrides:
getName
in classSimplerQueuedProvisioningAdapter
- Returns:
- a
String
object.
-
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
-
-