⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 environmentconfig.java

📁 关于Berkelay数据库的共享源码
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
    public void setLogFileMode(final int logFileMode) {        this.logFileMode = logFileMode;    }    public int getLogFileMode() {        return logFileMode;    }    public void setLogRegionSize(final int logRegionSize) {        this.logRegionSize = logRegionSize;    }    public int getLogRegionSize() {        return logRegionSize;    }    public void setMaxOpenFiles(final int maxOpenFiles) {        this.maxOpenFiles = maxOpenFiles;    }    public int getMaxOpenFiles() {        return maxOpenFiles;    }    public void setMaxWrite(final int maxWrite, final int maxWriteSleep) {        this.maxWrite = maxWrite;        this.maxWriteSleep = maxWriteSleep;    }    public int getMaxWrite() {        return maxWrite;    }    public int getMaxWriteSleep() {        return maxWriteSleep;    }    public void setMessageHandler(final MessageHandler messageHandler) {        this.messageHandler = messageHandler;    }    public MessageHandler getMessageHandler() {        return messageHandler;    }    public void setMessageStream(final java.io.OutputStream messageStream) {        this.messageStream = messageStream;    }    public java.io.OutputStream getMessageStream() {        return messageStream;    }    public void setMMapSize(final long mmapSize) {        this.mmapSize = mmapSize;    }    public long getMMapSize() {        return mmapSize;    }    public void setMode(final int mode) {        this.mode = mode;    }    public long getMode() {        return mode;    }    public void setMultiversion(final boolean multiversion) {        this.multiversion = multiversion;    }    public boolean getMultiversion() {        return multiversion;    }    public void setNoLocking(final boolean noLocking) {        this.noLocking = noLocking;    }    public boolean getNoLocking() {        return noLocking;    }    public void setNoMMap(final boolean noMMap) {        this.noMMap = noMMap;    }    public boolean getNoMMap() {        return noMMap;    }    public void setNoPanic(final boolean noPanic) {        this.noPanic = noPanic;    }    public boolean getNoPanic() {        return noPanic;    }    public void setOverwrite(final boolean overwrite) {        this.overwrite = overwrite;    }    public boolean getOverwrite() {        return overwrite;    }    public void setPanicHandler(final PanicHandler panicHandler) {        this.panicHandler = panicHandler;    }    public PanicHandler getPanicHandler() {        return panicHandler;    }    public void setPrivate(final boolean isPrivate) {        this.isPrivate = isPrivate;    }    public boolean getPrivate() {        return isPrivate;    }    public void setReplicationLimit(final long replicationLimit) {        this.replicationLimit = replicationLimit;    }    public long getReplicationLimit() {        return replicationLimit;    }    public void setReplicationRequestMin(final int replicationRequestMin) {        this.replicationRequestMin = replicationRequestMin;    }    public int getReplicationRequestMin() {        return replicationRequestMin;    }    public void setReplicationRequestMax(final int replicationRequestMax) {        this.replicationRequestMax = replicationRequestMax;    }    public int getReplicationRequestMax() {        return replicationRequestMax;    }    public void setReplicationTransport(final int envid,        final ReplicationTransport replicationTransport) {        this.envid = envid;        this.replicationTransport = replicationTransport;    }    public ReplicationTransport getReplicationTransport() {        return replicationTransport;    }    public void setRegister(final boolean register) {        this.register = register;    }    public boolean getRegister() {        return register;    }    public void setRunFatalRecovery(final boolean runFatalRecovery) {        this.runFatalRecovery = runFatalRecovery;    }    public boolean getRunFatalRecovery() {        return runFatalRecovery;    }    public void setRunRecovery(final boolean runRecovery) {        this.runRecovery = runRecovery;    }    public boolean getRunRecovery() {        return runRecovery;    }    public void setSystemMemory(final boolean systemMemory) {        this.systemMemory = systemMemory;    }    public boolean getSystemMemory() {        return systemMemory;    }    public void setRPCServer(final String rpcServer,                             final long rpcClientTimeout,                             final long rpcServerTimeout) {        this.rpcServer = rpcServer;        this.rpcClientTimeout = rpcClientTimeout;        this.rpcServerTimeout = rpcServerTimeout;        // Turn off threading for RPC client handles.        this.threaded = false;    }    public void setSegmentId(final long segmentId) {        this.segmentId = segmentId;    }    public long getSegmentId() {        return segmentId;    }    public void setTemporaryDirectory(final java.io.File temporaryDirectory) {        this.temporaryDirectory = temporaryDirectory;    }    /* @deprecated */    public void setTemporaryDirectory(final String temporaryDirectory) {        this.setTemporaryDirectory(new java.io.File(temporaryDirectory));    }    public java.io.File getTemporaryDirectory() {        return temporaryDirectory;    }    public void setMutexAlignment(final int mutexAlignment) {        this.mutexAlignment = mutexAlignment;    }    public int getMutexAlignment() {        return mutexAlignment;    }    public void setMutexIncrement(final int mutexIncrement) {        this.mutexIncrement = mutexIncrement;    }    public int getMutexIncrement() {        return mutexIncrement;    }    public void setMaxMutexes(final int maxMutexes) {        this.maxMutexes = maxMutexes;    }    public int getMaxMutexes() {        return maxMutexes;    }    public void setMutexTestAndSetSpins(final int mutexTestAndSetSpins) {        this.mutexTestAndSetSpins = mutexTestAndSetSpins;    }    public int getMutexTestAndSetSpins() {        return mutexTestAndSetSpins;    }    public void setReplicationNumSites(final int replicationNSites) {        this.replicationNSites = replicationNSites;    }    public int getReplicationNumSites() {        return replicationNSites;    }    public void setReplicationPriority(final int replicationPriority) {        this.replicationPriority = replicationPriority;    }    public int getReplicationPriority() {        return replicationPriority;    }    /* @deprecated Renamed setMutexTestAndSetSpins */    public void setTestAndSetSpins(final int mutexTestAndSetSpins) {        setMutexTestAndSetSpins(mutexTestAndSetSpins);    }    /* @deprecated Renamed getMutexTestAndSetSpins */    public int getTestAndSetSpins() {        return getMutexTestAndSetSpins();    }    public void setThreaded(final boolean threaded) {        this.threaded = threaded;    }    public boolean getThreaded() {        return threaded;    }    public void setTransactional(final boolean transactional) {        this.transactional = transactional;    }    public boolean getTransactional() {        return transactional;    }    public void setTxnNoSync(final boolean txnNoSync) {        this.txnNoSync = txnNoSync;    }    public boolean getTxnNoSync() {        return txnNoSync;    }    public void setTxnNotDurable(final boolean txnNotDurable) {        this.txnNotDurable = txnNotDurable;    }    public boolean getTxnNotDurable() {        return txnNotDurable;    }    public void setTxnSnapshot(final boolean txnSnapshot) {        this.txnSnapshot = txnSnapshot;    }    public boolean getTxnSnapshot() {        return txnSnapshot;    }    public void setTxnMaxActive(final int txnMaxActive) {        this.txnMaxActive = txnMaxActive;    }    public int getTxnMaxActive() {        return txnMaxActive;    }    public void setTxnTimeout(final long txnTimeout) {        this.txnTimeout = txnTimeout;    }    public long getTxnTimeout() {        return txnTimeout;    }    public void setTxnTimestamp(final java.util.Date txnTimestamp) {        this.txnTimestamp = txnTimestamp;    }    public java.util.Date getTxnTimestamp() {        return txnTimestamp;    }    public void setTxnWriteNoSync(final boolean txnWriteNoSync) {        this.txnWriteNoSync = txnWriteNoSync;    }    public boolean getTxnWriteNoSync() {        return txnWriteNoSync;    }    public void setUseEnvironment(final boolean useEnvironment) {        this.useEnvironment = useEnvironment;    }    public boolean getUseEnvironment() {        return useEnvironment;    }    public void setUseEnvironmentRoot(final boolean useEnvironmentRoot) {        this.useEnvironmentRoot = useEnvironmentRoot;    }    public boolean getUseEnvironmentRoot() {        return useEnvironmentRoot;    }    public void setVerboseDeadlock(final boolean verboseDeadlock) {        this.verboseDeadlock = verboseDeadlock;    }    public boolean getVerboseDeadlock() {        return verboseDeadlock;    }    public void setVerboseRecovery(final boolean verboseRecovery) {        this.verboseRecovery = verboseRecovery;    }    public boolean getVerboseRecovery() {        return verboseRecovery;    }    public void setVerboseRegister(final boolean verboseRegister) {        this.verboseRegister = verboseRegister;    }    public boolean getVerboseRegister() {        return verboseRegister;    }    public void setVerboseReplication(final boolean verboseReplication) {        this.verboseReplication = verboseReplication;    }    public boolean getVerboseReplication() {        return verboseReplication;    }    public void setVerboseWaitsFor(final boolean verboseWaitsFor) {        this.verboseWaitsFor = verboseWaitsFor;    }    public boolean getVerboseWaitsFor() {        return verboseWaitsFor;    }    public void setYieldCPU(final boolean yieldCPU) {        this.yieldCPU = yieldCPU;    }    public boolean getYieldCPU() {        return yieldCPU;    }    private boolean lockConflictsEqual(byte[][] lc1, byte[][]lc2) {        if (lc1 == lc2)            return true;        if (lc1 == null || lc2 == null || lc1.length != lc2.length)            return false;        for (int i = 0; i < lc1.length; i++) {            if (lc1[i].length != lc2[i].length)                return false;            for (int j = 0; j < lc1[i].length; j++)                if (lc1[i][j] != lc2[i][j])                    return false;        }        return true;    }    /* package */    DbEnv openEnvironment(final java.io.File home)        throws DatabaseException, java.io.FileNotFoundException {        final DbEnv dbenv = createEnvironment();        int openFlags = 0;        openFlags |= allowCreate ? DbConstants.DB_CREATE : 0;        openFlags |= initializeCache ? DbConstants.DB_INIT_MPOOL : 0;        openFlags |= initializeCDB ? DbConstants.DB_INIT_CDB : 0;        openFlags |= initializeLocking ? DbConstants.DB_INIT_LOCK : 0;        openFlags |= initializeLogging ? DbConstants.DB_INIT_LOG : 0;        openFlags |= initializeReplication ? DbConstants.DB_INIT_REP : 0;        openFlags |= joinEnvironment ? DbConstants.DB_JOINENV : 0;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -