Class PersistentStoreExample


  • public class PersistentStoreExample
    extends java.lang.Object
    This example demonstrates the usage of Apache Ignite Persistent Store.

    To execute this example you should start an instance of PersistentStoreExampleNodeStartup class which will start up an Apache Ignite remote server node with a proper configuration.

    When UPDATE parameter of this example is set to true, the example will populate the cache with some data and will then run a sample SQL query to fetch some results.

    When UPDATE parameter of this example is set to false, the example will run the SQL query against the cache without the initial data pre-loading from the store.

    You can populate the cache first with UPDATE set to true, then restart the nodes and run the example with UPDATE set to false to verify that Apache Ignite can work with the data that is in the persistence only.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PersistentStoreExample

        public PersistentStoreExample()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Parameters:
        args - Program arguments, ignored.
        Throws:
        java.lang.Exception - If failed.