|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.auxiliary.disk.indexed.IndexedDiskElementDescriptor
public class IndexedDiskElementDescriptor
Disk objects are located by descriptor entries. These are saved on shutdown and loaded into memory on startup.
Field Summary | |
---|---|
int |
len
Number of bytes the serialized form of the cache data takes. |
Constructor Summary | |
---|---|
IndexedDiskElementDescriptor()
Constructor for the DiskElementDescriptor object |
|
IndexedDiskElementDescriptor(long pos,
int len)
Constructs a usable disk element descriptor. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Compares based on length. |
void |
init(long pos,
byte[] data)
Set the offset (i.e. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int len
Constructor Detail |
---|
public IndexedDiskElementDescriptor()
public IndexedDiskElementDescriptor(long pos, int len)
pos
- len
- Method Detail |
---|
public void init(long pos, byte[] data)
pos
- data
- public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
o
- Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |