org.fusesource.hawtdb.api
Class TxPageFileFactory

java.lang.Object
  extended by org.fusesource.hawtdb.api.TxPageFileFactory

public class TxPageFileFactory
extends java.lang.Object

A factory to create TxPageFile objects.

Author:
Hiram Chirino

Field Summary
protected  boolean drainOnClose
           
protected  boolean sync
           
protected  boolean useWorkerThread
           
 
Constructor Summary
TxPageFileFactory()
           
 
Method Summary
 void close()
          Closes the previously opened PageFile object.
 int getCacheSize()
           
 java.io.File getFile()
           
 int getMappingSegementSize()
           
 int getMaxPages()
           
 short getPageSize()
           
 TxPageFile getTxPageFile()
           
 boolean isDrainOnClose()
           
 boolean isSync()
           
 boolean isUseWorkerThread()
           
 void open()
          Opens the TxPageFile object.
 void setCacheSize(int cacheSize)
           
 void setDrainOnClose(boolean drainOnClose)
           
 void setFile(java.io.File file)
           
 void setMappingSegementSize(int mappingSegementSize)
           
 void setMaxFileSize(long size)
           
 void setMaxPages(int maxPages)
           
 void setPageSize(short pageSize)
           
 void setSync(boolean sync)
           
 void setUseWorkerThread(boolean useWorkerThread)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

drainOnClose

protected boolean drainOnClose

sync

protected boolean sync

useWorkerThread

protected boolean useWorkerThread
Constructor Detail

TxPageFileFactory

public TxPageFileFactory()
Method Detail

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.