public class HwvtepReconciliationTask extends ReconciliationTask
configData, connectionManager, nodeIid, reconciliationManager| Constructor and Description | 
|---|
HwvtepReconciliationTask(ReconciliationManager reconciliationManager,
                        HwvtepConnectionManager connectionManager,
                        org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> nodeId,
                        org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node psNode,
                        HwvtepConnectionInstance connectionInstance,
                        org.opendaylight.controller.md.sal.binding.api.DataBroker db)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
checkReadinessAndProcess()
Extended task should implement the logic that check the readiness of the task
 for execution. 
 | 
void | 
doRetry(boolean wasPreviousAttemptSuccessful)
Extended task should implement the logic that decides whether retry for the task
 is required or not. 
 | 
boolean | 
reconcileConfiguration(HwvtepConnectionManager connectionManagerOfDevice)
Method contains task reconciliation logic. 
 | 
long | 
retryDelayInMills()
Method returns the time interval for retrying the failed task. 
 | 
equals, hashCode, run, toStringpublic HwvtepReconciliationTask(ReconciliationManager reconciliationManager, HwvtepConnectionManager connectionManager, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> nodeId, org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node psNode, HwvtepConnectionInstance connectionInstance, org.opendaylight.controller.md.sal.binding.api.DataBroker db)
public boolean reconcileConfiguration(HwvtepConnectionManager connectionManagerOfDevice)
ReconciliationTaskConnectionReconciliationTask.reconcileConfiguration(HwvtepConnectionManager)
 for example.reconcileConfiguration in class ReconciliationTaskconnectionManagerOfDevice - Connection manager to get connection instance of the devicepublic void doRetry(boolean wasPreviousAttemptSuccessful)
ReconciliationTaskReconciliationManager.enqueue(ReconciliationTask).
 If retry requires delay, use ReconciliationManager.enqueueForRetry(ReconciliationTask)
 and specify the delay using ReconciliationTask.retryDelayInMills().
 If data store operation is required to decide if the task need retry, please implement
 it as an async operation and submit the task on the callback of the future.
 
 Note:Please do not write blocking data store operations
 ConnectionReconciliationTask.doRetry(boolean)
 
doRetry in class ReconciliationTaskwasPreviousAttemptSuccessful - Status of the previous attemptpublic void checkReadinessAndProcess()
ReconciliationTaskReconciliationManager.enqueue(ReconciliationTask).
 If task is not ready for execution yet, enqueue it again for delayed execution
 using ReconciliationManager.enqueueForRetry(ReconciliationTask).
 To check the readiness of the task, if the data store operation is required, please
 implement it as an async operation and submit the task on the callback of the future.
 
 Note:Please do not write blocking data store operations
 ConnectionReconciliationTask.doRetry(boolean)
 
checkReadinessAndProcess in class ReconciliationTaskpublic long retryDelayInMills()
ReconciliationTaskReconciliationTask.doRetry(boolean)retryDelayInMills in class ReconciliationTaskCopyright © 2018 OpenDaylight. All rights reserved.