Package net.sf.joafip.service

Examples of net.sf.joafip.service.FilePersistenceBuilder


    // path.toString(),
    // /**/true,/* proxy mode */
    // /**/true/* remove files */,
    // /**/false/* do not manage garbage */,
    // /**/false/* crash safe mode */);
    final FilePersistenceBuilder builder = new FilePersistenceBuilder();
    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


      throws FilePersistenceException,
      FilePersistenceInvalidClassException,
      FilePersistenceNotSerializableException,
      FilePersistenceClassNotFoundException,
      FilePersistenceDataCorruptedException, StoreClassNotFoundException {
    final FilePersistenceBuilder builder = new FilePersistenceBuilder();
    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

  @SuppressWarnings("unchecked")
  public void run() throws Throwable {
    // final IFilePersistence filePersistence = new FilePersistence(1, null,
    // "runtime", true, false);
    final FilePersistenceBuilder builder = new FilePersistenceBuilder();
    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

Related Classes of net.sf.joafip.service.FilePersistenceBuilder

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.