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 voiddoAddNode(int nodeId)doAddNodevoiddoNotifyConfigChange(int nodeId)doNotifyConfigChangevoiddoUpdateNode(int nodeId)doUpdateNodeprotected static StringformatPropertiesAsString(Properties props)StringgetName()getNamevoidhandleReloadEvent(IEvent e)booleanisNodeReady(org.opennms.netmgt.provision.SimpleQueuedProvisioningAdapter.AdapterOperation op)Adapters extending this class must implement this method.voidsetNodeDao(NodeDao dao)voidsetWsmanAssetAdapterConfig(WsManAssetAdapterConfig mConfig)voidsetWsmanClientFactory(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:SimplerQueuedProvisioningAdapterAdapters 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:
isNodeReadyin classSimplerQueuedProvisioningAdapter- Parameters:
op- aSimpleQueuedProvisioningAdapter.AdapterOperationobject.- Returns:
- a boolean representing the state of readiness from the underlying system integrated by the implementing adapter.
-
doAddNode
public void doAddNode(int nodeId) throws ProvisioningAdapterExceptionDescription copied from class:SimplerQueuedProvisioningAdapterdoAddNode
- Overrides:
doAddNodein classSimplerQueuedProvisioningAdapter- Parameters:
nodeId- a int.- Throws:
ProvisioningAdapterException
-
formatPropertiesAsString
protected static String formatPropertiesAsString(Properties props)
-
doUpdateNode
public void doUpdateNode(int nodeId) throws ProvisioningAdapterExceptionDescription copied from class:SimplerQueuedProvisioningAdapterdoUpdateNode
- Overrides:
doUpdateNodein classSimplerQueuedProvisioningAdapter- Parameters:
nodeId- a int.- Throws:
ProvisioningAdapterException
-
doNotifyConfigChange
public void doNotifyConfigChange(int nodeId) throws ProvisioningAdapterExceptionDescription copied from class:SimplerQueuedProvisioningAdapterdoNotifyConfigChange
- Overrides:
doNotifyConfigChangein 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 String getName()
Description copied from class:SimplerQueuedProvisioningAdaptergetName
- Specified by:
getNamein interfaceProvisioningAdapter- Overrides:
getNamein classSimplerQueuedProvisioningAdapter- Returns:
- a
Stringobject.
-
handleReloadEvent
public void handleReloadEvent(IEvent e)
-
-