Software Defined Networking
1753641 Members
4867 Online
108798 Solutions
New Discussion

Re: Cassandra---DataStoreService<DatastoreContext>

 
youngnr
Occasional Contributor

Cassandra---DataStoreService<DatastoreContext>

When I tried to reference the service( DataStoreService<DatastoreContext> )  using the code

-------------------------------------------------CODE---------------------------------------------------

@Reference(name = "StorageService", policy = ReferencePolicy.DYNAMIC,

                          cardinality = ReferenceCardinality.MANDATORY_UNARY)

private  volatile DataStoreService<DataStoreContext> service;

-----------------------------------------------------------------------------------------------------------

 

I wrote the bindStorageService and unbindStorageService function, still don't get the DataStoreService.

But when i reference the ControllerService in the same way, it worked! 

 

I'm confused about how to get the DataStoreService, OR , should i try to manually constructor the class DataStoreManager?

 

3 REPLIES 3
sdnindia
Trusted Contributor

Re: Cassandra---DataStoreService<DatastoreContext>

Hello youngnr,

 

Could you please share more code?

Please do let us know  if your problem is solved.

 

If you have more questions on the same topic please do reply on the same thread or open a new post if new topic.

 

Thanks,

HP SDN Team

--jd--
Occasional Advisor

Re: Cassandra---DataStoreService<DatastoreContext>

Just want to add that the code mentioned is from the programming guide. The Guide mentions a demo application for cassandra which I would assume would be fully documented since it's mentioned but I don't think it is and a lot of searching through the resources provided hasn't turned up anything useful. 

 

Can the demo source be provided?

sdnindia
Trusted Contributor

Re: Cassandra---DataStoreService<DatastoreContext>

Hello jd,

 

Apologies for the delay.

 

Please let us know if your problem is solved or you still facing some issue.

 

 

If you have more questions on the same topic please do reply on the same thread or open a new post if new topic.

 

Thanks,

HP SDN Team