Class DependentJob<T extends org.opendaylight.yangtools.yang.binding.Identifiable>
- java.lang.Object
-
- org.opendaylight.ovsdb.hwvtepsouthbound.transact.DependentJob<T>
-
- Direct Known Subclasses:
DependentJob.ConfigWaitingJob
,DependentJob.OpWaitingJob
public abstract class DependentJob<T extends org.opendaylight.yangtools.yang.binding.Identifiable> extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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>
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description T
getData()
Map<Class<? extends org.opendaylight.yangtools.yang.binding.DataObject>,List<org.opendaylight.yangtools.yang.binding.InstanceIdentifier>>
getDependencies()
org.opendaylight.yangtools.yang.binding.InstanceIdentifier
getKey()
long
getTransactionId()
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()
void
onSuccess()
-
-
-
Method Detail
-
onDependencyResolved
protected abstract void onDependencyResolved(HwvtepOperationalState operationalState, TransactionBuilder transactionBuilder)
This call back method gets called when all its dependencies are resolved.- Parameters:
operationalState
- new current operational statetransactionBuilder
- transaction builder to create device transaction
-
isDependencyMet
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.- Parameters:
deviceInfo
- The device info of tis jobcls
- dependency type to be checked foriid
- instance identifier to be checked for- Returns:
- true if the dependency is met
-
getKey
public org.opendaylight.yangtools.yang.binding.InstanceIdentifier getKey()
-
getTransactionId
public long getTransactionId()
-
getDependencies
public Map<Class<? extends org.opendaylight.yangtools.yang.binding.DataObject>,List<org.opendaylight.yangtools.yang.binding.InstanceIdentifier>> getDependencies()
-
getData
public T getData()
-
isConfigWaitingJob
public boolean isConfigWaitingJob()
-
onFailure
public void onFailure()
-
onSuccess
public void onSuccess()
-
-