Interface SyncPlanPushStrategy
- All Known Implementing Classes:
SyncPlanPushStrategyFlatBatchImpl
,SyncPlanPushStrategyIncrementalImpl
public interface SyncPlanPushStrategy
Prescribes common synchronization plan execution strategy.
Implementations should be stateless.
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<Void>>
executeSyncStrategy
(com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<Void>> resultVehicle, SynchronizationDiffInput diffInput, SyncCrudCounters counters) Invoked to execute the synchronization strategy.
-
Method Details
-
executeSyncStrategy
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<Void>> executeSyncStrategy(com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<Void>> resultVehicle, SynchronizationDiffInput diffInput, SyncCrudCounters counters) Invoked to execute the synchronization strategy.- Parameters:
resultVehicle
- bootstrap future - execution will chain it's async calls to this onediffInput
- wraps all diff data required for any strategy ({add,remove,update} x {flow,group,meter})counters
- reference to internal one-shot statistics - summary off successfully pushed items shall be recorded here- Returns:
- last future of the chain
-