Package org.tarantool.snapshot

Examples of org.tarantool.snapshot.XLogReader


      }
    });
    boolean hasLogs = xlogs != null && xlogs.length > 0;
    if (hasLogs) {
      Arrays.sort(xlogs);
      XLogReader reader = new XLogReader(new FileInputStream(folder + "/" + xlogs[xlogs.length - 1]).getChannel());
      XLogEntry xlogEntry = null;
      while ((xlogEntry = reader.nextEntry()) != null) {
        lsn = xlogEntry.header.lsn;
      }
      reader.close();
    }
  }
View Full Code Here

TOP

Related Classes of org.tarantool.snapshot.XLogReader

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.