KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > core > storage > gammaStore > ContainerLocation


1 // You can redistribute this software and/or modify it under the terms of
2
// the Ozone Core License version 1 published by ozone-db.org.
3
//
4
// Copyright (C) 2003-@year@, Leo Mekenkamp. All rights reserved.
5
//
6
// $Id: ContainerLocation.java,v 1.3 2004/03/21 21:05:51 leomekenkamp Exp $
7

8 package org.ozoneDB.core.storage.gammaStore;
9 /**
10  * Holds information on where exactly object data has been (or can be)
11  * persisted. Objects are written to clusters, where the position has the
12  * offset of where within a cluster the serialized object data starts.
13  *
14  * @author <a HREF="mailto:leoATmekenkampD0Tcom">Leo Mekenkamp (mind the anti sp@m)</a>
15  * @version $Id: ContainerLocation.java,v 1.3 2004/03/21 21:05:51 leomekenkamp Exp $
16  */

17 public final class ContainerLocation {
18
19     private int dataFileId;
20     private int position;
21
22     public ContainerLocation() {
23     }
24     
25     public ContainerLocation(int dataFileId, int position) {
26         this.dataFileId = dataFileId;
27         this.position = position;
28     }
29     
30     public String JavaDoc toString() {
31         return "(dataFileId: " + dataFileId + "; pos: " + position + ")";
32     }
33
34     public int getDataFileId() {
35         return dataFileId;
36     }
37     
38     public int getPosition() {
39         return position;
40     }
41     
42 }
43
Popular Tags