Class DataRegionsExample
- java.lang.Object
-
- org.apache.ignite.examples.datagrid.DataRegionsExample
-
public class DataRegionsExample extends java.lang.ObjectThis example demonstrates how to tweak particular settings of Apache Ignite page memory usingDataStorageConfigurationand set up several data regions for different caches withDataRegionConfiguration.Additional remote nodes can be started with special configuration file which enables P2P class loading:
'ignite.{sh|bat} example-data-regions.xml'.Alternatively you can run
ExampleNodeStartupin another JVM which passingexamples/config/example-data-regions.xmlconfiguration to it.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringREGION_30MB_MEMORY_MAPPED_FILEName of the data region that creates a memory region mapped to a memory-mapped file.static java.lang.StringREGION_40MB_EVICTIONName of the data region that creates a memory region limited by 40 MB with eviction enabledstatic java.lang.StringREGION_DEFAULTName of the default data region defined in 'example-data-regions.xml'.
-
Constructor Summary
Constructors Constructor Description DataRegionsExample()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)Executes example.
-
-
-
Field Detail
-
REGION_DEFAULT
public static final java.lang.String REGION_DEFAULT
Name of the default data region defined in 'example-data-regions.xml'.- See Also:
- Constant Field Values
-
REGION_40MB_EVICTION
public static final java.lang.String REGION_40MB_EVICTION
Name of the data region that creates a memory region limited by 40 MB with eviction enabled- See Also:
- Constant Field Values
-
REGION_30MB_MEMORY_MAPPED_FILE
public static final java.lang.String REGION_30MB_MEMORY_MAPPED_FILE
Name of the data region that creates a memory region mapped to a memory-mapped file.- 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.
-
-