Class CacheJdbcStoreExample
- java.lang.Object
-
- org.apache.ignite.examples.datagrid.store.jdbc.CacheJdbcStoreExample
-
public class CacheJdbcStoreExample extends java.lang.ObjectDemonstrates usage of cache with underlying persistent store configured.This example uses
CacheJdbcPersonStoreas 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
CacheJdbcStoreExample.
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 intMIN_MEMORYHeap size required to run this example.
-
Constructor Summary
Constructors Constructor Description CacheJdbcStoreExample()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Executes example.
-
-
-
Field Detail
-
MIN_MEMORY
public static final int MIN_MEMORY
Heap size required to run this example.- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws IgniteExceptionExecutes example.- Parameters:
args- Command line arguments, none required.- Throws:
IgniteException- If example execution failed.
-
-