Class DataStoreBackEnd

  • All Implemented Interfaces:
    java.util.EventListener, org.opendaylight.mdsal.binding.api.TransactionChainListener

    public class DataStoreBackEnd
    extends java.lang.Object
    implements org.opendaylight.mdsal.binding.api.TransactionChainListener
    Stores data coming from the mapping database RPCs into the MD-SAL datastore.
    Author:
    Lorand Jakab
    • Constructor Detail

      • DataStoreBackEnd

        public DataStoreBackEnd​(org.opendaylight.mdsal.binding.api.DataBroker broker)
    • Method Detail

      • createTransactionChain

        public void createTransactionChain()
      • addAuthenticationKey

        public void addAuthenticationKey​(AuthenticationKey authenticationKey)
      • addMapping

        public void addMapping​(Mapping mapping)
      • addXtrIdMapping

        public void addXtrIdMapping​(XtrIdMapping mapping)
      • removeAuthenticationKey

        public void removeAuthenticationKey​(AuthenticationKey authenticationKey)
      • removeMapping

        public void removeMapping​(Mapping mapping)
      • removeXtrIdMapping

        public void removeXtrIdMapping​(XtrIdMapping mapping)
      • removeAllDatastoreContent

        public void removeAllDatastoreContent()
      • removeAllConfigDatastoreContent

        public void removeAllConfigDatastoreContent()
      • removeAllOperationalDatastoreContent

        public void removeAllOperationalDatastoreContent()
      • updateAuthenticationKey

        public void updateAuthenticationKey​(AuthenticationKey authenticationKey)
      • updateMapping

        public void updateMapping​(Mapping mapping)
      • getAllMappings

        public java.util.List<Mapping> getAllMappings()
      • getAllMappings

        public java.util.List<Mapping> getAllMappings​(org.opendaylight.mdsal.common.api.LogicalDatastoreType logicalDataStore)
      • getAllAuthenticationKeys

        public java.util.List<AuthenticationKey> getAllAuthenticationKeys()
      • saveLastUpdateTimestamp

        public void saveLastUpdateTimestamp()
      • removeLastUpdateTimestamp

        public void removeLastUpdateTimestamp()
      • getLastUpdateTimestamp

        public java.lang.Long getLastUpdateTimestamp()
      • onTransactionChainFailed

        public void onTransactionChainFailed​(org.opendaylight.mdsal.binding.api.TransactionChain chain,
                                             org.opendaylight.mdsal.binding.api.Transaction transaction,
                                             java.lang.Throwable cause)
        Specified by:
        onTransactionChainFailed in interface org.opendaylight.mdsal.binding.api.TransactionChainListener
      • onTransactionChainSuccessful

        public void onTransactionChainSuccessful​(org.opendaylight.mdsal.binding.api.TransactionChain chain)
        Specified by:
        onTransactionChainSuccessful in interface org.opendaylight.mdsal.binding.api.TransactionChainListener
      • closeTransactionChain

        public void closeTransactionChain()