Examples of crashSafeSetup()


Examples of net.sf.joafip.kvstore.entity.HeapFileSetup.crashSafeSetup()

    final HeapFileSetup setup = new HeapFileSetup(
        EnumFileAccessMode.NIO_RANDOM_FILE_ACCESS, dataFile,
        true/* crashSafeMode */, false/* useCacheMode */,
        false/* deleteRenaming */, false/* clearResizeFile */, 1, 0,
        openFileTraceFile);
    setup.crashSafeSetup(backupFile, stateDataFile, stateDataBackupFile,
        globalStateFile);
    // heapDataManager = new HeapFileDataManager(setup, false);
    heapDataManager = createHeapDataManager(setup);
    heapDataManager.startService(removeFile);
  }
View Full Code Here

Examples of net.sf.joafip.kvstore.entity.HeapFileSetup.crashSafeSetup()

          /**/useCacheMode,
          /**/false/* delete renaming */, false/* clearResizeFile */,
          1, 0,
          /**/new File(TestConstant.getWinRamDiskRuntimeDir()
              + "/trace.txt"));
      setup.crashSafeSetup(
      /**/new File(TestConstant.getWinRamDiskRuntimeDir() + "/backup"),
      /**/new File(TestConstant.getWinRamDiskRuntimeDir() + "/data.ok"),
          /**/new File(TestConstant.getWinRamDiskRuntimeDir()
              + "/backup.ok"),
          /**/new File(TestConstant.getWinRamDiskRuntimeDir()
View Full Code Here

Examples of net.sf.joafip.kvstore.entity.HeapFileSetup.crashSafeSetup()

              .getGlobalStateFlagFileName();
          final String toUseGlobalStateFlagFileName = globalStateFlagFileName == null ? GLOBAL_FLAG
              : globalStateFlagFileName;
          final File globalStateFlagFile = new File(pathName,
              toUseGlobalStateFlagFileName);
          setup.crashSafeSetup(
          /**/backupDataFile,
          /**/stateOkFlagFile,
          /**/stateBackupOkFlagFile,
          /**/globalStateFlagFile);
        }
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.