|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.auxiliary.disk.block.BlockDiskElementDescriptor
public class BlockDiskElementDescriptor
This represents an element on disk. This is used when we persist the keys. We only store the block addresses in memory. We don't need the length here, since all the blocks are the same size receyle bin.
Constructor Summary | |
---|---|
BlockDiskElementDescriptor()
|
Method Summary | |
---|---|
int[] |
getBlocks()
This holds the block numbers. |
Serializable |
getKey()
|
void |
readExternal(ObjectInput input)
Saves on reflection. |
void |
setBlocks(int[] blocks)
|
void |
setKey(Serializable key)
|
String |
toString()
For debugging. |
void |
writeExternal(ObjectOutput output)
Saves on reflection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BlockDiskElementDescriptor()
Method Detail |
---|
public void setKey(Serializable key)
key
- The key to set.public Serializable getKey()
public void setBlocks(int[] blocks)
blocks
- The blocks to set.public int[] getBlocks()
public String toString()
toString
in class Object
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
(non-Javadoc)
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Externalizable.readExternal(java.io.ObjectInput)
public void writeExternal(ObjectOutput output) throws IOException
(non-Javadoc)
writeExternal
in interface Externalizable
IOException
Externalizable.writeExternal(java.io.ObjectOutput)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |