Class DataStoreBackEnd

java.lang.Object
org.opendaylight.lispflowmapping.dsbackend.DataStoreBackEnd
All Implemented Interfaces:
EventListener, org.opendaylight.mdsal.binding.api.TransactionChainListener

public class DataStoreBackEnd extends 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 Details

    • DataStoreBackEnd

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

    • 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 List<Mapping> getAllMappings()
    • getAllMappings

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

      public List<AuthenticationKey> getAllAuthenticationKeys()
    • saveLastUpdateTimestamp

      public void saveLastUpdateTimestamp()
    • removeLastUpdateTimestamp

      public void removeLastUpdateTimestamp()
    • getLastUpdateTimestamp

      public Long getLastUpdateTimestamp()
    • onTransactionChainFailed

      public void onTransactionChainFailed(org.opendaylight.mdsal.binding.api.TransactionChain chain, org.opendaylight.mdsal.binding.api.Transaction transaction, 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()