public abstract class AbstractTransactCommand<T extends org.opendaylight.yangtools.yang.binding.Identifiable,Aug extends org.opendaylight.yangtools.yang.binding.Augmentation<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>> extends Object implements TransactCommand<T>
Modifier and Type | Field and Description |
---|---|
protected ThreadLocal<TransactionBuilder> |
threadLocalDeviceTransaction |
protected ThreadLocal<HwvtepOperationalState> |
threadLocalOperationalState |
protected static UUID |
TXUUID |
protected Map<TransactionBuilder,List<MdsalUpdate<T>>> |
updates |
Modifier | Constructor and Description |
---|---|
protected |
AbstractTransactCommand() |
|
AbstractTransactCommand(HwvtepOperationalState state,
Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>> changes) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
areEqual(T a,
T b) |
protected boolean |
cascadeDelete()
Tells if this object needs to be deleted if its dependent object gets deleted
Ex : LocalUcastMac and LocalMacstMac
|
void |
doDeviceTransaction(TransactionBuilder transaction,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodeIid,
T data,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier key,
Object... extraData) |
protected Map<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>,List<T>> |
extractRemoved(Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>> changes,
Class<T> class1) |
protected Map<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>,List<T>> |
extractUpdated(Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>> changes,
Class<T> class1) |
protected Aug |
getAugmentation(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node) |
Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>> |
getChanges() |
protected Type |
getClassType() |
protected List<T> |
getData(Aug augmentation) |
protected List<T> |
getData(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node) |
protected UnMetDependencyGetter |
getDependencyGetter() |
protected HwvtepDeviceInfo |
getDeviceInfo() |
protected TransactionBuilder |
getDeviceTransaction() |
HwvtepOperationalState |
getOperationalState() |
protected boolean |
isRemoveCommand() |
protected void |
onCommandFailed() |
protected void |
onCommandSucceeded() |
void |
onConfigUpdate(TransactionBuilder transaction,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodeIid,
T data,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier key,
Object... extraData) |
void |
onFailure(TransactionBuilder deviceTransaction) |
void |
onSuccess(TransactionBuilder deviceTransaction) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute
protected static final UUID TXUUID
protected ThreadLocal<HwvtepOperationalState> threadLocalOperationalState
protected ThreadLocal<TransactionBuilder> threadLocalDeviceTransaction
protected Map<TransactionBuilder,List<MdsalUpdate<T extends org.opendaylight.yangtools.yang.binding.Identifiable>>> updates
protected AbstractTransactCommand()
public AbstractTransactCommand(HwvtepOperationalState state, Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>> changes)
public HwvtepOperationalState getOperationalState()
public Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>> getChanges()
public void doDeviceTransaction(TransactionBuilder transaction, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodeIid, T data, org.opendaylight.yangtools.yang.binding.InstanceIdentifier key, Object... extraData)
doDeviceTransaction
in interface TransactCommand<T extends org.opendaylight.yangtools.yang.binding.Identifiable>
public void onConfigUpdate(TransactionBuilder transaction, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodeIid, T data, org.opendaylight.yangtools.yang.binding.InstanceIdentifier key, Object... extraData)
onConfigUpdate
in interface TransactCommand<T extends org.opendaylight.yangtools.yang.binding.Identifiable>
protected Aug getAugmentation(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node)
protected List<T> getData(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node)
protected Map<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>,List<T>> extractRemoved(Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>> changes, Class<T> class1)
protected Map<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>,List<T>> extractUpdated(Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>> changes, Class<T> class1)
protected Type getClassType()
protected UnMetDependencyGetter getDependencyGetter()
protected boolean cascadeDelete()
protected boolean isRemoveCommand()
protected HwvtepDeviceInfo getDeviceInfo()
protected TransactionBuilder getDeviceTransaction()
public void onSuccess(TransactionBuilder deviceTransaction)
onSuccess
in interface TransactCommand<T extends org.opendaylight.yangtools.yang.binding.Identifiable>
public void onFailure(TransactionBuilder deviceTransaction)
onFailure
in interface TransactCommand<T extends org.opendaylight.yangtools.yang.binding.Identifiable>
protected void onCommandSucceeded()
protected void onCommandFailed()
Copyright © 2018 OpenDaylight. All rights reserved.