public abstract class DependentJob<T extends org.opendaylight.yangtools.yang.binding.Identifiable> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DependentJob.ConfigWaitingJob<T extends org.opendaylight.yangtools.yang.binding.Identifiable> |
static class |
DependentJob.OpWaitingJob<T extends org.opendaylight.yangtools.yang.binding.Identifiable> |
Modifier and Type | Method and Description |
---|---|
T |
getData() |
org.opendaylight.yangtools.yang.binding.InstanceIdentifier |
getKey() |
boolean |
isConfigWaitingJob() |
protected abstract boolean |
isDependencyMet(HwvtepDeviceInfo deviceInfo,
Class<? extends org.opendaylight.yangtools.yang.binding.DataObject> cls,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier iid)
This method is to check if all the given dependency of this job or not
|
protected abstract void |
onDependencyResolved(HwvtepOperationalState operationalState,
TransactionBuilder transactionBuilder)
This call back method gets called when all its dependencies are resolved
|
void |
onFailure(TransactionBuilder deviceTransaction) |
void |
onSuccess(TransactionBuilder deviceTransaction) |
protected abstract void onDependencyResolved(HwvtepOperationalState operationalState, TransactionBuilder transactionBuilder)
operationalState
- new current operational statetransactionBuilder
- transaction builder to create device transactionprotected abstract boolean isDependencyMet(HwvtepDeviceInfo deviceInfo, Class<? extends org.opendaylight.yangtools.yang.binding.DataObject> cls, org.opendaylight.yangtools.yang.binding.InstanceIdentifier iid)
deviceInfo
- The device info of tis jobcls
- dependency type to be checked foriid
- instance identifier to be checked forpublic org.opendaylight.yangtools.yang.binding.InstanceIdentifier getKey()
public T getData()
public boolean isConfigWaitingJob()
public void onFailure(TransactionBuilder deviceTransaction)
public void onSuccess(TransactionBuilder deviceTransaction)
Copyright © 2018 OpenDaylight. All rights reserved.