public class SnmpHardwareInventoryProvisioningAdapter extends SimplerQueuedProvisioningAdapter implements org.springframework.beans.factory.InitializingBean
SimpleQueuedProvisioningAdapter.AdapterOperationQueue, SimpleQueuedProvisioningAdapter.AdapterOperationQueueListener
Modifier and Type | Field and Description |
---|---|
static String |
NAME
The Constant NAME.
|
static String |
PREFIX
The Constant PREFIX.
|
m_delay, m_template, m_timeUnit
Constructor and Description |
---|
SnmpHardwareInventoryProvisioningAdapter()
The Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
doAddNode(int nodeId)
doAddNode
|
void |
doNotifyConfigChange(int nodeId)
doNotifyConfigChange
|
void |
doUpdateNode(int nodeId)
doUpdateNode
|
EventForwarder |
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()
getName
|
NodeDao |
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.
|
doDeleteNode, init, isNodeReady, processPendingOperationForNode, setDelay, setTemplate, setTimeUnit
addNode, deleteNode, getOperationQueue, nodeConfigChanged, updateNode
public static final String PREFIX
public static final String NAME
public SnmpHardwareInventoryProvisioningAdapter()
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void doAddNode(int nodeId) throws ProvisioningAdapterException
SimplerQueuedProvisioningAdapter
doAddNode
doAddNode
in class SimplerQueuedProvisioningAdapter
nodeId
- a int.ProvisioningAdapterException
public void doUpdateNode(int nodeId) throws ProvisioningAdapterException
SimplerQueuedProvisioningAdapter
doUpdateNode
doUpdateNode
in class SimplerQueuedProvisioningAdapter
nodeId
- a int.ProvisioningAdapterException
public void doNotifyConfigChange(int nodeId) throws ProvisioningAdapterException
SimplerQueuedProvisioningAdapter
doNotifyConfigChange
doNotifyConfigChange
in class SimplerQueuedProvisioningAdapter
nodeId
- a int.ProvisioningAdapterException
public HwEntityDao getHwEntityDao()
public void setHwEntityDao(HwEntityDao hwEntityDao)
hwEntityDao
- the hardware entity DAOpublic HwEntityAttributeTypeDao getHwEntityAttributeTypeDao()
public void setHwEntityAttributeTypeDao(HwEntityAttributeTypeDao hwEntityAttributeTypeDao)
hwEntityAttributeTypeDao
- the hardware entity attribute type DAOpublic NodeDao getNodeDao()
public void setNodeDao(NodeDao dao)
dao
- the node DAOpublic EventForwarder getEventForwarder()
public void setEventForwarder(EventForwarder eventForwarder)
eventForwarder
- the event forwarderpublic SnmpAgentConfigFactory getSnmpPeerFactory()
public void setSnmpPeerFactory(SnmpAgentConfigFactory snmpConfigDao)
snmpConfigDao
- the SNMP peer factorypublic SnmpHwInventoryAdapterConfigDao getHwAdapterConfigDao()
public void setHwInventoryAdapterConfigDao(SnmpHwInventoryAdapterConfigDao hwInventoryAdapterConfigDao)
hwInventoryAdapterConfigurationDao
- the hardware inventory adapter configuration DAOpublic void setLocationAwareSnmpClient(LocationAwareSnmpClient locationAwareSnmpClient)
public LocationAwareSnmpClient getLocationAwareSnmpClient()
public String getName()
SimplerQueuedProvisioningAdapter
getName
getName
in interface ProvisioningAdapter
getName
in class SimplerQueuedProvisioningAdapter
String
object.public void handleReloadConfigEvent(IEvent event)
event
- the eventprotected Map<SnmpObjId,HwEntityAttributeType> getVendorAttributeMap()
Copyright © 2021. All rights reserved.