Package org.entityfs.support.log

Examples of org.entityfs.support.log.StdOutLogAdapter


  @Override
  protected LruCacheBackend<Integer, Long, Long> createBackend()
  {
    File dbFile = FileSupport.createTempFile();
    File indexFile = FileSupport.createTempFile();
    DatabaseBackend<Integer, Long, Long> db = new ConstantRecordSizeHeapBackend<Integer, Long>(new ReadWritableFileAdapter(dbFile), false, IntegerSerializer.INSTANCE, LongSerializer.INSTANCE, 0L, 8192, new LogAdapterHolder(new StdOutLogAdapter()));
    LruCacheBackend<Integer, Long, Long> res = new LruCacheBackend<Integer, Long, Long>(db, false, 5, 3);
    m_dbFiles.put(res, dbFile);
    m_indexFiles.put(res, indexFile);
    return res;
  }
View Full Code Here


  @Override
  protected LruCacheBackend<Character, Character, Long> createCharacterBackend()
  {
    File dbFile = FileSupport.createTempFile();
    File indexFile = FileSupport.createTempFile();
    DatabaseBackend<Character, Character, Long> db = new ConstantRecordSizeHeapBackend<Character, Character>(new ReadWritableFileAdapter(dbFile), false, CharacterSerializer.INSTANCE, CharacterSerializer.INSTANCE, 0L, 8192, new LogAdapterHolder(new StdOutLogAdapter()));
    LruCacheBackend<Character, Character, Long> res = new LruCacheBackend<Character, Character, Long>(db, false, 5, 3);
    m_dbFiles.put(res, dbFile);
    m_indexFiles.put(res, indexFile);
    return res;
  }
View Full Code Here

  @Override
  protected LruCacheBackend<String, String, Long> createBackend()
  {
    File dbFile = FileSupport.createTempFile();
    File indexFile = FileSupport.createTempFile();
    HeapBackend<String, String> hb = new HeapBackend<String, String>(new ReadWritableFileAdapter(dbFile), false, StringSerializer.INSTANCE, StringSerializer.INSTANCE, 0L, 4, new LogAdapterHolder(new StdOutLogAdapter()));
    LruCacheBackend<String, String, Long> res = new LruCacheBackend<String, String, Long>(hb, false, 5, 3);
    m_dbFiles.put(res, dbFile);
    m_indexFiles.put(res, indexFile);
    return res;
  }
View Full Code Here

TOP

Related Classes of org.entityfs.support.log.StdOutLogAdapter

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.