Class VolatilePageMemoryStorageExample


  • public class VolatilePageMemoryStorageExample
    extends java.lang.Object
    This example demonstrates a usage of the PageMemory storage engine configured with an in-memory data region.

    To run the example, do the following:

    1. Import the examples project into your IDE.
    2. Download and prepare artifacts for running an Ignite node using the CLI tool (if not done yet):
      ignite bootstrap
    3. Start an Ignite node using the CLI tool:
      ignite node start --config=$IGNITE_HOME/examples/config/ignite-config.conf my-first-node
    4. Cluster initialization using the CLI tool (if not done yet):
      ignite cluster init --cluster-name=ignite-cluster --node-endpoint=localhost:10300 --meta-storage-node=my-first-node
    5. Add configuration for an in-memory data region of the PageMemory storage engine using the CLI tool (if not done yet):
      ignite cluster config update "aimem.regions.in-memory"
    6. Run the example in the IDE.
    7. Stop the Ignite node using the CLI tool:
      ignite node stop my-first-node
    • Method Summary

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

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

      • VolatilePageMemoryStorageExample

        public VolatilePageMemoryStorageExample()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Main method of the example.
        Parameters:
        args - The command line arguments.
        Throws:
        java.lang.Exception - If failed.