Class ProvisioningAdapterManager
- java.lang.Object
-
- org.opennms.netmgt.provision.service.ProvisioningAdapterManager
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
public class ProvisioningAdapterManager extends Object implements org.springframework.beans.factory.InitializingBean
An adapter manager. Makes writing tests much easier.- Version:
- $Id: $
- Author:
- David Hustace
-
-
Constructor Summary
Constructors Constructor Description ProvisioningAdapterManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()afterPropertiesSetEventForwardergetEventForwarder()getEventForwarderPluginRegistrygetPluginRegistry()getPluginRegistryvoidhandleNodeAddedEvent(IEvent e)handleNodeAddedEventvoidhandleNodeChangedEvent(IEvent e)handleNodeChangedEventvoidhandleNodeDeletedEvent(IEvent e)handleNodeDeletedEventvoidhandleNodeScanCompletedEvent(IEvent e)handleNodeScanCompletedEventvoidhandleNodeUpdatedEvent(IEvent e)handleNodeUpdatedEventvoidinitializeAdapters()initializeAdaptersvoidsetEventForwarder(EventForwarder eventForwarder)setEventForwardervoidsetPluginRegistry(PluginRegistry pluginRegistry)setPluginRegistry
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws ExceptionafterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception- if any.
-
getPluginRegistry
public PluginRegistry getPluginRegistry()
getPluginRegistry
- Returns:
- a
PluginRegistryobject.
-
setPluginRegistry
public void setPluginRegistry(PluginRegistry pluginRegistry)
setPluginRegistry
- Parameters:
pluginRegistry- aPluginRegistryobject.
-
handleNodeAddedEvent
public void handleNodeAddedEvent(IEvent e)
handleNodeAddedEvent
- Parameters:
e- aIEventobject.
-
handleNodeUpdatedEvent
public void handleNodeUpdatedEvent(IEvent e)
handleNodeUpdatedEvent
- Parameters:
e- aIEventobject.
-
handleNodeDeletedEvent
public void handleNodeDeletedEvent(IEvent e)
handleNodeDeletedEvent
- Parameters:
e- aIEventobject.
-
handleNodeScanCompletedEvent
public void handleNodeScanCompletedEvent(IEvent e)
handleNodeScanCompletedEvent
Note: If the operations are properly scheduled and handled using the SimpleQueuedProvisioningAdapter, even though this event is sent following a nodeUpdated event, the update operation task should be reduced to 1 operation on the queue.- Parameters:
e- aIEventobject.
-
handleNodeChangedEvent
public void handleNodeChangedEvent(IEvent e)
handleNodeChangedEvent
- Parameters:
e- aIEventobject.
-
setEventForwarder
public void setEventForwarder(EventForwarder eventForwarder)
setEventForwarder
- Parameters:
eventForwarder- aEventForwarderobject.
-
getEventForwarder
public EventForwarder getEventForwarder()
getEventForwarder
- Returns:
- a
EventForwarderobject.
-
initializeAdapters
public void initializeAdapters()
initializeAdapters
-
-