Apache Ignite Source compilation Issue

classic Classic list List threaded Threaded
4 messages Options
bhargav bhargav
Reply | Threaded
Open this post in threaded view
|

Apache Ignite Source compilation Issue

This post has NOT been accepted by the mailing list yet.
Hi,

I m using apache ignite - data grid for caching and retrieving data. I want to write a layer custom code layer on top of this inorder to achieve flexibility with my requirement. I need to track down to the location in the code where the data is actually stored without being involved in off-heap, so that even I use it in my code rather than creating variables which are under heap zone. In order to attain that, I downloaded the source code (apache-ignite-1.5.0.final-src) and created a project in eclipse only for (apache-ignite-1.5.0.final-src\modules\core\src\main\java) files in this path in the source folder.  I even required source files for cache-api-1.0.0.jar as well, but couldnt get that any where. So decomplied the jar file to create source files. Added these files to project, but I see there are several issues in compiling the code. Could some one help me, how to proceed further??

Thanks a lot!!

Regards,
Bhargav
vkulichenko vkulichenko
Reply | Threaded
Open this post in threaded view
|

Re: Apache Ignite Source compilation Issue

Hi Bhargav,

First of all, can you please properly subscribe to the mailing list so that the community receives email notifications? Follow the instruction here: http://apache-ignite-users.70518.x6.nabble.com/mailing_list/MailingListOptions.jtp?forum=1

bhargav wrote
I m using apache ignite - data grid for caching and retrieving data. I want to write a layer custom code layer on top of this inorder to achieve flexibility with my requirement. I need to track down to the location in the code where the data is actually stored without being involved in off-heap, so that even I use it in my code rather than creating variables which are under heap zone. In order to attain that, I downloaded the source code (apache-ignite-1.5.0.final-src) and created a project in eclipse only for (apache-ignite-1.5.0.final-src\modules\core\src\main\java) files in this path in the source folder.  I even required source files for cache-api-1.0.0.jar as well, but couldnt get that any where. So decomplied the jar file to create source files. Added these files to project, but I see there are several issues in compiling the code. Could some one help me, how to proceed further??
Did you try to build with Maven as described in DEVNOTES? Does it work for you? If no, please provide the Maven log with the errors you get. Otherwise I assume that there is something wrong in your Eclipse project. Did you import it from pom.xml or created from scratch?

Also it sounds weird that you need to have cache-api sources, we just depend on this artifact and never build it. And I hardly believe it will work smoothly with the decompiled files.

-Val
bhargav bhargav
Reply | Threaded
Open this post in threaded view
|

Re: Apache Ignite Source compilation Issue

This post has NOT been accepted by the mailing list yet.
Hi,

Thanks for the reply. As you suspected, there is something wrong with my eclipse project. I have created the project from scratch, havent used pom.xml.

Now I m able to execute a sample caching process using the respective eclipse project.

Now let me tell you the purpose, I need to write an extension for ignite. Since the cached data is stored off-heap, even I would like to have the retrieved cache in my code using ignite also to be off-heap. With the retrieved cached data from ignite, there is a process to be executed, which I want to be off-heap using the same variables used in ignite for storing data, rather than created variables in my code.

Inorder to achieve this, I would like to move my code into ignite and execute within off-heap. Could you help me get to that file or the method in ignite, so that I can continue from there on.

Thanks
vkulichenko vkulichenko
Reply | Threaded
Open this post in threaded view
|

Re: Apache Ignite Source compilation Issue

Bhargav,

bhargav wrote
Now let me tell you the purpose, I need to write an extension for ignite. Since the cached data is stored off-heap, even I would like to have the retrieved cache in my code using ignite also to be off-heap. With the retrieved cached data from ignite, there is a process to be executed, which I want to be off-heap using the same variables used in ignite for storing data, rather than created variables in my code.

Inorder to achieve this, I would like to move my code into ignite and execute within off-heap. Could you help me get to that file or the method in ignite, so that I can continue from there on.
Can you elaborate what you mean by executing the code within off-heap? It's just a memory, it's storing the data, but not executing the code.

BTW, you're still not subscribed. Can you please do this? Your messages are not being posted to the mailing list.

-Val