Class CacheAutoStoreExample
- java.lang.Object
-
- org.apache.ignite.examples.datagrid.store.auto.CacheAutoStoreExample
-
public class CacheAutoStoreExample extends java.lang.ObjectDemonstrates usage of cache with underlying persistent store configured.This example uses
CacheJdbcPojoStoreas a persistent store.To start the example, you should:
- Start H2 database TCP server using
DbH2ServerStartup. - Start a few nodes using
ExampleNodeStartup. - Start example using
CacheAutoStoreExample.
Remote nodes can be started with
ExampleNodeStartupin another JVM which will start node withexamples/config/example-ignite.xmlconfiguration. - Start H2 database TCP server using
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCACHE_NAMECache name.
-
Constructor Summary
Constructors Constructor Description CacheAutoStoreExample()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Executes example.
-