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>>

    • 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

      • 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 interface TransactCommand<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 interface TransactCommand<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​(A augmentation)
      • 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()
      • areEqual

        protected boolean areEqual​(T obj1,
                                   T obj2)
      • 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()
      • 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)