Package net.sf.joafip.service

Examples of net.sf.joafip.service.FilePersistenceBuilder.build()


    builder.setPathName("runtime");
    builder.setProxyMode(true);
    builder.setRemoveFiles(true);
    builder.setGarbageManagement(false);
    builder.setCrashSafeMode(false);
    filePersistence = builder.build();
    session = filePersistence.createDataAccessSession();
  }

  private void close() throws FilePersistenceException {
    filePersistence.close();
View Full Code Here


    builder.setPathName(path.getPath());
    builder.setProxyMode(true);
    builder.setRemoveFiles(true);
    builder.setGarbageManagement(false);
    builder.setCrashSafeMode(false);
    final IFilePersistence filePersistence = builder.build();
    Thread.sleep(10000);
    filePersistence.close();
  }
}
View Full Code Here

    builder.setPathName(path.getPath());
    builder.setProxyMode(true);
    builder.setRemoveFiles(true);
    builder.setGarbageManagement(false);
    builder.setCrashSafeMode(false);
    final IFilePersistence filePersistence = builder.build();
    final IDataAccessSession dataAccessSession = filePersistence
        .createDataAccessSession();
    for (int count = 0; count < 10000; count++) {
      dataAccessSession.open();
      dataAccessSession.setObject("" + count, Integer.valueOf(count));// NOPMD
View Full Code Here

    builder.setPathName(RUNTIME_DIR);
    builder.setRemoveFiles(removeFiles);
    builder.setFileCache(PAGE_SIZE, NUMBER_OF_PAGE);
    builder.setGarbageManagement(GARBAGE);
    builder.setCrashSafeMode(CRASH_SAFE_MODE);
    final IFilePersistence filePersistence = builder.build();
    // filePersistence = new FilePersistence(1, null, RUNTIME_DIR,
    // /**/removeFiles,
    // /**/PAGE_SIZE, NUMBER_OF_PAGE,
    // /**/GARBAGE,
    // /**/CRASH_SAFE_MODE);
 
View Full Code Here

    builder.setPathName("runtime");
    builder.setProxyMode(true);
    builder.setRemoveFiles(true);
    builder.setGarbageManagement(false);
    builder.setCrashSafeMode(false);
    final IFilePersistence filePersistence = builder.build();
    Map<String, String> map = new HashMap<String, String>();
    map.put("key1", "value1");
    map.put("key2", "value2");
    final IDataAccessSession dataAccessSession = filePersistence
        .createDataAccessSession();
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.