org.fusesource.hawtdb.api
Class TxPageFileFactory
java.lang.Object
org.fusesource.hawtdb.api.TxPageFileFactory
public class TxPageFileFactory
- extends java.lang.Object
A factory to create TxPageFile objects.
- Author:
- Hiram Chirino
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
drainOnClose
protected boolean drainOnClose
sync
protected boolean sync
useWorkerThread
protected boolean useWorkerThread
TxPageFileFactory
public TxPageFileFactory()
open
public void open()
- Opens the TxPageFile object. A subsequent call to
getTxPageFile()
will return
the opened TxPageFile.
close
public void close()
- Closes the previously opened PageFile object. Subsequent calls to
getTxPageFile()
will return null.
isSync
public boolean isSync()
setSync
public void setSync(boolean sync)
getTxPageFile
public TxPageFile getTxPageFile()
isDrainOnClose
public boolean isDrainOnClose()
setDrainOnClose
public void setDrainOnClose(boolean drainOnClose)
isUseWorkerThread
public boolean isUseWorkerThread()
setUseWorkerThread
public void setUseWorkerThread(boolean useWorkerThread)
getFile
public java.io.File getFile()
getMappingSegementSize
public int getMappingSegementSize()
getMaxPages
public int getMaxPages()
getPageSize
public short getPageSize()
setFile
public void setFile(java.io.File file)
setMappingSegementSize
public void setMappingSegementSize(int mappingSegementSize)
setMaxFileSize
public void setMaxFileSize(long size)
setMaxPages
public void setMaxPages(int maxPages)
setPageSize
public void setPageSize(short pageSize)
getCacheSize
public int getCacheSize()
setCacheSize
public void setCacheSize(int cacheSize)
Copyright © 2009-2011 FuseSource, Corp.. All Rights Reserved.