SD-WAN

 View Only
last person joined: 3 days ago 

Forum to discuss HPE Aruba EdgeConnect SD-WAN and SD-Branch solutions. This includes SD-WAN Orchestration WAN edge network functions - routing, security, zone-based firewall, segmentation and WAN optimization, micro-branch solutions, best practics, and third-party integrations. All things SD-WAN!
Expand all | Collapse all

Persistant Storage with Cassandra

This thread has been viewed 0 times
  • 1.  Persistant Storage with Cassandra

    EMPLOYEE
    Posted Aug 26, 2016 02:01 PM

    Hi there,

    I'm trying to create a simple app internal app for the SDN controller. Within this App, I need to store some data, somewhere and the only way, I found was using cassandra. If you now a better way of doing it, please give me the hint. 

    While trying to implement this with cassandra I followed the programming guide, which is really hard, as you can't get the full code, and the programming has only some snippets, which is no enough, at least for me :)

    So I tryied to adapt the code from the example app, which can be created with the "gen-app" tool from the SDK. But there I ran into an issue and I'm not able to solve it. I created all classes and they looked the same as the exampe ones but when implementing the dao class:

    https://github.com/Hiob86/DHCPOptimizer/blob/master/dhcpo-dao/src/main/java/com/flomain/dhcpo/dao/impl/dhcpSubnetDao.java

    Line 7 has an error. 

    The error is telling me, that dhcpoSubnetEntity should extend Storable, but this is an Interface. I'm not able to find a solution for this. Did someone of you sow this kind of error? 

    Did someone of you has source code which he or she wants to share to get an understanding of how to implement this kind of 

    Any help is really appreciated. 

    Many thanks,
    Florian


    #Controller
    #persistent
    #cassandra
    #development
    #SDN


  • 2.  RE: Persistant Storage with Cassandra

    EMPLOYEE
    Posted Aug 26, 2016 03:14 PM

    I solved the issue by experimenting :)

    The problem was, that the entity class estends the BaseVersionedEntity which implemented the storable interface using the UUID opbject. In the example app, they used the long for object type instead of UUID. After changing this, the example APP and my APP is running. 

    Many thanks,
    Florian