[jira] [Created] (IGNITE-6026) init cluster for Ignite Ignite Persistence by xml

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

[jira] [Created] (IGNITE-6026) init cluster for Ignite Ignite Persistence by xml

Anton Vinogradov (Jira)
Alex Negashev created IGNITE-6026:
-------------------------------------

             Summary: init cluster for Ignite  Ignite Persistence by xml
                 Key: IGNITE-6026
                 URL: https://issues.apache.org/jira/browse/IGNITE-6026
             Project: Ignite
          Issue Type: Wish
          Components: cache, examples, persistence
    Affects Versions: 2.1
         Environment: ignite in docker with zk
            Reporter: Alex Negashev


Hello! We use Ignite 2.1 and would like to use Ignite Persistence, how i can do this with out java code? xml only.
Example attached.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
Reply | Threaded
Open this post in threaded view
|

Re: [jira] [Created] (IGNITE-6026) init cluster for Ignite Ignite Persistence by xml

Alexey Kukushkin-2
Hi Alex,
The main idea from the API perspective is that Ignite Persistence is transparent for the API. After you enable persistence all your APIs including get/put, SQL, etc would work as before. 
Enable Persistence with 1 line:
<property name="persistentStoreConfiguration">
    <bean class="org.apache.ignite.configuration.PersistentStoreConfiguration"/>
</property>

And then activate cluster explicitly - With script:
${IGNITE_HOME}/bin/control.sh --activate

OR in the code:
ignite.active(true);


Best regards, Alexey


On Thursday, August 10, 2017, 3:50:35 PM GMT+3, Alex Negashev (JIRA) <[hidden email]> wrote:

Alex Negashev created IGNITE-6026:
-------------------------------------

            Summary: init cluster for Ignite  Ignite Persistence by xml
                Key: IGNITE-6026
                URL: https://issues.apache.org/jira/browse/IGNITE-6026
            Project: Ignite
          Issue Type: Wish
          Components: cache, examples, persistence
    Affects Versions: 2.1
        Environment: ignite in docker with zk
            Reporter: Alex Negashev


Hello! We use Ignite 2.1 and would like to use Ignite Persistence, how i can do this with out java code? xml only.
Example attached.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)