com.sleepycat.db
Class EnvironmentConfig

java.lang.Object
  extended by com.sleepycat.db.EnvironmentConfig
All Implemented Interfaces:
java.lang.Cloneable

public class EnvironmentConfig
extends java.lang.Object
implements java.lang.Cloneable


Field Summary
static EnvironmentConfig DEFAULT
           
 
Constructor Summary
EnvironmentConfig()
           
 
Method Summary
 void addDataDir(java.io.File dataDir)
           
 void addDataDir(java.lang.String dataDir)
           
 boolean getAllowCreate()
           
 int getCacheCount()
           
 long getCacheSize()
           
 boolean getCDBLockAllDatabases()
           
 java.io.File[] getDataDirs()
           
 boolean getDirectDatabaseIO()
           
 boolean getDirectLogIO()
           
 boolean getDsyncDatabases()
           
 boolean getDsyncLog()
           
 boolean getEncrypted()
           
 ErrorHandler getErrorHandler()
           
 java.lang.String getErrorPrefix()
           
 java.io.OutputStream getErrorStream()
           
 EventHandler getEventHandler()
           
 FeedbackHandler getFeedbackHandler()
           
 boolean getInitializeCache()
           
 boolean getInitializeCDB()
           
 boolean getInitializeLocking()
           
 boolean getInitializeLogging()
           
 boolean getInitializeRegions()
           
 boolean getInitializeReplication()
           
 boolean getJoinEnvironment()
           
 byte[][] getLockConflicts()
           
 LockDetectMode getLockDetectMode()
           
 boolean getLockDown()
           
 long getLockTimeout()
           
 boolean getLogAutoRemove()
           
 int getLogBufferSize()
           
 java.io.File getLogDirectory()
           
 int getLogFileMode()
           
 boolean getLogInMemory()
           
 LogRecordHandler getLogRecordHandler()
           
 int getLogRegionSize()
           
 int getMaxLockers()
           
 int getMaxLockObjects()
           
 int getMaxLocks()
           
 int getMaxLogFileSize()
           
 int getMaxMutexes()
           
 int getMaxOpenFiles()
           
 int getMaxWrite()
           
 int getMaxWriteSleep()
           
 MessageHandler getMessageHandler()
           
 java.io.OutputStream getMessageStream()
           
 long getMMapSize()
           
 long getMode()
           
 boolean getMultiversion()
           
 int getMutexAlignment()
           
 int getMutexIncrement()
           
 int getMutexTestAndSetSpins()
           
 boolean getNoLocking()
           
 boolean getNoMMap()
           
 boolean getNoPanic()
           
 boolean getOverwrite()
           
 PanicHandler getPanicHandler()
           
 boolean getPrivate()
           
 boolean getRegister()
           
 long getReplicationLimit()
           
 ReplicationManagerAckPolicy getReplicationManagerAckPolicy()
           
 ReplicationHostAddress getReplicationManagerLocalSite()
           
 int getReplicationNumSites()
           
 int getReplicationPriority()
           
 int getReplicationRequestMax()
           
 int getReplicationRequestMin()
           
 ReplicationTransport getReplicationTransport()
           
 boolean getRunFatalRecovery()
           
 boolean getRunRecovery()
           
 long getSegmentId()
           
 boolean getSystemMemory()
           
 java.io.File getTemporaryDirectory()
           
 int getTestAndSetSpins()
           
 boolean getThreaded()
           
 boolean getTransactional()
           
 int getTxnMaxActive()
           
 boolean getTxnNoSync()
           
 boolean getTxnNotDurable()
           
 boolean getTxnSnapshot()
           
 long getTxnTimeout()
           
 java.util.Date getTxnTimestamp()
           
 boolean getTxnWriteNoSync()
           
 boolean getUseEnvironment()
           
 boolean getUseEnvironmentRoot()
           
 boolean getVerboseDeadlock()
           
 boolean getVerboseRecovery()
           
 boolean getVerboseRegister()
           
 boolean getVerboseReplication()
           
 boolean getVerboseWaitsFor()
           
 boolean getYieldCPU()
           
 void replicationManagerAddRemoteSite(ReplicationHostAddress repmgrRemoteAddr)
           
 void setAllowCreate(boolean allowCreate)
           
 void setCacheCount(int cacheCount)
           
 void setCacheSize(long cacheSize)
           
 void setCDBLockAllDatabases(boolean cdbLockAllDatabases)
           
 void setDirectDatabaseIO(boolean directDatabaseIO)
           
 void setDirectLogIO(boolean directLogIO)
           
 void setDsyncDatabases(boolean dsyncDatabases)
           
 void setDsyncLog(boolean dsyncLog)
           
 void setEncrypted(java.lang.String password)
           
 void setErrorHandler(ErrorHandler errorHandler)
           
 void setErrorPrefix(java.lang.String errorPrefix)
           
 void setErrorStream(java.io.OutputStream errorStream)
           
 void setEventHandler(EventHandler eventHandler)
           
 void setFeedbackHandler(FeedbackHandler feedbackHandler)
           
 void setInitializeCache(boolean initializeCache)
           
 void setInitializeCDB(boolean initializeCDB)
           
 void setInitializeLocking(boolean initializeLocking)
           
 void setInitializeLogging(boolean initializeLogging)
           
 void setInitializeRegions(boolean initializeRegions)
           
 void setInitializeReplication(boolean initializeReplication)
           
 void setJoinEnvironment(boolean joinEnvironment)
           
 void setLockConflicts(byte[][] lockConflicts)
           
 void setLockDetectMode(LockDetectMode lockDetectMode)
           
 void setLockDown(boolean lockDown)
           
 void setLockTimeout(long lockTimeout)
           
 void setLogAutoRemove(boolean logAutoRemove)
           
 void setLogBufferSize(int logBufferSize)
           
 void setLogDirectory(java.io.File logDirectory)
           
 void setLogFileMode(int logFileMode)
           
 void setLogInMemory(boolean logInMemory)
           
 void setLogRecordHandler(LogRecordHandler logRecordHandler)
           
 void setLogRegionSize(int logRegionSize)
           
 void setMaxLockers(int maxLockers)
           
 void setMaxLockObjects(int maxLockObjects)
           
 void setMaxLocks(int maxLocks)
           
 void setMaxLogFileSize(int maxLogFileSize)
           
 void setMaxMutexes(int maxMutexes)
           
 void setMaxOpenFiles(int maxOpenFiles)
           
 void setMaxWrite(int maxWrite, int maxWriteSleep)
           
 void setMessageHandler(MessageHandler messageHandler)
           
 void setMessageStream(java.io.OutputStream messageStream)
           
 void setMMapSize(long mmapSize)
           
 void setMode(int mode)
           
 void setMultiversion(boolean multiversion)
           
 void setMutexAlignment(int mutexAlignment)
           
 void setMutexIncrement(int mutexIncrement)
           
 void setMutexTestAndSetSpins(int mutexTestAndSetSpins)
           
 void setNoLocking(boolean noLocking)
           
 void setNoMMap(boolean noMMap)
           
 void setNoPanic(boolean noPanic)
           
 void setOverwrite(boolean overwrite)
           
 void setPanicHandler(PanicHandler panicHandler)
           
 void setPrivate(boolean isPrivate)
           
 void setRegister(boolean register)
           
 void setReplicationLimit(long replicationLimit)
           
 void setReplicationManagerAckPolicy(ReplicationManagerAckPolicy repmgrAckPolicy)
           
 void setReplicationManagerLocalSite(ReplicationHostAddress repmgrLocalSiteAddr)
           
 void setReplicationNumSites(int replicationNSites)
           
 void setReplicationPriority(int replicationPriority)
           
 void setReplicationRequestMax(int replicationRequestMax)
           
 void setReplicationRequestMin(int replicationRequestMin)
           
 void setReplicationTransport(int envid, ReplicationTransport replicationTransport)
           
 void setRPCServer(java.lang.String rpcServer, long rpcClientTimeout, long rpcServerTimeout)
           
 void setRunFatalRecovery(boolean runFatalRecovery)
           
 void setRunRecovery(boolean runRecovery)
           
 void setSegmentId(long segmentId)
           
 void setSystemMemory(boolean systemMemory)
           
 void setTemporaryDirectory(java.io.File temporaryDirectory)
           
 void setTemporaryDirectory(java.lang.String temporaryDirectory)
           
 void setTestAndSetSpins(int mutexTestAndSetSpins)
           
 void setThreaded(boolean threaded)
           
 void setTransactional(boolean transactional)
           
 void setTxnMaxActive(int txnMaxActive)
           
 void setTxnNoSync(boolean txnNoSync)
           
 void setTxnNotDurable(boolean txnNotDurable)
           
 void setTxnSnapshot(boolean txnSnapshot)
           
 void setTxnTimeout(long txnTimeout)
           
 void setTxnTimestamp(java.util.Date txnTimestamp)
           
 void setTxnWriteNoSync(boolean txnWriteNoSync)
           
 void setUseEnvironment(boolean useEnvironment)
           
 void setUseEnvironmentRoot(boolean useEnvironmentRoot)
           
 void setVerboseDeadlock(boolean verboseDeadlock)
           
 void setVerboseRecovery(boolean verboseRecovery)
           
 void setVerboseRegister(boolean verboseRegister)
           
 void setVerboseReplication(boolean verboseReplication)
           
 void setVerboseWaitsFor(boolean verboseWaitsFor)
           
 void setYieldCPU(boolean yieldCPU)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final EnvironmentConfig DEFAULT
Constructor Detail

EnvironmentConfig

public EnvironmentConfig()
Method Detail

setAllowCreate

public void setAllowCreate(boolean allowCreate)

getAllowCreate

public boolean getAllowCreate()

setCacheSize

public void setCacheSize(long cacheSize)

getCacheSize

public long getCacheSize()

setCacheCount

public void setCacheCount(int cacheCount)

getCacheCount

public int getCacheCount()

setCDBLockAllDatabases

public void setCDBLockAllDatabases(boolean cdbLockAllDatabases)

getCDBLockAllDatabases

public boolean getCDBLockAllDatabases()

addDataDir

public void addDataDir(java.io.File dataDir)

addDataDir

public void addDataDir(java.lang.String dataDir)

getDataDirs

public java.io.File[] getDataDirs()

setDirectDatabaseIO

public void setDirectDatabaseIO(boolean directDatabaseIO)

getDirectDatabaseIO

public boolean getDirectDatabaseIO()

setDirectLogIO

public void setDirectLogIO(boolean directLogIO)

getDirectLogIO

public boolean getDirectLogIO()

setDsyncDatabases

public void setDsyncDatabases(boolean dsyncDatabases)

getDsyncDatabases

public boolean getDsyncDatabases()

setDsyncLog

public void setDsyncLog(boolean dsyncLog)

