|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.mdr.persistence.btreeimpl.btreestorage.FileHeader
Files stored in the FileCache must start with this header; it contains information used by the logging system. The client of the cache should assume that the first 64 bytes of the file are reserved (64 to allow for growth). All files stored in the cache are committed together, and should always have identical file headers.
Field Summary | |
static int |
HEADER_SIZE
The size of the header |
Method Summary | |
void |
addFiles(java.lang.String[] names,
int size,
boolean replace)
Create new files with a given header |
static FileHeader |
createFiles(java.lang.String[] names,
int size,
boolean replace)
Create a set of files with a common header |
boolean |
equals(java.lang.Object o)
test for equality with another FileHeader |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int HEADER_SIZE
Method Detail |
public void addFiles(java.lang.String[] names, int size, boolean replace) throws StorageException
names
- the names of the filessize
- if greater than 0, the size to make the filesreplace
- if true, replace existing files. if false, throw
an exception if any of the files exists
StorageException
- I/O error creating the files
or "replace" was false, and a file already existspublic static FileHeader createFiles(java.lang.String[] names, int size, boolean replace) throws StorageException
names
- the names of the filessize
- if greater than 0, the size to make the filesreplace
- if true, replace existing files. if false, throw
an exception if any of the files exists
StorageException
- I/O error creating the files
or "replace" was false, and a file already existspublic boolean equals(java.lang.Object o)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |