Main Page | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Related Pages

LogSequenceNumber.java

00001 /*-
00002  * See the file LICENSE for redistribution information.
00003  *
00004  * Copyright (c) 2001-2005
00005  *      Sleepycat Software.  All rights reserved.
00006  *
00007  * $Id: LogSequenceNumber.java,v 12.1 2005/06/16 20:23:02 bostic Exp $
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 }

Generated on Sun Dec 25 12:14:33 2005 for Berkeley DB 4.4.16 by  doxygen 1.4.2