Package org.opennms.netmgt.provision
Class WsManAssetProvisioningAdapter
- java.lang.Object
-
- org.opennms.netmgt.provision.SimpleQueuedProvisioningAdapter
-
- org.opennms.netmgt.provision.SimplerQueuedProvisioningAdapter
-
- org.opennms.netmgt.provision.WsManAssetProvisioningAdapter
-
- All Implemented Interfaces:
ProvisioningAdapter
public class WsManAssetProvisioningAdapter extends SimplerQueuedProvisioningAdapter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.netmgt.provision.SimpleQueuedProvisioningAdapter
SimpleQueuedProvisioningAdapter.AdapterOperationQueue, SimpleQueuedProvisioningAdapter.AdapterOperationQueueListener
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.provision.SimplerQueuedProvisioningAdapter
m_delay, m_template, m_timeUnit
-
-
Constructor Summary
Constructors Constructor Description WsManAssetProvisioningAdapter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doAddNode(int nodeId)
doAddNodevoid
doNotifyConfigChange(int nodeId)
doNotifyConfigChangevoid
doUpdateNode(int nodeId)
doUpdateNodeprotected static java.lang.String
formatPropertiesAsString(java.util.Properties props)
java.lang.String
getName()
getNamevoid
handleReloadEvent(IEvent e)
boolean
isNodeReady(org.opennms.netmgt.provision.SimpleQueuedProvisioningAdapter.AdapterOperation op)
Adapters extending this class must implement this method.void
setNodeDao(NodeDao dao)
void
setWsmanAssetAdapterConfig(WsManAssetAdapterConfig mConfig)
void
setWsmanClientFactory(org.opennms.core.wsman.WSManClientFactory factory)
-
Methods inherited from class org.opennms.netmgt.provision.SimplerQueuedProvisioningAdapter
doDeleteNode, init, processPendingOperationForNode, setDelay, setTemplate, setTimeUnit
-
Methods inherited from class org.opennms.netmgt.provision.SimpleQueuedProvisioningAdapter
addNode, deleteNode, getOperationQueue, nodeConfigChanged, updateNode
-
-
-
-
Method Detail
-
isNodeReady
public boolean isNodeReady(org.opennms.netmgt.provision.SimpleQueuedProvisioningAdapter.AdapterOperation op)
Description copied from class:SimplerQueuedProvisioningAdapter
Adapters extending this class must implement this method. This method is called in the run method of an operation to insure that the adapter is ready for the operation to run for the associated node. The adapter is responsible for setting the schedule, however, something could have altered the state of readiness for the provisioning system in the meantime. If this method returns false, the operation is rescheduled with the and the attempts remaining on the operation are not decremented.- Overrides:
isNodeReady
in classSimplerQueuedProvisioningAdapter
- Parameters:
op
- aSimpleQueuedProvisioningAdapter.AdapterOperation
object.- Returns:
- a boolean representing the state of readiness from the underlying system integrated by the implementing adapter.
-
doAddNode
public void doAddNode(int nodeId) throws ProvisioningAdapterException
Description copied from class:SimplerQueuedProvisioningAdapter
doAddNode
- Overrides:
doAddNode
in classSimplerQueuedProvisioningAdapter
- Parameters:
nodeId
- a int.- Throws:
ProvisioningAdapterException
-
formatPropertiesAsString
protected static java.lang.String formatPropertiesAsString(java.util.Properties props)
-
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
-
setNodeDao
public void setNodeDao(NodeDao dao)
-
setWsmanAssetAdapterConfig
public void setWsmanAssetAdapterConfig(WsManAssetAdapterConfig mConfig)
-
setWsmanClientFactory
public void setWsmanClientFactory(org.opennms.core.wsman.WSManClientFactory factory)
-
getName
public java.lang.String getName()
Description copied from class:SimplerQueuedProvisioningAdapter
getName
- Specified by:
getName
in interfaceProvisioningAdapter
- Overrides:
getName
in classSimplerQueuedProvisioningAdapter
- Returns:
- a
String
object.
-
handleReloadEvent
public void handleReloadEvent(IEvent e)
-
-