Class DataStoreBackEnd
- java.lang.Object
-
- org.opendaylight.lispflowmapping.dsbackend.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 Summary
Constructors Constructor Description DataStoreBackEnd(org.opendaylight.mdsal.binding.api.DataBroker broker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAuthenticationKey(AuthenticationKey authenticationKey)
void
addMapping(Mapping mapping)
void
addXtrIdMapping(XtrIdMapping mapping)
void
closeTransactionChain()
void
createTransactionChain()
java.util.List<AuthenticationKey>
getAllAuthenticationKeys()
java.util.List<Mapping>
getAllMappings()
java.util.List<Mapping>
getAllMappings(org.opendaylight.mdsal.common.api.LogicalDatastoreType logicalDataStore)
java.lang.Long
getLastUpdateTimestamp()
void
onTransactionChainFailed(org.opendaylight.mdsal.binding.api.TransactionChain chain, org.opendaylight.mdsal.binding.api.Transaction transaction, java.lang.Throwable cause)
void
onTransactionChainSuccessful(org.opendaylight.mdsal.binding.api.TransactionChain chain)
void
removeAllConfigDatastoreContent()
void
removeAllDatastoreContent()
void
removeAllOperationalDatastoreContent()
void
removeAuthenticationKey(AuthenticationKey authenticationKey)
void
removeLastUpdateTimestamp()
void
removeMapping(Mapping mapping)
void
removeXtrIdMapping(XtrIdMapping mapping)
void
saveLastUpdateTimestamp()
void
updateAuthenticationKey(AuthenticationKey authenticationKey)
void
updateMapping(Mapping mapping)
-
-
-
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 interfaceorg.opendaylight.mdsal.binding.api.TransactionChainListener
-
onTransactionChainSuccessful
public void onTransactionChainSuccessful(org.opendaylight.mdsal.binding.api.TransactionChain chain)
- Specified by:
onTransactionChainSuccessful
in interfaceorg.opendaylight.mdsal.binding.api.TransactionChainListener
-
closeTransactionChain
public void closeTransactionChain()
-
-