org.activeio.journal.active
Class Location

java.lang.Object
  extended byorg.activeio.journal.active.Location
All Implemented Interfaces:
Comparable, RecordLocation

public final class Location
extends Object
implements RecordLocation

Defines a where a record can be located in the Journal.

Version:
$Revision: 1.1 $

Field Summary
static int SERIALIZED_SIZE
           
 
Constructor Summary
Location(int logFileId, int fileOffset)
           
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object o)
           
 int getLogFileId()
           
 int getLogFileOffset()
           
 int hashCode()
           
static Location readFromDataInput(DataInput data)
           
static Location readFromPacket(Packet packet)
           
 String toString()
           
 void writeToDataOutput(DataOutput data)
           
 void writeToPacket(Packet packet)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SERIALIZED_SIZE

public static final int SERIALIZED_SIZE
See Also:
Constant Field Values
Constructor Detail

Location

public Location(int logFileId,
                int fileOffset)
Method Detail

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

hashCode

public int hashCode()

equals

public boolean equals(Object o)

toString

public String toString()

getLogFileId

public int getLogFileId()

getLogFileOffset

public int getLogFileOffset()

writeToPacket

public void writeToPacket(Packet packet)
                   throws IOException
Throws:
IOException

writeToDataOutput

public void writeToDataOutput(DataOutput data)
                       throws IOException
Throws:
IOException

readFromPacket

public static Location readFromPacket(Packet packet)
                               throws IOException
Throws:
IOException

readFromDataInput

public static Location readFromDataInput(DataInput data)
                                  throws IOException
Throws:
IOException


Copyright © -2007 The ActiveIO Project. All Rights Reserved.