public class TxPageFileFactory extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
drainOnClose |
protected boolean |
sync |
protected boolean |
useWorkerThread |
Constructor and Description |
---|
TxPageFileFactory() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the previously opened PageFile object.
|
File |
getFile() |
int |
getMappingSegementSize() |
int |
getMaxPages() |
PageCache |
getPageCache() |
short |
getPageSize() |
TxPageFile |
getTxPageFile() |
boolean |
isDrainOnClose() |
boolean |
isSync() |
boolean |
isUseWorkerThread() |
void |
open()
Opens the TxPageFile object.
|
void |
setDrainOnClose(boolean drainOnClose) |
void |
setFile(File file) |
void |
setMappingSegementSize(int mappingSegementSize) |
void |
setMaxFileSize(long size) |
void |
setMaxPages(int maxPages) |
void |
setPageCache(PageCache pageCache) |
void |
setPageSize(short pageSize) |
void |
setSync(boolean sync) |
void |
setUseWorkerThread(boolean useWorkerThread) |
protected boolean drainOnClose
protected boolean sync
protected boolean useWorkerThread
public void open()
getTxPageFile()
will return
the opened TxPageFile.public void close() throws IOException
getTxPageFile()
will return null.IOException
public boolean isSync()
public void setSync(boolean sync)
public TxPageFile getTxPageFile()
public boolean isDrainOnClose()
public void setDrainOnClose(boolean drainOnClose)
public boolean isUseWorkerThread()
public void setUseWorkerThread(boolean useWorkerThread)
public File getFile()
public int getMappingSegementSize()
public int getMaxPages()
public short getPageSize()
public void setFile(File file)
public void setMappingSegementSize(int mappingSegementSize)
public void setMaxFileSize(long size)
public void setMaxPages(int maxPages)
public void setPageSize(short pageSize)
public PageCache getPageCache()
public void setPageCache(PageCache pageCache)
Copyright © 2009–2016 FuseSource, Corp.. All rights reserved.