Class BindingDOMDataBrokerAdapter

  • All Implemented Interfaces:
    AutoCloseable, org.opendaylight.controller.md.sal.binding.api.BindingService, org.opendaylight.controller.md.sal.binding.api.DataBroker, org.opendaylight.controller.md.sal.binding.api.DataTreeChangeService, org.opendaylight.controller.md.sal.binding.api.TransactionFactory, org.opendaylight.controller.md.sal.common.api.data.AsyncDataBroker<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,​org.opendaylight.yangtools.yang.binding.DataObject>, org.opendaylight.controller.md.sal.common.api.data.AsyncDataTransactionFactory<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,​org.opendaylight.yangtools.yang.binding.DataObject>, org.opendaylight.controller.md.sal.common.api.data.TransactionChainFactory<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,​org.opendaylight.yangtools.yang.binding.DataObject>, org.opendaylight.controller.sal.binding.api.BindingAwareService, org.opendaylight.yangtools.concepts.Delegator<org.opendaylight.controller.md.sal.dom.api.DOMDataBroker>

    @Deprecated(forRemoval=true)
    public class BindingDOMDataBrokerAdapter
    extends AbstractForwardedDataBroker
    implements org.opendaylight.controller.md.sal.binding.api.DataBroker, org.opendaylight.controller.md.sal.binding.api.DataTreeChangeService
    Deprecated, for removal: This API element is subject to removal in a future version.
    The DataBrokerImpl simply defers to the DOMDataBroker for all its operations. All transactions and listener registrations are wrapped by the DataBrokerImpl to allow binding aware components to use the DataBroker transparently.

    Besides this the DataBrokerImpl and it's collaborators also cache data that is already transformed from the binding independent to binding aware format

    • Constructor Summary

      Constructors 
      Constructor Description
      BindingDOMDataBrokerAdapter​(org.opendaylight.controller.md.sal.dom.api.DOMDataBroker domDataBroker, BindingToNormalizedNodeCodec codec)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      org.opendaylight.controller.md.sal.binding.api.BindingTransactionChain createTransactionChain​(org.opendaylight.controller.md.sal.common.api.data.TransactionChainListener listener)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      org.opendaylight.controller.md.sal.binding.api.ReadOnlyTransaction newReadOnlyTransaction()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      org.opendaylight.controller.md.sal.binding.api.ReadWriteTransaction newReadWriteTransaction()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      org.opendaylight.controller.md.sal.binding.api.WriteTransaction newWriteOnlyTransaction()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      <T extends org.opendaylight.yangtools.yang.binding.DataObject,​L extends org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<T>>
      org.opendaylight.yangtools.concepts.ListenerRegistration<L>
      registerDataTreeChangeListener​(org.opendaylight.controller.md.sal.binding.api.DataTreeIdentifier<T> treeId, L listener)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
    • Constructor Detail

      • BindingDOMDataBrokerAdapter

        public BindingDOMDataBrokerAdapter​(org.opendaylight.controller.md.sal.dom.api.DOMDataBroker domDataBroker,
                                           BindingToNormalizedNodeCodec codec)
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • newReadOnlyTransaction

        public org.opendaylight.controller.md.sal.binding.api.ReadOnlyTransaction newReadOnlyTransaction()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        newReadOnlyTransaction in interface org.opendaylight.controller.md.sal.common.api.data.AsyncDataBroker<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,​org.opendaylight.yangtools.yang.binding.DataObject>
        Specified by:
        newReadOnlyTransaction in interface org.opendaylight.controller.md.sal.common.api.data.AsyncDataTransactionFactory<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,​org.opendaylight.yangtools.yang.binding.DataObject>
        Specified by:
        newReadOnlyTransaction in interface org.opendaylight.controller.md.sal.binding.api.DataBroker
        Specified by:
        newReadOnlyTransaction in interface org.opendaylight.controller.md.sal.binding.api.TransactionFactory
      • newReadWriteTransaction

        public org.opendaylight.controller.md.sal.binding.api.ReadWriteTransaction newReadWriteTransaction()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        newReadWriteTransaction in interface org.opendaylight.controller.md.sal.common.api.data.AsyncDataBroker<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,​org.opendaylight.yangtools.yang.binding.DataObject>
        Specified by:
        newReadWriteTransaction in interface org.opendaylight.controller.md.sal.common.api.data.AsyncDataTransactionFactory<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,​org.opendaylight.yangtools.yang.binding.DataObject>
        Specified by:
        newReadWriteTransaction in interface org.opendaylight.controller.md.sal.binding.api.DataBroker
        Specified by:
        newReadWriteTransaction in interface org.opendaylight.controller.md.sal.binding.api.TransactionFactory
      • newWriteOnlyTransaction

        public org.opendaylight.controller.md.sal.binding.api.WriteTransaction newWriteOnlyTransaction()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        newWriteOnlyTransaction in interface org.opendaylight.controller.md.sal.common.api.data.AsyncDataBroker<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,​org.opendaylight.yangtools.yang.binding.DataObject>
        Specified by:
        newWriteOnlyTransaction in interface org.opendaylight.controller.md.sal.common.api.data.AsyncDataTransactionFactory<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,​org.opendaylight.yangtools.yang.binding.DataObject>
        Specified by:
        newWriteOnlyTransaction in interface org.opendaylight.controller.md.sal.binding.api.DataBroker
        Specified by:
        newWriteOnlyTransaction in interface org.opendaylight.controller.md.sal.binding.api.TransactionFactory
      • createTransactionChain

        public org.opendaylight.controller.md.sal.binding.api.BindingTransactionChain createTransactionChain​(org.opendaylight.controller.md.sal.common.api.data.TransactionChainListener listener)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        createTransactionChain in interface org.opendaylight.controller.md.sal.binding.api.DataBroker
        Specified by:
        createTransactionChain in interface org.opendaylight.controller.md.sal.common.api.data.TransactionChainFactory<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?>,​org.opendaylight.yangtools.yang.binding.DataObject>
      • toString

        public String toString()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Overrides:
        toString in class Object
      • registerDataTreeChangeListener

        public <T extends org.opendaylight.yangtools.yang.binding.DataObject,​L extends org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<T>> org.opendaylight.yangtools.concepts.ListenerRegistration<L> registerDataTreeChangeListener​(org.opendaylight.controller.md.sal.binding.api.DataTreeIdentifier<T> treeId,
                                                                                                                                                                                                                                                                  L listener)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Specified by:
        registerDataTreeChangeListener in interface org.opendaylight.controller.md.sal.binding.api.DataTreeChangeService