Package org.iq80.leveldb

Examples of org.iq80.leveldb.Options.logger()


  protected void initStorage(Configuration conf)
      throws IOException {
    Path storeRoot = createStorageDir(conf);
    Options options = new Options();
    options.createIfMissing(false);
    options.logger(new LeveldbLogger());
    LOG.info("Using state database at " + storeRoot + " for recovery");
    File dbfile = new File(storeRoot.toString());
    byte[] schemaVersionData = null;
    try {
      db = JniDBFactory.factory.open(dbfile, options);
View Full Code Here


  }

  private void startStore(Path recoveryRoot) throws IOException {
    Options options = new Options();
    options.createIfMissing(false);
    options.logger(new LevelDBLogger());
    Path dbPath = new Path(recoveryRoot, STATE_DB_NAME);
    LOG.info("Using state database at " + dbPath + " for recovery");
    File dbfile = new File(dbPath.toString());
    byte[] schemaVersionData;
    try {
View Full Code Here

    @Override
    public void doOpen() throws DataStoreFatalException {
  path = getDatabaseFile();
  Options options = new Options();
  options.createIfMissing(true);
  options.logger(new org.iq80.leveldb.Logger() {
    public void log (String message) {
        logger.trace("leveldb: {}", message);
    }
      });
  try {
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.