Class MappedFileMemoryProvider

  • All Implemented Interfaces:
    DirectMemoryProvider

    public class MappedFileMemoryProvider
    extends Object
    implements DirectMemoryProvider
    Memory provider implementation based on memory mapped file.

    Doesn't support memory reuse semantics.

    • Constructor Detail

      • MappedFileMemoryProvider

        public MappedFileMemoryProvider​(IgniteLogger log,
                                        File allocationPath)
        Parameters:
        allocationPath - Allocation path.
    • Method Detail

      • initialize

        public void initialize​(long[] sizes)
        Specified by:
        initialize in interface DirectMemoryProvider
        Parameters:
        sizes - Initializes provider with the chunk sizes.
      • shutdown

        public void shutdown​(boolean deallocate)
        Shuts down the provider.
        Specified by:
        shutdown in interface DirectMemoryProvider
        Parameters:
        deallocate - True to deallocate memory, false to allow memory reuse.