KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sleepycat > je > tree > TrackingInfo


1 /*-
2  * See the file LICENSE for redistribution information.
3  *
4  * Copyright (c) 2002,2006 Oracle. All rights reserved.
5  *
6  * $Id: TrackingInfo.java,v 1.11 2006/10/30 21:14:26 bostic Exp $
7  */

8
9 package com.sleepycat.je.tree;
10
11 import com.sleepycat.je.utilint.DbLsn;
12
13 /**
14  * Tracking info packages some tree tracing info.
15  */

16 public class TrackingInfo {
17     private long lsn;
18     private long nodeId;
19     
20     public TrackingInfo(long lsn, long nodeId) {
21         this.lsn = lsn;
22         this.nodeId = nodeId;
23     }
24
25     public String JavaDoc toString() {
26         return "lsn=" + DbLsn.getNoFormatString(lsn) +
27             " node=" + nodeId;
28     }
29 }
30
Popular Tags