Examples of HeapFileDataManager


Examples of net.sf.joafip.heapfile.service.HeapFileDataManager

      /**/new File(TestConstant.getWinRamDiskRuntimeDir() + "/data.ok"),
          /**/new File(TestConstant.getWinRamDiskRuntimeDir()
              + "/backup.ok"),
          /**/new File(TestConstant.getWinRamDiskRuntimeDir()
              + "/global.ok"));
      dataManager = new HeapFileDataManager(setup, false);
      dataManager.startService(true);
    } catch (HeapException exception) {
      if (dataManager == null) {
        logger.debug("file state unknow");
      } else {
View Full Code Here

Examples of net.sf.joafip.heapfile.service.HeapFileDataManager

            + "/store.data"), false/* crashSafeMode */,
        false/* useCacheMode */, false/* deleteRenaming */,
        false/* clearResizeFile */, 0/* maxFileOperationRetry */,
        0/* fileOperationRetryMsDelay */, new File(
            "runtime/openFileTraceFile.txt"));
    final IHeapDataManager fileDataManager = new HeapFileDataManager(setup,
        false);

    builder.setDataManager(new DualWrapDataManager(fileDataManager,
        blockDataManager));

View Full Code Here

Examples of net.sf.joafip.heapfile.service.HeapFileDataManager

  public FileTreeMap(final HeapFileSetup setup,
      final Integer autoSaveMaxRecord,
      final Comparator<? super K> comparator) throws HeapException {
    super();
    if (autoSaveMaxRecord == null) {
      heapDataManager = new HeapFileDataManager(setup, true/* manageNodeindex */);
    } else {
      heapDataManager = new AutoSaveHeapFileDataManager(setup,
          true/* manageNodeindex */, autoSaveMaxRecord.intValue());
    }
    keyManager = new FileTreeMapKeyMgr(comparator);
View Full Code Here

Examples of net.sf.joafip.heapfile.service.HeapFileDataManager

    try {
      final File dataFile = new File(storageFileName);
      final HeapFileSetup setup = new HeapFileSetup(
          EnumFileAccessMode.NIO_RANDOM_FILE_ACCESS, dataFile, false,
          false, false, false, 1, 0, null);
      dataManager = new HeapFileDataManager(setup, false);
      final HeapRecordableManager heapRecordableManager = new HeapRecordableManager(
          dataManager);
      final HelperBinaryConversion helperBinaryConversion = new HelperBinaryConversion();
      final StoreHeader storeHeader = new StoreHeader(
          heapRecordableManager, helperBinaryConversion);
View Full Code Here

Examples of net.sf.joafip.heapfile.service.HeapFileDataManager

        /**/true/* use cache */,
        /**/false/* delete renaming */, false/* clearResizeFile */, 1,
        0,
        /**/openFileTraceFile);
    setup.cacheSetup(16 * 1024, 100);
    dataManager = new HeapFileDataManager(setup, false);
    super.setUp();
  }
View Full Code Here

Examples of net.sf.joafip.heapfile.service.HeapFileDataManager

              .getMaxNumberOfBuffer();
          final int maxBufferSize = storeProperties
              .getMaxBufferSize();
          setup.fileBufferSetup(maxBufferSize, maxNumberOfBuffer);
        }
        this.dataManager = new HeapFileDataManager(setup, false);
      } catch (HeapException exception) {
        logger.fatal(CREATION_FAILED, exception);
        throw new StoreException(CREATION_FAILED, exception);
      }
    } else {
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.