getDsyncLog

public boolean getDsyncLog()

setEncrypted

public void setEncrypted(java.lang.String password)

getEncrypted

public boolean getEncrypted()

setErrorHandler

public void setErrorHandler(ErrorHandler errorHandler)

getErrorHandler

public ErrorHandler getErrorHandler()

setErrorPrefix

public void setErrorPrefix(java.lang.String errorPrefix)

getErrorPrefix

public java.lang.String getErrorPrefix()

setErrorStream

public void setErrorStream(java.io.OutputStream errorStream)

getErrorStream

public java.io.OutputStream getErrorStream()

setFeedbackHandler

public void setFeedbackHandler(FeedbackHandler feedbackHandler)

getFeedbackHandler

public FeedbackHandler getFeedbackHandler()

setInitializeCache

public void setInitializeCache(boolean initializeCache)

getInitializeCache

public boolean getInitializeCache()

setInitializeCDB

public void setInitializeCDB(boolean initializeCDB)

getInitializeCDB

public boolean getInitializeCDB()

setInitializeLocking

public void setInitializeLocking(boolean initializeLocking)

getInitializeLocking

public boolean getInitializeLocking()

setInitializeLogging

public void setInitializeLogging(boolean initializeLogging)

getInitializeLogging

public boolean getInitializeLogging()

setInitializeRegions

public void setInitializeRegions(boolean initializeRegions)

getInitializeRegions

public boolean getInitializeRegions()

setInitializeReplication

public void setInitializeReplication(boolean initializeReplication)

getInitializeReplication

public boolean getInitializeReplication()

setJoinEnvironment

public void setJoinEnvironment(boolean joinEnvironment)

getJoinEnvironment

public boolean getJoinEnvironment()

setLockConflicts

public void setLockConflicts(byte[][] lockConflicts)

getLockConflicts

public byte[][] getLockConflicts()

setLockDetectMode

public void setLockDetectMode(LockDetectMode lockDetectMode)

getLockDetectMode

public LockDetectMode getLockDetectMode()

setLockDown

public void setLockDown(boolean lockDown)

getLockDown

public boolean getLockDown()

setLockTimeout

public void setLockTimeout(long lockTimeout)

getLockTimeout

public long getLockTimeout()

setLogAutoRemove

