Class CacheAutoStoreExample


  • public class CacheAutoStoreExample
    extends java.lang.Object
    Demonstrates usage of cache with underlying persistent store configured.

    This example uses CacheJdbcPojoStore as a persistent store.

    To start the example, you should:

    Remote nodes can be started with ExampleNodeStartup in another JVM which will start node with examples/config/example-ignite.xml configuration.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CACHE_NAME
      Cache name.
    • Method Summary

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

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

      • CACHE_NAME

        public static final java.lang.String CACHE_NAME
        Cache name.
    • Constructor Detail

      • CacheAutoStoreExample

        public CacheAutoStoreExample()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Executes example.
        Parameters:
        args - Command line arguments, none required.
        Throws:
        java.lang.Exception - If example execution failed.