Package org.opennms.netmgt.provision
Interface ProvisioningAdapter
-
- All Known Implementing Classes:
DnsProvisioningAdapter
,GeolocationProvisioningAdapter
,PuppetProvisioningAdapter
,RancidProvisioningAdapter
,ReverseDnsProvisioningAdapter
,SimpleQueuedProvisioningAdapter
,SimpleQueuedProvisioningAdapter2
,SimplerQueuedProvisioningAdapter
,SnmpAssetProvisioningAdapter
,SnmpHardwareInventoryProvisioningAdapter
,WsManAssetProvisioningAdapter
public interface ProvisioningAdapter
This class provides an API for implementing provider "extensions" to the OpenNMS Provisioning daemon.- Version:
- $Id: $
- Author:
- David Hustace
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.ScheduledFuture<?>
addNode(int nodeId)
This method is called by the Provisioner when a new node is provisioned.java.util.concurrent.ScheduledFuture<?>
deleteNode(int nodeId)
This method is called by the Provisioner when a node is deleted through provisioning.java.lang.String
getName()
getNamevoid
init()
This method is called in case the adapter needs to perform some initialization prior to receiving calls from the AdapterManager.java.util.concurrent.ScheduledFuture<?>
nodeConfigChanged(int nodeid)
This method is called when a configuration change event has occurred from any source.java.util.concurrent.ScheduledFuture<?>
updateNode(int nodeId)
This method is called by the Provisioner when a node is updated through provisioning.
-
-
-
Method Detail
-
addNode
java.util.concurrent.ScheduledFuture<?> addNode(int nodeId) throws ProvisioningAdapterException
This method is called by the Provisioner when a new node is provisioned.- Parameters:
nodeId
- a int.- Returns:
- Throws:
ProvisioningAdapterException
- if any.
-
updateNode
java.util.concurrent.ScheduledFuture<?> updateNode(int nodeId) throws ProvisioningAdapterException
This method is called by the Provisioner when a node is updated through provisioning.- Parameters:
nodeId
- a int.- Throws:
ProvisioningAdapterException
- if any.
-
deleteNode
java.util.concurrent.ScheduledFuture<?> deleteNode(int nodeId) throws ProvisioningAdapterException
This method is called by the Provisioner when a node is deleted through provisioning.- Parameters:
nodeId
- a int.- Throws:
ProvisioningAdapterException
- if any.
-
getName
java.lang.String getName()
getName
- Returns:
- a
String
object.
-
nodeConfigChanged
java.util.concurrent.ScheduledFuture<?> nodeConfigChanged(int nodeid) throws ProvisioningAdapterException
This method is called when a configuration change event has occurred from any source. Typically, Traps sent from a device are converted to an event and that event is then identified for translation and translated into a generic configuration changed event.- Parameters:
nodeid
- a int.- Throws:
ProvisioningAdapterException
- if any.
-
init
void init() throws ProvisioningAdapterException
This method is called in case the adapter needs to perform some initialization prior to receiving calls from the AdapterManager.- Throws:
ProvisioningAdapterException
- if any.
-
-