Class DataRegionsExample


  • public class DataRegionsExample
    extends java.lang.Object
    This example demonstrates how to tweak particular settings of Apache Ignite page memory using DataStorageConfiguration and set up several data regions for different caches with DataRegionConfiguration.

    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 ExampleNodeStartup in another JVM which passing examples/config/example-data-regions.xml configuration to it.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String REGION_30MB_MEMORY_MAPPED_FILE
      Name of the data region that creates a memory region mapped to a memory-mapped file.
      static java.lang.String REGION_40MB_EVICTION
      Name of the data region that creates a memory region limited by 40 MB with eviction enabled
      static java.lang.String REGION_DEFAULT
      Name of the default data region defined in 'example-data-regions.xml'.
    • 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

      • 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
    • Constructor Detail

      • DataRegionsExample

        public DataRegionsExample()
    • Method Detail

      • main

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