org.fjank.jcache.persistence
Class DiskElementDescriptor

java.lang.Object
  extended byorg.fjank.jcache.persistence.DiskElementDescriptor
All Implemented Interfaces:
java.io.Serializable

public class DiskElementDescriptor
extends java.lang.Object
implements java.io.Serializable

Disk objects are located by descriptor entries. These are saved on shutdown and loaded into memory on startup.

See Also:
Serialized Form

Field Summary
 int len
          the length of the object
 
Constructor Summary
DiskElementDescriptor()
          Creates a new DiskElementDescriptor object.
 
Method Summary
 void init(long pos, byte[] data)
          initializes this descriptor with the position to start at, and a byte[] with the actual data which is to be written.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

len

public int len
the length of the object

Constructor Detail

DiskElementDescriptor

public DiskElementDescriptor()
Creates a new DiskElementDescriptor object.

Method Detail

init

public void init(long pos,
                 byte[] data)
initializes this descriptor with the position to start at, and a byte[] with the actual data which is to be written.

Parameters:
pos - the starting position
data - the data to write.


Copyright © 2002-2004 Hosted by SourceForge. All Rights Reserved.