Ask Your Question
0

How to implement my own datastore. Starting point

asked 2015-01-27 09:47:35 -0700

anu.nair gravatar image

Hi

I want to implement my own datastore and avoid using infinispan. Any examples or starting point. The below link doesn't give much information. If anyone had done that. please let me know. https://wiki.opendaylight.org/view/OpenDaylightController:MD-SAL:Architecture:DOMDataStore:PlugginginaDatastoreinto_MD-SAL

Thanks in advance

edit retag flag offensive close merge delete

Comments

If you don't like Infinispan, you may want to look at what's provided in the Helium release. There is a persisted data store offered with the clustering feature of this release. This page explains how to set this up: https://wiki.opendaylight.org/view/Running_and_testing_an_OpenDaylight_Cluster

tbachman ( 2015-02-02 16:35:37 -0700 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-03-13 04:08:36 -0700

Tony Tkacik gravatar image

updated 2015-03-13 04:08:51 -0700

Helium has two datastores currently present:

  • sal-inmemory-datastore - initial implementation of datastore, which stores all data on heap
  • sal-clustered-datastore - Clustered implementaion based on Akka, which uses inmemory datastore to store data.

Based on your type of implementation, you may want to implement Datastore APIs from sal-core-spi, or if that decomposition does not work for you, you may implement your own DataBroker (ideally DOMDataBroker).

But hugelly how the actual implementation of datastore will look-like will depends on your backing technology (in-memory is simple - because use YANG Data native format).

edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Follow
1 follower

Stats

Asked: 2015-01-27 09:47:35 -0700

Seen: 480 times

Last updated: Mar 13 '15