org.activeio.journal.active
Class Location
java.lang.Object
org.activeio.journal.active.Location
- All Implemented Interfaces:
- java.lang.Comparable, RecordLocation
- public final class Location
- extends java.lang.Object
- implements RecordLocation
Defines a where a record can be located in the Journal.
- Version:
- $Revision: 1.1 $
Constructor Summary |
Location(int logFileId,
int fileOffset)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SERIALIZED_SIZE
public static final int SERIALIZED_SIZE
- See Also:
- Constant Field Values
Location
public Location(int logFileId,
int fileOffset)
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interface java.lang.Comparable
hashCode
public int hashCode()
equals
public boolean equals(java.lang.Object o)
toString
public java.lang.String toString()
getLogFileId
public int getLogFileId()
getLogFileOffset
public int getLogFileOffset()
writeToPacket
public void writeToPacket(Packet packet)
throws java.io.IOException
- Throws:
java.io.IOException
writeToDataOutput
public void writeToDataOutput(java.io.DataOutput data)
throws java.io.IOException
- Throws:
java.io.IOException
readFromPacket
public static Location readFromPacket(Packet packet)
throws java.io.IOException
- Throws:
java.io.IOException
readFromDataInput
public static Location readFromDataInput(java.io.DataInput data)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © -2005 The ActiveIO Project. All Rights Reserved.