Class AbstractTransactCommand<T extends org.opendaylight.yangtools.yang.binding.KeyAware<I> & org.opendaylight.yangtools.yang.binding.DataObject,I extends org.opendaylight.yangtools.yang.binding.Key<T>,A 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>>
java.lang.Object
org.opendaylight.ovsdb.hwvtepsouthbound.transact.AbstractTransactCommand<T,I,A>
- All Implemented Interfaces:
TransactCommand<T>
- Direct Known Subclasses:
LogicalRouterRemoveCommand
,LogicalRouterUpdateCommand
,LogicalSwitchRemoveCommand
,LogicalSwitchUcastsRemoveCommand
,LogicalSwitchUpdateCommand
,McastMacsLocalRemoveCommand
,McastMacsLocalUpdateCommand
,McastMacsRemoteRemoveCommand
,McastMacsRemoteUpdateCommand
,PhysicalPortRemoveCommand
,PhysicalPortUpdateCommand
,PhysicalSwitchRemoveCommand
,PhysicalSwitchUpdateCommand
,PlainLogicalSwitchRemoveCmd
,TunnelRemoveCommand
,TunnelUpdateCommand
,UcastMacsLocalRemoveCommand
,UcastMacsLocalUpdateCommand
,UcastMacsRemoteRemoveCommand
,UcastMacsRemoteUpdateCommand
public abstract class AbstractTransactCommand<T extends org.opendaylight.yangtools.yang.binding.KeyAware<I> & org.opendaylight.yangtools.yang.binding.DataObject,I extends org.opendaylight.yangtools.yang.binding.Key<T>,A 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>
-
Field Summary
Modifier and TypeFieldDescriptionprotected TransactionBuilder
protected HwvtepOperationalState
protected static final UUID
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractTransactCommand
(HwvtepOperationalState state, Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>> changes) -
Method Summary
Modifier and TypeMethodDescription<K extends org.opendaylight.yangtools.yang.binding.KeyAware>
voidaddJobToQueue
(DependentJob<K> job) protected boolean
protected A
augmentation
(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node) protected boolean
Tells if this object needs to be deleted if its dependent object gets deleted Ex : LocalUcastMac and LocalMacstMac.void
clearConfigData
(Class<? extends org.opendaylight.yangtools.yang.binding.KeyAware> cls, org.opendaylight.yangtools.yang.binding.InstanceIdentifier key) 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 @NonNull 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.mdsal.binding.api.DataTreeModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>> modification, Class<T> class1) protected @NonNull 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.mdsal.binding.api.DataTreeModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>> modification, Class<T> class1) fetchDeviceData
(Class<? extends org.opendaylight.yangtools.yang.binding.KeyAware> cls, org.opendaylight.yangtools.yang.binding.InstanceIdentifier key) Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>>
protected Type
getClone()
getConfigData
(Class<? extends org.opendaylight.yangtools.yang.binding.KeyAware> cls, org.opendaylight.yangtools.yang.binding.InstanceIdentifier key) getData
(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node) org.opendaylight.mdsal.binding.api.DataBroker
protected UnMetDependencyGetter<T>
protected HwvtepDeviceInfo
getDeviceOpData
(Class<? extends org.opendaylight.yangtools.yang.binding.KeyAware> cls, org.opendaylight.yangtools.yang.binding.InstanceIdentifier key) protected TransactionBuilder
protected String
protected String
getLsKeyStr
(org.opendaylight.yangtools.yang.binding.InstanceIdentifier iid) protected String
getNodeKeyStr
(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<T> iid) protected boolean
void
markKeyAsInTransit
(Class<? extends org.opendaylight.yangtools.yang.binding.KeyAware> cls, org.opendaylight.yangtools.yang.binding.InstanceIdentifier key) protected void
protected void
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 deviceTx) void
onSuccess
(TransactionBuilder deviceTx) ops()
void
updateConfigData
(Class<? extends org.opendaylight.yangtools.yang.binding.KeyAware> cls, org.opendaylight.yangtools.yang.binding.InstanceIdentifier key, Object data) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opendaylight.ovsdb.hwvtepsouthbound.transact.TransactCommand
execute, retry
-
Field Details
-
TXUUID
-
hwvtepOperationalState
-
deviceTransaction
-
-
Constructor Details
-
AbstractTransactCommand
protected AbstractTransactCommand() -
AbstractTransactCommand
public AbstractTransactCommand(HwvtepOperationalState state, Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>> changes)
-
-
Method Details
-
getOperationalState
-
getDataBroker
public org.opendaylight.mdsal.binding.api.DataBroker getDataBroker() -
getChanges
public Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>> getChanges() -
ops
-
doDeviceTransaction
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) - Specified by:
doDeviceTransaction
in interfaceTransactCommand<T extends org.opendaylight.yangtools.yang.binding.KeyAware<I> & org.opendaylight.yangtools.yang.binding.DataObject>
-
onConfigUpdate
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) - Specified by:
onConfigUpdate
in interfaceTransactCommand<T extends org.opendaylight.yangtools.yang.binding.KeyAware<I> & org.opendaylight.yangtools.yang.binding.DataObject>
-
augmentation
protected A augmentation(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node) -
getData
-
getData
-
extractRemoved
protected @NonNull 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.mdsal.binding.api.DataTreeModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>> modification, Class<T> class1) -
extractUpdated
protected @NonNull 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.mdsal.binding.api.DataTreeModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>> modification, Class<T> class1) -
getClassType
-
areEqual
-
getDependencyGetter
-
cascadeDelete
protected boolean cascadeDelete()Tells if this object needs to be deleted if its dependent object gets deleted Ex : LocalUcastMac and LocalMacstMac.- Returns:
- true if this object needs to be deleted if its dependent object gets deleted
-
isDeleteCmd
protected boolean isDeleteCmd() -
getDeviceInfo
-
getDeviceTransaction
-
onSuccess
- Specified by:
onSuccess
in interfaceTransactCommand<T extends org.opendaylight.yangtools.yang.binding.KeyAware<I> & org.opendaylight.yangtools.yang.binding.DataObject>
-
onFailure
- Specified by:
onFailure
in interfaceTransactCommand<T extends org.opendaylight.yangtools.yang.binding.KeyAware<I> & org.opendaylight.yangtools.yang.binding.DataObject>
-
onCommandSucceeded
protected void onCommandSucceeded() -
onCommandFailed
protected void onCommandFailed() -
fetchDeviceData
public <T> HwvtepDeviceInfo.DeviceData fetchDeviceData(Class<? extends org.opendaylight.yangtools.yang.binding.KeyAware> cls, org.opendaylight.yangtools.yang.binding.InstanceIdentifier key) -
addJobToQueue
public <K extends org.opendaylight.yangtools.yang.binding.KeyAware> void addJobToQueue(DependentJob<K> job) -
markKeyAsInTransit
public void markKeyAsInTransit(Class<? extends org.opendaylight.yangtools.yang.binding.KeyAware> cls, org.opendaylight.yangtools.yang.binding.InstanceIdentifier key) -
getDeviceOpData
public HwvtepDeviceInfo.DeviceData getDeviceOpData(Class<? extends org.opendaylight.yangtools.yang.binding.KeyAware> cls, org.opendaylight.yangtools.yang.binding.InstanceIdentifier key) -
clearConfigData
public void clearConfigData(Class<? extends org.opendaylight.yangtools.yang.binding.KeyAware> cls, org.opendaylight.yangtools.yang.binding.InstanceIdentifier key) -
getConfigData
public HwvtepDeviceInfo.DeviceData getConfigData(Class<? extends org.opendaylight.yangtools.yang.binding.KeyAware> cls, org.opendaylight.yangtools.yang.binding.InstanceIdentifier key) -
updateConfigData
-
getClone
-
getTableReader
-
getConnectionInstance
-
newOperState
-
getNodeKeyStr
-
getKeyStr
-
getLsKeyStr
-