Examples of IHeapDataManager


Examples of net.sf.joafip.kvstore.service.IHeapDataManager

        null/* openFileTraceFile */);
    // if (FILE_CACHE) {
    // setup.cacheSetup(PAGE_SIZE, NUMBER_OF_PAGE);
    // }
    setup.fileBufferSetup(8 * 1024, 32);
    final IHeapDataManager dataManager =
    /**/new BtreePlusDataManager(setup);
    run(insertLogFilePath, null, dataManager, true);
  }
View Full Code Here

Examples of net.sf.joafip.kvstore.service.IHeapDataManager

      FilePersistenceDataCorruptedException,
      FilePersistenceTooBigForSerializationException, RBTException,
      HeapException, TestException {
    final FilePersistenceBuilder builder = new FilePersistenceBuilder();
    final String dir = "runtime";// TestConstant.getWinRamDiskRuntimeDir();
    final IHeapDataManager blockDataManager = new BlockDataManager(dir
        + "/data", 1024);
    // 10 * 1024, 10 * 1024);
    final HeapFileSetup setup = new HeapFileSetup(
        EnumFileAccessMode.NIO_RANDOM_FILE_ACCESS, new File(dir
            + "/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.kvstore.service.IHeapDataManager

      FilePersistenceNotSerializableException,
      FilePersistenceClassNotFoundException,
      FilePersistenceDataCorruptedException,
      FilePersistenceTooBigForSerializationException, RBTException {
    final FilePersistenceBuilder builder = new FilePersistenceBuilder();
    final IHeapDataManager dataManager = new HeapMultiFileDataManager(
        new File("runtime/mmf"));
    builder.setDataManager(dataManager);
    builder.setProxyMode(true);
    builder.setRemoveFiles(true);
    builder.setCrashSafeMode(false);
View Full Code Here

Examples of net.sf.joafip.kvstore.service.IHeapDataManager

        false/* deleteRenaming */, false/* clearResizeFile */,
        0/* maxFileOperationRetry */, 0/* fileOperationRetryMsDelay */,
        null/* openFileTraceFile */);
    setup.fileBufferSetup(8 * 1024, 32);
    setup.cacheSetup(PAGE_SIZE, NUMBER_OF_PAGE);
    final IHeapDataManager dataManager =
    /**/new BtreePlusDataManager(setup);

    run(insertLogFilePath, null, dataManager, true, NUMBER_OF_ITEM);
  }
View Full Code Here

Examples of net.sf.joafip.kvstore.service.IHeapDataManager

    super();
    synchronized (FilePersistence.class) {
      try {
        this.filePersistenceProperties = filePersistenceProperties;
        final String pathName = filePersistenceProperties.getPathName();
        final IHeapDataManager dataManager = filePersistenceProperties
            .getDataManager();
        if (pathName == null) {
          if (dataManager == null) {
            final String message = "data manager or path must be set";
            logger.error(FILE_PERSISTENCE_CREATION_FAILED + "\n"
View Full Code Here

Examples of net.sf.joafip.kvstore.service.IHeapDataManager

      FilePersistenceNotSerializableException,
      FilePersistenceClassNotFoundException,
      FilePersistenceDataCorruptedException, ProxyException,
      FilePersistenceTooBigForSerializationException {
    final boolean removeFiles = false;
    final IHeapDataManager dataManager = new HeapMemoryDataManagerMock();
    final FilePersistenceBuilder builder = new FilePersistenceBuilder();
    builder.setDataManager(dataManager);
    builder.setProxyMode(true);
    builder.setRemoveFiles(removeFiles);
    builder.setGarbageManagement(false);
View Full Code Here

Examples of net.sf.joafip.kvstore.service.IHeapDataManager

      FilePersistenceClassNotFoundException,
      FilePersistenceDataCorruptedException, ProxyException,
      FilePersistenceTooBigForSerializationException {

    final boolean removeFiles = false;
    final IHeapDataManager dataManager = new HeapMemoryDataManagerMock();
    final FilePersistenceBuilder builder = new FilePersistenceBuilder();
    builder.setDataManager(dataManager);
    builder.setProxyMode(true);
    builder.setRemoveFiles(removeFiles);
    builder.setGarbageManagement(false);
View Full Code Here

Examples of net.sf.joafip.kvstore.service.IHeapDataManager

  }

  @Override
  protected void setUp() throws Exception {// NOPMD
    super.setUp();
    final IHeapDataManager dataManager = new HeapMemoryDataManagerMock();
    // filePersistence = new FilePersistence(dataManager, true, false,
    // true);
    final FilePersistenceBuilder builder = new FilePersistenceBuilder();
    builder.setDataManager(dataManager);
    builder.setProxyMode(true);
View Full Code Here

Examples of net.sf.joafip.kvstore.service.IHeapDataManager

  }

  private void assertDeleted(final DataRecordIdentifier dataRecordIdentifier)
      throws FilePersistenceException, ObjectIOException,
      ObjectIODataCorruptedException, HeapException {
    final IHeapDataManager dataManager = filePersistence.getDataManager();
    assertFalse("must not found data record " + dataRecordIdentifier,
        dataManager.hasDataRecord(dataRecordIdentifier));
  }
View Full Code Here

Examples of net.sf.joafip.kvstore.service.IHeapDataManager

  @Override
  protected void setUp() throws Exception {// NOPMD
    super.setUp();
    // ProxyCallBack.setTraceLoadUnload$JOAFIP$(true);
    final IHeapDataManager dataManager = new HeapMemoryDataManagerMock();
    // filePersistence = new FilePersistence(dataManager, true, false,
    // true);
    final FilePersistenceBuilder builder = new FilePersistenceBuilder();
    builder.setDataManager(dataManager);
    builder.setProxyMode(true);
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.