Class AbstractTransactCommand<T extends org.opendaylight.yangtools.yang.binding.Identifiable,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,A>
-
- All Implemented Interfaces:
TransactCommand<T>
- Direct Known Subclasses:
LogicalRouterRemoveCommand
,LogicalRouterUpdateCommand
,LogicalSwitchRemoveCommand
,LogicalSwitchUpdateCommand
,McastMacsLocalRemoveCommand
,McastMacsLocalUpdateCommand
,McastMacsRemoteRemoveCommand
,McastMacsRemoteUpdateCommand
,PhysicalPortRemoveCommand
,PhysicalPortUpdateCommand
,PhysicalSwitchRemoveCommand
,PhysicalSwitchUpdateCommand
,TunnelRemoveCommand
,TunnelUpdateCommand
,UcastMacsLocalRemoveCommand
,UcastMacsLocalUpdateCommand
,UcastMacsRemoteRemoveCommand
,UcastMacsRemoteUpdateCommand
public abstract class AbstractTransactCommand<T extends org.opendaylight.yangtools.yang.binding.Identifiable,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
Fields Modifier and Type Field Description protected TransactionBuilder
deviceTransaction
protected HwvtepOperationalState
hwvtepOperationalState
protected static UUID
TXUUID
protected Map<TransactionBuilder,List<MdsalUpdate<T>>>
updates
-
Constructor Summary
Constructors Modifier Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
areEqual(T obj1, T obj2)
protected A
augmentation(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node)
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 @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.controller.md.sal.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.controller.md.sal.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)
<T> HwvtepDeviceInfo.DeviceData
fetchDeviceData(Class<? extends org.opendaylight.yangtools.yang.binding.Identifiable> cls, org.opendaylight.yangtools.yang.binding.InstanceIdentifier key)
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(A augmentation)
protected List<T>
getData(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node)
org.opendaylight.controller.md.sal.binding.api.DataBroker
getDataBroker()
protected UnMetDependencyGetter
getDependencyGetter()
protected HwvtepDeviceInfo
getDeviceInfo()
HwvtepDeviceInfo.DeviceData
getDeviceOpData(Class<? extends org.opendaylight.yangtools.yang.binding.Identifiable> cls, org.opendaylight.yangtools.yang.binding.InstanceIdentifier key)
protected TransactionBuilder
getDeviceTransaction()
protected String
getKeyStr(org.opendaylight.yangtools.yang.binding.InstanceIdentifier iid)
protected String
getNodeKeyStr(org.opendaylight.yangtools.yang.binding.InstanceIdentifier iid)
HwvtepOperationalState
getOperationalState()
HwvtepTableReader
getTableReader()
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 deviceTx)
void
onSuccess(TransactionBuilder deviceTx)
-
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
-
-
-
-
Field Detail
-
TXUUID
protected static final UUID TXUUID
-
hwvtepOperationalState
protected volatile HwvtepOperationalState hwvtepOperationalState
-
deviceTransaction
protected volatile TransactionBuilder deviceTransaction
-
updates
protected Map<TransactionBuilder,List<MdsalUpdate<T extends org.opendaylight.yangtools.yang.binding.Identifiable>>> updates
-
-
Constructor Detail
-
AbstractTransactCommand
protected AbstractTransactCommand()
-
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)
-
-
Method Detail
-
getOperationalState
public HwvtepOperationalState getOperationalState()
-
getDataBroker
public org.opendaylight.controller.md.sal.binding.api.DataBroker getDataBroker()
-
getChanges
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()
-
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.Identifiable>
-
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.Identifiable>
-
augmentation
protected A augmentation(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node)
-
getData
protected List<T> getData(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node)
-
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.controller.md.sal.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.controller.md.sal.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
protected Type getClassType()
-
getDependencyGetter
protected UnMetDependencyGetter 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
-
isRemoveCommand
protected boolean isRemoveCommand()
-
getDeviceInfo
protected HwvtepDeviceInfo getDeviceInfo()
-
getDeviceTransaction
protected TransactionBuilder getDeviceTransaction()
-
onSuccess
public void onSuccess(TransactionBuilder deviceTx)
- Specified by:
onSuccess
in interfaceTransactCommand<T extends org.opendaylight.yangtools.yang.binding.Identifiable>
-
onFailure
public void onFailure(TransactionBuilder deviceTx)
- Specified by:
onFailure
in interfaceTransactCommand<T extends org.opendaylight.yangtools.yang.binding.Identifiable>
-
onCommandSucceeded
protected void onCommandSucceeded()
-
onCommandFailed
protected void onCommandFailed()
-
fetchDeviceData
public <T> HwvtepDeviceInfo.DeviceData fetchDeviceData(Class<? extends org.opendaylight.yangtools.yang.binding.Identifiable> cls, org.opendaylight.yangtools.yang.binding.InstanceIdentifier key)
-
getNodeKeyStr
protected String getNodeKeyStr(org.opendaylight.yangtools.yang.binding.InstanceIdentifier iid)
-
getKeyStr
protected String getKeyStr(org.opendaylight.yangtools.yang.binding.InstanceIdentifier iid)
-
getDeviceOpData
public HwvtepDeviceInfo.DeviceData getDeviceOpData(Class<? extends org.opendaylight.yangtools.yang.binding.Identifiable> cls, org.opendaylight.yangtools.yang.binding.InstanceIdentifier key)
-
getTableReader
public HwvtepTableReader getTableReader()
-
-