public void setLogAutoRemove(boolean logAutoRemove)

getLogAutoRemove

public boolean getLogAutoRemove()

setLogInMemory

public void setLogInMemory(boolean logInMemory)

getLogInMemory

public boolean getLogInMemory()

setLogRecordHandler

public void setLogRecordHandler(LogRecordHandler logRecordHandler)

getLogRecordHandler

public LogRecordHandler getLogRecordHandler()

setEventHandler

public void setEventHandler(EventHandler eventHandler)

getEventHandler

public EventHandler getEventHandler()

setReplicationManagerAckPolicy

public void setReplicationManagerAckPolicy(ReplicationManagerAckPolicy repmgrAckPolicy)

getReplicationManagerAckPolicy

public ReplicationManagerAckPolicy getReplicationManagerAckPolicy()

setReplicationManagerLocalSite

public void setReplicationManagerLocalSite(ReplicationHostAddress repmgrLocalSiteAddr)

getReplicationManagerLocalSite

public ReplicationHostAddress getReplicationManagerLocalSite()

replicationManagerAddRemoteSite

public void replicationManagerAddRemoteSite(ReplicationHostAddress repmgrRemoteAddr)

setMaxLocks

public void setMaxLocks(int maxLocks)

getMaxLocks

public int getMaxLocks()

setMaxLockers

public void setMaxLockers(int maxLockers)

getMaxLockers

public int getMaxLockers()

setMaxLockObjects

public void setMaxLockObjects(int maxLockObjects)

getMaxLockObjects

public int getMaxLockObjects()

setMaxLogFileSize

public void setMaxLogFileSize(int maxLogFileSize)

getMaxLogFileSize

public int getMaxLogFileSize()

setLogBufferSize

public void setLogBufferSize(int logBufferSize)

getLogBufferSize

public int getLogBufferSize()

setLogDirectory

public void setLogDirectory(java.io.File logDirectory)

getLogDirectory

public java.io.File getLogDirectory()

setLogFileMode

public void setLogFileMode(int logFileMode)

getLogFileMode

public int getLogFileMode()

setLogRegionSize

public void setLogRegionSize(int logRegionSize)

getLogRegionSize

public int getLogRegionSize()

setMaxOpenFiles

public void setMaxOpenFiles(int maxOpenFiles)

getMaxOpenFiles

public int getMaxOpenFiles()

setMaxWrite

public void setMaxWrite(int maxWrite,
                        int maxWriteSleep)

getMaxWrite

public int getMaxWrite()

getMaxWriteSleep

public int getMaxWriteSleep()

setMessageHandler

public void setMessageHandler(MessageHandler messageHandler)

getMessageHandler

public MessageHandler getMessageHandler()

setMessageStream

public void setMessageStream(java.io.OutputStream messageStream)

getMessageStream

public java.io.OutputStream getMessageStream()

setMMapSize

public void setMMapSize(long mmapSize)

getMMapSize

public long getMMapSize()

setMode

public void setMode(int mode)

getMode

public long getMode()

setMultiversion

public void setMultiversion(boolean multiversion)

getMultiversion

public boolean getMultiversion()

setNoLocking

public void setNoLocking(boolean noLocking)

getNoLocking

public boolean getNoLocking()

setNoMMap

public void setNoMMap(boolean noMMap)

getNoMMap

public boolean getNoMMap()

setNoPanic

public void setNoPanic(boolean noPanic)

getNoPanic

public boolean getNoPanic()

setOverwrite

public void setOverwrite(boolean overwrite)

getOverwrite

public boolean getOverwrite()

setPanicHandler

public void setPanicHandler(PanicHandler panicHandler)

getPanicHandler

public PanicHandler getPanicHandler()

setPrivate

public void setPrivate(boolean isPrivate)

getPrivate

public boolean getPrivate()

setReplicationLimit

public void setReplicationLimit(long replicationLimit)

getReplicationLimit

public long getReplicationLimit()

setReplicationRequestMin

public void setReplicationRequestMin(int replicationRequestMin)

getReplicationRequestMin

public int getReplicationRequestMin()

setReplicationRequestMax

public void setReplicationRequestMax(int replicationRequestMax)

getReplicationRequestMax

public int getReplicationRequestMax()

setReplicationTransport

public void setReplicationTransport(int envid,
                                    ReplicationTransport replicationTransport)

getReplicationTransport

public ReplicationTransport getReplicationTransport()

setRegister

