public class PageFileFactory extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
headerSize |
protected int |
maxPages |
protected short |
pageSize |
protected boolean |
storeFreePages |
Constructor and Description |
---|
PageFileFactory() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the previously opened PageFile object.
|
File |
getFile() |
int |
getHeaderSize() |
int |
getMappingSegementSize() |
int |
getMaxPages() |
PageFile |
getPageFile() |
short |
getPageSize() |
boolean |
isReadOnly() |
boolean |
isStoreFreePages() |
void |
open()
Opens the PageFile object.
|
void |
setFile(File file) |
void |
setHeaderSize(int headerSize) |
void |
setMappingSegementSize(int mappingSegementSize) |
void |
setMaxFileSize(long size) |
void |
setMaxPages(int maxPages) |
void |
setPageSize(short pageSize) |
void |
setReadOnly(boolean readOnly) |
void |
setStoreFreePages(boolean storeFreePages) |
protected int headerSize
protected short pageSize
protected int maxPages
protected boolean storeFreePages
public PageFile getPageFile()
public void open()
getPageFile()
will return
the opened PageFile.public void close() throws IOException
getPageFile()
will return null.IOException
public int getHeaderSize()
public void setHeaderSize(int headerSize)
public short getPageSize()
public void setPageSize(short pageSize)
public int getMaxPages()
public void setMaxPages(int maxPages)
public void setMaxFileSize(long size)
public File getFile()
public int getMappingSegementSize()
public void setFile(File file)
public void setMappingSegementSize(int mappingSegementSize)
public boolean isStoreFreePages()
public void setStoreFreePages(boolean storeFreePages)
public boolean isReadOnly()
public void setReadOnly(boolean readOnly)
Copyright © 2009–2016 FuseSource, Corp.. All rights reserved.