org.apache.camel.component.leveldb
Class LevelDBFile

java.lang.Object
  extended by org.apache.camel.component.leveldb.LevelDBFile
All Implemented Interfaces:
org.apache.camel.Service

public class LevelDBFile
extends Object
implements org.apache.camel.Service

Manages access to a shared LevelDB file.

Will by default not sync writes which allows it to be faster. You can force syncing by setting the sync option to true.


Constructor Summary
LevelDBFile()
           
 
Method Summary
 int getBlockRestartInterval()
           
 int getBlockSize()
           
 long getCacheSize()
           
 String getCompressionType()
           
 org.iq80.leveldb.DB getDb()
           
 File getFile()
           
 String getFileName()
           
 int getMaxOpenFiles()
           
 int getWriteBufferSize()
           
 org.iq80.leveldb.WriteOptions getWriteOptions()
           
 boolean isParanoidChecks()
           
 boolean isSync()
           
 boolean isVerifyChecksums()
           
 void setBlockRestartInterval(int blockRestartInterval)
           
 void setBlockSize(int blockSize)
           
 void setCacheSize(long cacheSize)
           
 void setCompressionType(String compressionType)
           
 void setFile(File file)
           
 void setFileName(String fileName)
           
 void setMaxOpenFiles(int maxOpenFiles)
           
 void setParanoidChecks(boolean paranoidChecks)
           
 void setSync(boolean sync)
           
 void setVerifyChecksums(boolean verifyChecksums)
           
 void setWriteBufferSize(int writeBufferSize)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LevelDBFile

public LevelDBFile()
Method Detail

getDb

public org.iq80.leveldb.DB getDb()

setFile

public void setFile(File file)
             throws IOException
Throws:
IOException

getFile

public File getFile()

setFileName

public void setFileName(String fileName)

getFileName

public String getFileName()
                   throws IOException
Throws:
IOException

getWriteBufferSize

public int getWriteBufferSize()

setWriteBufferSize

public void setWriteBufferSize(int writeBufferSize)

getMaxOpenFiles

public int getMaxOpenFiles()

setMaxOpenFiles

public void setMaxOpenFiles(int maxOpenFiles)

getBlockRestartInterval

public int getBlockRestartInterval()

setBlockRestartInterval

public void setBlockRestartInterval(int blockRestartInterval)

getBlockSize

public int getBlockSize()

setBlockSize

public void setBlockSize(int blockSize)

getCompressionType

public String getCompressionType()

setCompressionType

public void setCompressionType(String compressionType)

isVerifyChecksums

public boolean isVerifyChecksums()

setVerifyChecksums

public void setVerifyChecksums(boolean verifyChecksums)

isParanoidChecks

public boolean isParanoidChecks()

setParanoidChecks

public void setParanoidChecks(boolean paranoidChecks)

getCacheSize

public long getCacheSize()

setCacheSize

public void setCacheSize(long cacheSize)

isSync

public boolean isSync()

setSync

public void setSync(boolean sync)

getWriteOptions

public org.iq80.leveldb.WriteOptions getWriteOptions()

start

public void start()
Specified by:
start in interface org.apache.camel.Service

stop

public void stop()
Specified by:
stop in interface org.apache.camel.Service


Apache CAMEL