org.activeio.journal.active
Class Location
java.lang.Object
org.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 $
Constructor Summary |
Location(int logFileId,
int fileOffset)
|
SERIALIZED_SIZE
public static final int SERIALIZED_SIZE
- See Also:
- Constant Field Values
Location
public Location(int logFileId,
int fileOffset)
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.