Package net.sf.joafip.kvstore.entity

Examples of net.sf.joafip.kvstore.entity.FileAccessParameter


    stateDataFile = new File(runtimePath + File.separator + "data.flag");

    final File globalStateFile;
    globalStateFile = new File(runtimePath + File.separator + "global.flag");

    FileAccessParameter fileAccessParameter = new FileAccessParameter();
    fileAccessParameter
        .setFileAccessMode(EnumFileAccessMode.NIO_RANDOM_FILE_ACCESS);
    fileAccessParameter.setFile(dataFile);
    fileAccessParameter.setMaxRetry(1);
    fileAccessParameter.setRetryMsDelay(0);
    fileAccessParameter.setUseCache(false);
    fileForStorable = new FileForStorable(fileAccessParameter);

    final FileForStorable backupFileForStorage;
    fileAccessParameter = new FileAccessParameter();
    fileAccessParameter
        .setFileAccessMode(EnumFileAccessMode.NIO_RANDOM_FILE_ACCESS);
    fileAccessParameter.setFile(backupFile);
    fileAccessParameter.setMaxRetry(1);
    fileAccessParameter.setRetryMsDelay(0);
    fileAccessParameter.setUseCache(false);
    backupFileForStorage = new FileForStorable(fileAccessParameter);

    heapElementManager = new HeapElementManager(fileForStorable,
        stateDataFile, backupFileForStorage, stateDataBackupFile,
        globalStateFile, false, false, 1, 0, openFileTraceFile);
View Full Code Here


  protected void setUp() throws Exception {// NOPMD inherit test case
    super.setUp();
    fileName = TestConstant.getWinRamDiskRuntimeDir() + File.separator
        + "test.dat";
    final FileAccessParameter fileAccessParameter = new FileAccessParameter();
    fileAccessParameter
        .setFileAccessMode(EnumFileAccessMode.NIO_RANDOM_FILE_ACCESS);
    fileAccessParameter.setFile(new File(fileName));
    fileAccessParameter.setMaxRetry(1);
    fileAccessParameter.setRetryMsDelay(0);
    fileAccessParameter.setUseCache(false);
    fileForStorable = new FileForStorable(fileAccessParameter);
    /* length = DATA1.length() + 4 */
    storableIn1 = new Storable(fileForStorable, 0);
    /* length= DATA1.length() + 4 */
    storableOut1 = new Storable(fileForStorable, 0);
View Full Code Here

    stateDataBackupFile = new File(runtimePath + File.separator
        + "backup.flag");

    final File stateDataFile;
    stateDataFile = new File(runtimePath + File.separator + "data.flag");
    FileAccessParameter fileAccessParameter = new FileAccessParameter();
    fileAccessParameter
        .setFileAccessMode(EnumFileAccessMode.NIO_RANDOM_FILE_ACCESS);
    fileAccessParameter.setFile(dataFile);
    fileAccessParameter.setMaxRetry(1);
    fileAccessParameter.setRetryMsDelay(0);
    fileAccessParameter.setUseCache(false);
    fileForStorable = new FileForStorable(fileAccessParameter);

    fileAccessParameter = new FileAccessParameter();
    fileAccessParameter
        .setFileAccessMode(EnumFileAccessMode.NIO_RANDOM_FILE_ACCESS);
    fileAccessParameter.setFile(backupFile);
    fileAccessParameter.setMaxRetry(1);
    fileAccessParameter.setRetryMsDelay(0);
    fileAccessParameter.setUseCache(false);
    backupFileForStorable = new FileForStorable(fileAccessParameter);

    final File globalStateFile;
    globalStateFile = new File(runtimePath + File.separator + "global.flag");
    final File openFileTraceFile = new File(runtimePath + File.separator
View Full Code Here

  @Override
  protected void setUp() throws Exception {// NOPMD override test case
    super.setUp();
    final File file = new File(TestConstant.getWinRamDiskRuntimeDir()
        + File.separator + "test.bin");
    final FileAccessParameter fileAccessParameter = new FileAccessParameter();
    fileAccessParameter
        .setFileAccessMode(EnumFileAccessMode.NIO_RANDOM_FILE_ACCESS);
    fileAccessParameter.setFile(file);
    fileAccessParameter.setMaxRetry(1);
    fileAccessParameter.setRetryMsDelay(0);
    fileAccessParameter.setUseCache(false);
    fileForStorable = new FileForStorable(fileAccessParameter);
    fileForStorable.open();
  }
View Full Code Here

    super(name);
  }

  protected void setUp() throws Exception {// NOPMD inherit test case
    super.setUp();
    final FileAccessParameter fileAccessParameter = new FileAccessParameter();
    fileAccessParameter
        .setFileAccessMode(EnumFileAccessMode.NIO_RANDOM_FILE_ACCESS);
    fileAccessParameter.setFile(new File(TestConstant
        .getWinRamDiskRuntimeDir() + File.separator + "test.dat"));
    fileAccessParameter.setMaxRetry(1);
    fileAccessParameter.setRetryMsDelay(0);
    fileAccessParameter.setUseCache(false);
    fileForStorable = new FileForStorable(fileAccessParameter);
  }
View Full Code Here

    stateDataFile = new File(runtimePath + File.separator + "data.flag");

    final File globalStateFlag;
    globalStateFlag = new File(runtimePath + File.separator + "global.flag");

    FileAccessParameter fileAccessParameter = new FileAccessParameter();
    fileAccessParameter
        .setFileAccessMode(EnumFileAccessMode.NIO_RANDOM_FILE_ACCESS);
    fileAccessParameter.setFile(dataFile);
    fileAccessParameter.setMaxRetry(1);
    fileAccessParameter.setRetryMsDelay(0);
    fileAccessParameter.setUseCache(false);
    fileForStorable = new FileForStorable(fileAccessParameter);

    fileAccessParameter = new FileAccessParameter();
    fileAccessParameter
        .setFileAccessMode(EnumFileAccessMode.NIO_RANDOM_FILE_ACCESS);
    fileAccessParameter.setFile(backupFile);
    fileAccessParameter.setMaxRetry(1);
    fileAccessParameter.setRetryMsDelay(0);
    fileAccessParameter.setUseCache(false);
    backupFileForStorable = new FileForStorable(fileAccessParameter);

    heapElementManager = new HeapElementManager(fileForStorable,
        stateDataFile, backupFileForStorable, stateDataBackupFile,
        globalStateFlag, false, false, 1, 0, openFileTraceFile);
View Full Code Here

TOP

Related Classes of net.sf.joafip.kvstore.entity.FileAccessParameter

Copyright © 2018 www.massapicom. 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.