public void setRegister(boolean register)

getRegister

public boolean getRegister()

setRunFatalRecovery

public void setRunFatalRecovery(boolean runFatalRecovery)

getRunFatalRecovery

public boolean getRunFatalRecovery()

setRunRecovery

public void setRunRecovery(boolean runRecovery)

getRunRecovery

public boolean getRunRecovery()

setSystemMemory

public void setSystemMemory(boolean systemMemory)

getSystemMemory

public boolean getSystemMemory()

setRPCServer

public void setRPCServer(java.lang.String rpcServer,
                         long rpcClientTimeout,
                         long rpcServerTimeout)

setSegmentId

public void setSegmentId(long segmentId)

getSegmentId

public long getSegmentId()

setTemporaryDirectory

public void setTemporaryDirectory(java.io.File temporaryDirectory)

setTemporaryDirectory

public void setTemporaryDirectory(java.lang.String temporaryDirectory)

getTemporaryDirectory

public java.io.File getTemporaryDirectory()

setMutexAlignment

public void setMutexAlignment(int mutexAlignment)

getMutexAlignment

public int getMutexAlignment()

setMutexIncrement

public void setMutexIncrement(int mutexIncrement)

getMutexIncrement

public int getMutexIncrement()

setMaxMutexes

public void setMaxMutexes(int maxMutexes)

getMaxMutexes

public int getMaxMutexes()

setMutexTestAndSetSpins

public void setMutexTestAndSetSpins(int mutexTestAndSetSpins)

getMutexTestAndSetSpins

public int getMutexTestAndSetSpins()

setReplicationNumSites

public void setReplicationNumSites(int replicationNSites)

getReplicationNumSites

public int getReplicationNumSites()

setReplicationPriority

public void setReplicationPriority(int replicationPriority)

getReplicationPriority

public int getReplicationPriority()

setTestAndSetSpins

public void setTestAndSetSpins(int mutexTestAndSetSpins)

getTestAndSetSpins

public int getTestAndSetSpins()

setThreaded

public void setThreaded(boolean threaded)

getThreaded

public boolean getThreaded()

setTransactional

public void setTransactional(boolean transactional)

getTransactional

public boolean getTransactional()

setTxnNoSync

public void setTxnNoSync(boolean txnNoSync)

getTxnNoSync

public boolean getTxnNoSync()

setTxnNotDurable

public void setTxnNotDurable(boolean txnNotDurable)

getTxnNotDurable

public boolean getTxnNotDurable()

setTxnSnapshot

public void setTxnSnapshot(boolean txnSnapshot)

getTxnSnapshot

public boolean getTxnSnapshot()

setTxnMaxActive

public void setTxnMaxActive(int txnMaxActive)

getTxnMaxActive

public int getTxnMaxActive()

setTxnTimeout

public void setTxnTimeout(long txnTimeout)

getTxnTimeout

public long getTxnTimeout()

setTxnTimestamp

public void setTxnTimestamp(java.util.Date txnTimestamp)

getTxnTimestamp

public java.util.Date getTxnTimestamp()

setTxnWriteNoSync

public void setTxnWriteNoSync(boolean txnWriteNoSync)

getTxnWriteNoSync

public boolean getTxnWriteNoSync()

setUseEnvironment

public void setUseEnvironment(boolean useEnvironment)

getUseEnvironment

public boolean getUseEnvironment()

setUseEnvironmentRoot

public void setUseEnvironmentRoot(boolean useEnvironmentRoot)

getUseEnvironmentRoot

public boolean getUseEnvironmentRoot()

setVerboseDeadlock

public void setVerboseDeadlock(boolean verboseDeadlock)

getVerboseDeadlock

public boolean getVerboseDeadlock()

setVerboseRecovery

public void setVerboseRecovery(boolean verboseRecovery)

getVerboseRecovery

public boolean getVerboseRecovery()

setVerboseRegister

public void setVerboseRegister(boolean verboseRegister)

getVerboseRegister

public boolean getVerboseRegister()

setVerboseReplication

public void setVerboseReplication(boolean verboseReplication)

getVerboseReplication

public boolean getVerboseReplication()

setVerboseWaitsFor

public void setVerboseWaitsFor(boolean verboseWaitsFor)

getVerboseWaitsFor

public boolean getVerboseWaitsFor()

setYieldCPU

public void setYieldCPU(boolean yieldCPU)

getYieldCPU

public boolean getYieldCPU()