00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 package com.sleepycat.db;
00011
00012 import com.sleepycat.db.internal.DbEnv;
00013
00014 public class LogSequenceNumber {
00015 private int file;
00016 private int offset;
00017
00018 public LogSequenceNumber(final int file, final int offset) {
00019 this.file = file;
00020 this.offset = offset;
00021 }
00022
00023 public LogSequenceNumber() {
00024 this(0, 0);
00025 }
00026
00027 public int getFile() {
00028 return file;
00029 }
00030
00031 public int getOffset() {
00032 return offset;
00033 }
00034
00035 public static int compare(LogSequenceNumber lsn1, LogSequenceNumber lsn2) {
00036 return DbEnv.log_compare(lsn1, lsn2);
00037 }
00038 }