Class PuppetProvisioningAdapter

    • Constructor Detail

      • PuppetProvisioningAdapter

        public PuppetProvisioningAdapter()
    • Method Detail

      • isNodeReady

        public boolean isNodeReady​(org.opennms.netmgt.provision.SimpleQueuedProvisioningAdapter.AdapterOperation op)
        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.
        Specified by:
        isNodeReady in class SimpleQueuedProvisioningAdapter
        Parameters:
        op - a SimpleQueuedProvisioningAdapter.AdapterOperation object.
        Returns:
        a boolean representing the state of readiness from the underlying system integrated by the implementing adapter.
      • processPendingOperationForNode

        public void processPendingOperationForNode​(org.opennms.netmgt.provision.SimpleQueuedProvisioningAdapter.AdapterOperation op)
                                            throws ProvisioningAdapterException
        The class implements the API and therefore the concrete class implements this method to handle dequeued operations. The concrete implementation should check the operation type to derive the its behavior.
        Specified by:
        processPendingOperationForNode in class SimpleQueuedProvisioningAdapter
        Parameters:
        op - a SimpleQueuedProvisioningAdapter.AdapterOperation object.
        Throws:
        ProvisioningAdapterException - if any.