876 lines
44 KiB
HTML
876 lines
44 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||
|
<!-- NewPage -->
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<!-- Generated by javadoc (1.8.0_151) on Tue Oct 31 17:36:45 EDT 2017 -->
|
||
|
<title>EnvironmentMutableConfig (Oracle - Berkeley DB Java Edition API)</title>
|
||
|
<meta name="date" content="2017-10-31">
|
||
|
<link rel="stylesheet" type="text/css" href="../../../style.css" title="Style">
|
||
|
<script type="text/javascript" src="../../../script.js"></script>
|
||
|
</head>
|
||
|
<body>
|
||
|
<script type="text/javascript"><!--
|
||
|
try {
|
||
|
if (location.href.indexOf('is-external=true') == -1) {
|
||
|
parent.document.title="EnvironmentMutableConfig (Oracle - Berkeley DB Java Edition API)";
|
||
|
}
|
||
|
}
|
||
|
catch(err) {
|
||
|
}
|
||
|
//-->
|
||
|
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":42,"i9":42,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":42,"i19":42,"i20":10};
|
||
|
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]};
|
||
|
var altColor = "altColor";
|
||
|
var rowColor = "rowColor";
|
||
|
var tableTab = "tableTab";
|
||
|
var activeTableTab = "activeTableTab";
|
||
|
</script>
|
||
|
<noscript>
|
||
|
<div>JavaScript is disabled on your browser.</div>
|
||
|
</noscript>
|
||
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
||
|
<div class="topNav"><a name="navbar.top">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
||
|
<a name="navbar.top.firstrow">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="navList" title="Navigation">
|
||
|
<li><a href="../../../overview-summary.html">Overview</a></li>
|
||
|
<li><a href="package-summary.html">Package</a></li>
|
||
|
<li class="navBarCell1Rev">Class</li>
|
||
|
<li><a href="class-use/EnvironmentMutableConfig.html">Use</a></li>
|
||
|
<li><a href="package-tree.html">Tree</a></li>
|
||
|
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
|
||
|
<li><a href="../../../index-all.html">Index</a></li>
|
||
|
<li><a href="../../../help-doc.html">Help</a></li>
|
||
|
</ul>
|
||
|
<div class="aboutLanguage"><b>Berkeley DB Java Edition</b><br><font size=\"-1\"> version 7.5.11</font>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="subNav">
|
||
|
<ul class="navList">
|
||
|
<li><a href="../../../com/sleepycat/je/EnvironmentLockedException.html" title="class in com.sleepycat.je"><span class="typeNameLink">Prev Class</span></a></li>
|
||
|
<li><a href="../../../com/sleepycat/je/EnvironmentNotFoundException.html" title="class in com.sleepycat.je"><span class="typeNameLink">Next Class</span></a></li>
|
||
|
</ul>
|
||
|
<ul class="navList">
|
||
|
<li><a href="../../../index.html?com/sleepycat/je/EnvironmentMutableConfig.html" target="_top">Frames</a></li>
|
||
|
<li><a href="EnvironmentMutableConfig.html" target="_top">No Frames</a></li>
|
||
|
</ul>
|
||
|
<ul class="navList" id="allclasses_navbar_top">
|
||
|
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
|
||
|
</ul>
|
||
|
<div>
|
||
|
<script type="text/javascript"><!--
|
||
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
||
|
if(window==top) {
|
||
|
allClassesLink.style.display = "block";
|
||
|
}
|
||
|
else {
|
||
|
allClassesLink.style.display = "none";
|
||
|
}
|
||
|
//-->
|
||
|
</script>
|
||
|
</div>
|
||
|
<div>
|
||
|
<ul class="subNavList">
|
||
|
<li>Summary: </li>
|
||
|
<li>Nested | </li>
|
||
|
<li>Field | </li>
|
||
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
||
|
<li><a href="#method.summary">Method</a></li>
|
||
|
</ul>
|
||
|
<ul class="subNavList">
|
||
|
<li>Detail: </li>
|
||
|
<li>Field | </li>
|
||
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
||
|
<li><a href="#method.detail">Method</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<a name="skip.navbar.top">
|
||
|
<!-- -->
|
||
|
</a></div>
|
||
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
||
|
<!-- ======== START OF CLASS DATA ======== -->
|
||
|
<div class="header">
|
||
|
<div class="subTitle">com.sleepycat.je</div>
|
||
|
<h2 title="Class EnvironmentMutableConfig" class="title">Class EnvironmentMutableConfig</h2>
|
||
|
</div>
|
||
|
<div class="contentContainer">
|
||
|
<ul class="inheritance">
|
||
|
<li>java.lang.Object</li>
|
||
|
<li>
|
||
|
<ul class="inheritance">
|
||
|
<li>com.sleepycat.je.EnvironmentMutableConfig</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<div class="description">
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<dl>
|
||
|
<dt>All Implemented Interfaces:</dt>
|
||
|
<dd>java.io.Serializable, java.lang.Cloneable</dd>
|
||
|
</dl>
|
||
|
<dl>
|
||
|
<dt>Direct Known Subclasses:</dt>
|
||
|
<dd><a href="../../../com/sleepycat/je/EnvironmentConfig.html" title="class in com.sleepycat.je">EnvironmentConfig</a></dd>
|
||
|
</dl>
|
||
|
<hr>
|
||
|
<br>
|
||
|
<pre>public class <span class="typeNameLabel">EnvironmentMutableConfig</span>
|
||
|
extends java.lang.Object
|
||
|
implements java.lang.Cloneable, java.io.Serializable</pre>
|
||
|
<div class="block">Specifies the environment attributes that may be changed after the
|
||
|
environment has been opened. EnvironmentMutableConfig is a parameter to
|
||
|
<a href="../../../com/sleepycat/je/Environment.html#setMutableConfig-com.sleepycat.je.EnvironmentMutableConfig-"><code>Environment.setMutableConfig(com.sleepycat.je.EnvironmentMutableConfig)</code></a> and is returned by <a href="../../../com/sleepycat/je/Environment.html#getMutableConfig--"><code>Environment.getMutableConfig()</code></a>.
|
||
|
|
||
|
<p>There are two types of mutable environment properties: per-environment
|
||
|
handle properties, and environment wide properties.</p>
|
||
|
|
||
|
<h4>Per-Environment Handle Properties</h4>
|
||
|
|
||
|
<p>Per-environment handle properties apply only to a single Environment
|
||
|
instance. For example, to change the default transaction commit behavior
|
||
|
for a single environment handle, do this:</p>
|
||
|
|
||
|
<blockquote><pre>
|
||
|
// Specify no-sync behavior for a given handle.
|
||
|
EnvironmentMutableConfig mutableConfig = env.getMutableConfig();
|
||
|
mutableConfig.setDurability(Durability.COMMIT_NO_SYNC);
|
||
|
env.setMutableConfig(mutableConfig);
|
||
|
</pre></blockquote>
|
||
|
|
||
|
<p>The per-environment handle properties are listed below. These properties
|
||
|
are accessed using the setter and getter methods listed, as shown in the
|
||
|
example above.</p>
|
||
|
|
||
|
<ul>
|
||
|
<li><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#setDurability-com.sleepycat.je.Durability-"><code>setDurability(com.sleepycat.je.Durability)</code></a>, <a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#getDurability--"><code>getDurability()</code></a></li>
|
||
|
<li><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#setTxnNoSync-boolean-"><code>setTxnNoSync(boolean)</code></a>, <a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#getTxnNoSync--"><code>getTxnNoSync()</code></a> <em>deprecated</em></li>
|
||
|
<li><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#setTxnWriteNoSync-boolean-"><code>setTxnWriteNoSync(boolean)</code></a>, <a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#getTxnWriteNoSync--"><code>getTxnWriteNoSync()</code></a> <em>deprecated</em></li>
|
||
|
</ul>
|
||
|
|
||
|
<h4>Environment-Wide Mutable Properties</h4>
|
||
|
|
||
|
<p>Environment-wide mutable properties are those that can be changed for an
|
||
|
environment as a whole, irrespective of which environment instance (for the
|
||
|
same physical environment) is used. For example, to stop the cleaner daemon
|
||
|
thread, do this:</p>
|
||
|
|
||
|
<blockquote><pre>
|
||
|
// Stop the cleaner daemon threads for the environment.
|
||
|
EnvironmentMutableConfig mutableConfig = env.getMutableConfig();
|
||
|
mutableConfig.setConfigParam(EnvironmentConfig.ENV_RUN_CLEANER, "false");
|
||
|
env.setMutableConfig(mutableConfig);
|
||
|
</pre></blockquote>
|
||
|
|
||
|
<p>The environment-wide mutable properties are documented as such for each
|
||
|
EnvironmentConfig String constant.</p>
|
||
|
|
||
|
<h4>Getting the Current Environment Properties</h4>
|
||
|
|
||
|
To get the current "live" properties of an environment after constructing it
|
||
|
or changing its properties, you must call <a href="../../../com/sleepycat/je/Environment.html#getConfig--"><code>Environment.getConfig()</code></a> or
|
||
|
<a href="../../../com/sleepycat/je/Environment.html#getMutableConfig--"><code>Environment.getMutableConfig()</code></a>. The original EnvironmentConfig or
|
||
|
EnvironmentMutableConfig object used to set the properties is not kept up to
|
||
|
date as properties are changed, and does not reflect property validation or
|
||
|
properties that are computed.</div>
|
||
|
<dl>
|
||
|
<dt><span class="seeLabel">See Also:</span></dt>
|
||
|
<dd><a href="../../../com/sleepycat/je/EnvironmentConfig.html" title="class in com.sleepycat.je"><code>EnvironmentConfig</code></a>,
|
||
|
<a href="../../../serialized-form.html#com.sleepycat.je.EnvironmentMutableConfig">Serialized Form</a></dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="summary">
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="constructor.summary">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Constructor Summary</h3>
|
||
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
||
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
||
|
<tr>
|
||
|
<th class="colOne" scope="col">Constructor and Description</th>
|
||
|
</tr>
|
||
|
<tr class="altColor">
|
||
|
<td class="colOne"><code><span class="memberNameLink"><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#EnvironmentMutableConfig--">EnvironmentMutableConfig</a></span>()</code>
|
||
|
<div class="block">An instance created using the default constructor is initialized with
|
||
|
the system's default settings.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<!-- ========== METHOD SUMMARY =========== -->
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="method.summary">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Method Summary</h3>
|
||
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
||
|
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd"> </span></span></caption>
|
||
|
<tr>
|
||
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
||
|
<th class="colLast" scope="col">Method and Description</th>
|
||
|
</tr>
|
||
|
<tr id="i0" class="altColor">
|
||
|
<td class="colFirst"><code><a href="../../../com/sleepycat/je/CacheMode.html" title="enum in com.sleepycat.je">CacheMode</a></code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#getCacheMode--">getCacheMode</a></span>()</code>
|
||
|
<div class="block">Returns the default <code>CacheMode</code> used for operations performed in
|
||
|
this environment, or null if <a href="../../../com/sleepycat/je/CacheMode.html#DEFAULT"><code>CacheMode.DEFAULT</code></a> is used.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr id="i1" class="rowColor">
|
||
|
<td class="colFirst"><code>int</code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#getCachePercent--">getCachePercent</a></span>()</code>
|
||
|
<div class="block">A convenience method for getting <a href="../../../com/sleepycat/je/EnvironmentConfig.html#MAX_MEMORY_PERCENT"><code>EnvironmentConfig.MAX_MEMORY_PERCENT</code></a>.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr id="i2" class="altColor">
|
||
|
<td class="colFirst"><code>long</code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#getCacheSize--">getCacheSize</a></span>()</code>
|
||
|
<div class="block">Returns the memory available to the database system, in bytes.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr id="i3" class="rowColor">
|
||
|
<td class="colFirst"><code>java.lang.String</code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#getConfigParam-java.lang.String-">getConfigParam</a></span>(java.lang.String paramName)</code>
|
||
|
<div class="block">Returns the value for this configuration parameter.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr id="i4" class="altColor">
|
||
|
<td class="colFirst"><code><a href="../../../com/sleepycat/je/Durability.html" title="class in com.sleepycat.je">Durability</a></code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#getDurability--">getDurability</a></span>()</code>
|
||
|
<div class="block">Convenience method for setting <a href="../../../com/sleepycat/je/EnvironmentConfig.html#TXN_DURABILITY"><code>EnvironmentConfig.TXN_DURABILITY</code></a>.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr id="i5" class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../../../com/sleepycat/je/ExceptionListener.html" title="interface in com.sleepycat.je">ExceptionListener</a></code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#getExceptionListener--">getExceptionListener</a></span>()</code>
|
||
|
<div class="block">Returns the exception listener, if set.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr id="i6" class="altColor">
|
||
|
<td class="colFirst"><code>long</code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#getMaxDisk--">getMaxDisk</a></span>()</code>
|
||
|
<div class="block">A convenience method for getting <a href="../../../com/sleepycat/je/EnvironmentConfig.html#MAX_DISK"><code>EnvironmentConfig.MAX_DISK</code></a>.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr id="i7" class="rowColor">
|
||
|
<td class="colFirst"><code>long</code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#getOffHeapCacheSize--">getOffHeapCacheSize</a></span>()</code>
|
||
|
<div class="block">A convenience method for getting
|
||
|
<a href="../../../com/sleepycat/je/EnvironmentConfig.html#MAX_OFF_HEAP_MEMORY"><code>EnvironmentConfig.MAX_OFF_HEAP_MEMORY</code></a>.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr id="i8" class="altColor">
|
||
|
<td class="colFirst"><code>boolean</code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#getTxnNoSync--">getTxnNoSync</a></span>()</code>
|
||
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
|
||
|
<div class="block"><span class="deprecationComment">replaced by <a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#getDurability--"><code>getDurability()</code></a></span></div>
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr id="i9" class="rowColor">
|
||
|
<td class="colFirst"><code>boolean</code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#getTxnWriteNoSync--">getTxnWriteNoSync</a></span>()</code>
|
||
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
|
||
|
<div class="block"><span class="deprecationComment">replaced by <a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#getDurability--"><code>getDurability()</code></a></span></div>
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr id="i10" class="altColor">
|
||
|
<td class="colFirst"><code><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html" title="class in com.sleepycat.je">EnvironmentMutableConfig</a></code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#setCacheMode-com.sleepycat.je.CacheMode-">setCacheMode</a></span>(<a href="../../../com/sleepycat/je/CacheMode.html" title="enum in com.sleepycat.je">CacheMode</a> cacheMode)</code>
|
||
|
<div class="block">Sets the default <code>CacheMode</code> used for operations performed in this
|
||
|
environment.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr id="i11" class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html" title="class in com.sleepycat.je">EnvironmentMutableConfig</a></code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#setCachePercent-int-">setCachePercent</a></span>(int percent)</code>
|
||
|
<div class="block">A convenience method for setting <a href="../../../com/sleepycat/je/EnvironmentConfig.html#MAX_MEMORY_PERCENT"><code>EnvironmentConfig.MAX_MEMORY_PERCENT</code></a>.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr id="i12" class="altColor">
|
||
|
<td class="colFirst"><code><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html" title="class in com.sleepycat.je">EnvironmentMutableConfig</a></code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#setCacheSize-long-">setCacheSize</a></span>(long totalBytes)</code>
|
||
|
<div class="block">A convenience method for setting <a href="../../../com/sleepycat/je/EnvironmentConfig.html#MAX_MEMORY"><code>EnvironmentConfig.MAX_MEMORY</code></a>.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr id="i13" class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html" title="class in com.sleepycat.je">EnvironmentMutableConfig</a></code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#setConfigParam-java.lang.String-java.lang.String-">setConfigParam</a></span>(java.lang.String paramName,
|
||
|
java.lang.String value)</code>
|
||
|
<div class="block">Set this configuration parameter.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr id="i14" class="altColor">
|
||
|
<td class="colFirst"><code><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html" title="class in com.sleepycat.je">EnvironmentMutableConfig</a></code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#setDurability-com.sleepycat.je.Durability-">setDurability</a></span>(<a href="../../../com/sleepycat/je/Durability.html" title="class in com.sleepycat.je">Durability</a> durability)</code>
|
||
|
<div class="block">Convenience method for setting <a href="../../../com/sleepycat/je/EnvironmentConfig.html#TXN_DURABILITY"><code>EnvironmentConfig.TXN_DURABILITY</code></a>.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr id="i15" class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html" title="class in com.sleepycat.je">EnvironmentMutableConfig</a></code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#setExceptionListener-com.sleepycat.je.ExceptionListener-">setExceptionListener</a></span>(<a href="../../../com/sleepycat/je/ExceptionListener.html" title="interface in com.sleepycat.je">ExceptionListener</a> exceptionListener)</code>
|
||
|
<div class="block">Sets the exception listener for an Environment.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr id="i16" class="altColor">
|
||
|
<td class="colFirst"><code><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html" title="class in com.sleepycat.je">EnvironmentMutableConfig</a></code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#setMaxDisk-long-">setMaxDisk</a></span>(long totalBytes)</code>
|
||
|
<div class="block">A convenience method for setting <a href="../../../com/sleepycat/je/EnvironmentConfig.html#MAX_DISK"><code>EnvironmentConfig.MAX_DISK</code></a>.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr id="i17" class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html" title="class in com.sleepycat.je">EnvironmentMutableConfig</a></code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#setOffHeapCacheSize-long-">setOffHeapCacheSize</a></span>(long totalBytes)</code>
|
||
|
<div class="block">A convenience method for setting
|
||
|
<a href="../../../com/sleepycat/je/EnvironmentConfig.html#MAX_OFF_HEAP_MEMORY"><code>EnvironmentConfig.MAX_OFF_HEAP_MEMORY</code></a>.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr id="i18" class="altColor">
|
||
|
<td class="colFirst"><code><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html" title="class in com.sleepycat.je">EnvironmentMutableConfig</a></code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#setTxnNoSync-boolean-">setTxnNoSync</a></span>(boolean noSync)</code>
|
||
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
|
||
|
<div class="block"><span class="deprecationComment">replaced by <a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#setDurability-com.sleepycat.je.Durability-"><code>setDurability(com.sleepycat.je.Durability)</code></a></span></div>
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr id="i19" class="rowColor">
|
||
|
<td class="colFirst"><code><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html" title="class in com.sleepycat.je">EnvironmentMutableConfig</a></code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#setTxnWriteNoSync-boolean-">setTxnWriteNoSync</a></span>(boolean writeNoSync)</code>
|
||
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
|
||
|
<div class="block"><span class="deprecationComment">replaced by <a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#setDurability-com.sleepycat.je.Durability-"><code>setDurability(com.sleepycat.je.Durability)</code></a></span></div>
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr id="i20" class="altColor">
|
||
|
<td class="colFirst"><code>java.lang.String</code></td>
|
||
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#toString--">toString</a></span>()</code>
|
||
|
<div class="block">Display configuration values.</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Methods inherited from class java.lang.Object</h3>
|
||
|
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="details">
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="constructor.detail">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Constructor Detail</h3>
|
||
|
<a name="EnvironmentMutableConfig--">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockListLast">
|
||
|
<li class="blockList">
|
||
|
<h4>EnvironmentMutableConfig</h4>
|
||
|
<pre>public EnvironmentMutableConfig()</pre>
|
||
|
<div class="block">An instance created using the default constructor is initialized with
|
||
|
the system's default settings.</div>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<!-- ============ METHOD DETAIL ========== -->
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList"><a name="method.detail">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<h3>Method Detail</h3>
|
||
|
<a name="setTxnNoSync-boolean-">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setTxnNoSync</h4>
|
||
|
<pre>public <a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html" title="class in com.sleepycat.je">EnvironmentMutableConfig</a> setTxnNoSync(boolean noSync)</pre>
|
||
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">replaced by <a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#setDurability-com.sleepycat.je.Durability-"><code>setDurability(com.sleepycat.je.Durability)</code></a></span></div>
|
||
|
<div class="block">Configures the database environment for asynchronous transactions.</div>
|
||
|
<dl>
|
||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||
|
<dd><code>noSync</code> - If true, do not write or synchronously flush the log on
|
||
|
transaction commit. This means that transactions exhibit the ACI
|
||
|
(Atomicity, Consistency, and Isolation) properties, but not D
|
||
|
(Durability); that is, database integrity is maintained, but if the JVM
|
||
|
or operating system fails, it is possible some number of the most
|
||
|
recently committed transactions may be undone during recovery. The
|
||
|
number of transactions at risk is governed by how many updates fit into
|
||
|
a log buffer, how often the operating system flushes dirty buffers to
|
||
|
disk, and how often the database environment is checkpointed.
|
||
|
|
||
|
<p>This attribute is false by default for this class and for the
|
||
|
database environment.</p></dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="getTxnNoSync--">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>getTxnNoSync</h4>
|
||
|
<pre>public boolean getTxnNoSync()</pre>
|
||
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">replaced by <a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#getDurability--"><code>getDurability()</code></a></span></div>
|
||
|
<div class="block">Returns true if the database environment is configured for asynchronous
|
||
|
transactions.</div>
|
||
|
<dl>
|
||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
<dd>true if the database environment is configured for asynchronous
|
||
|
transactions.</dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setTxnWriteNoSync-boolean-">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setTxnWriteNoSync</h4>
|
||
|
<pre>public <a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html" title="class in com.sleepycat.je">EnvironmentMutableConfig</a> setTxnWriteNoSync(boolean writeNoSync)</pre>
|
||
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">replaced by <a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#setDurability-com.sleepycat.je.Durability-"><code>setDurability(com.sleepycat.je.Durability)</code></a></span></div>
|
||
|
<div class="block">Configures the database environment for transactions which write but do
|
||
|
not flush the log.</div>
|
||
|
<dl>
|
||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||
|
<dd><code>writeNoSync</code> - If true, write but do not synchronously flush the log
|
||
|
on transaction commit. This means that transactions exhibit the ACI
|
||
|
(Atomicity, Consistency, and Isolation) properties, but not D
|
||
|
(Durability); that is, database integrity is maintained, but if the
|
||
|
operating system fails, it is possible some number of the most recently
|
||
|
committed transactions may be undone during recovery. The number of
|
||
|
transactions at risk is governed by how often the operating system
|
||
|
flushes dirty buffers to disk, and how often the database environment is
|
||
|
checkpointed.
|
||
|
|
||
|
<p>The motivation for this attribute is to provide a transaction that
|
||
|
has more durability than asynchronous (nosync) transactions, but has
|
||
|
higher performance than synchronous transactions.</p>
|
||
|
|
||
|
<p>This attribute is false by default for this class and for the
|
||
|
database environment.</p></dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="getTxnWriteNoSync--">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>getTxnWriteNoSync</h4>
|
||
|
<pre>public boolean getTxnWriteNoSync()</pre>
|
||
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">replaced by <a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#getDurability--"><code>getDurability()</code></a></span></div>
|
||
|
<div class="block">Returns true if the database environment is configured for transactions
|
||
|
which write but do not flush the log.</div>
|
||
|
<dl>
|
||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
<dd>true if the database environment is configured for transactions
|
||
|
which write but do not flush the log.</dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setDurability-com.sleepycat.je.Durability-">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setDurability</h4>
|
||
|
<pre>public <a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html" title="class in com.sleepycat.je">EnvironmentMutableConfig</a> setDurability(<a href="../../../com/sleepycat/je/Durability.html" title="class in com.sleepycat.je">Durability</a> durability)</pre>
|
||
|
<div class="block">Convenience method for setting <a href="../../../com/sleepycat/je/EnvironmentConfig.html#TXN_DURABILITY"><code>EnvironmentConfig.TXN_DURABILITY</code></a>.</div>
|
||
|
<dl>
|
||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||
|
<dd><code>durability</code> - the new durability definition</dd>
|
||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
<dd>this</dd>
|
||
|
<dt><span class="seeLabel">See Also:</span></dt>
|
||
|
<dd><a href="../../../com/sleepycat/je/Durability.html" title="class in com.sleepycat.je"><code>Durability</code></a></dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="getDurability--">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>getDurability</h4>
|
||
|
<pre>public <a href="../../../com/sleepycat/je/Durability.html" title="class in com.sleepycat.je">Durability</a> getDurability()</pre>
|
||
|
<div class="block">Convenience method for setting <a href="../../../com/sleepycat/je/EnvironmentConfig.html#TXN_DURABILITY"><code>EnvironmentConfig.TXN_DURABILITY</code></a>.</div>
|
||
|
<dl>
|
||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
<dd>the durability setting currently associated with this config.</dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setCacheSize-long-">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setCacheSize</h4>
|
||
|
<pre>public <a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html" title="class in com.sleepycat.je">EnvironmentMutableConfig</a> setCacheSize(long totalBytes)
|
||
|
throws java.lang.IllegalArgumentException</pre>
|
||
|
<div class="block">A convenience method for setting <a href="../../../com/sleepycat/je/EnvironmentConfig.html#MAX_MEMORY"><code>EnvironmentConfig.MAX_MEMORY</code></a>.</div>
|
||
|
<dl>
|
||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||
|
<dd><code>totalBytes</code> - The memory available to the database system, in bytes.</dd>
|
||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
<dd>this</dd>
|
||
|
<dt><span class="throwsLabel">Throws:</span></dt>
|
||
|
<dd><code>java.lang.IllegalArgumentException</code> - if an invalid parameter is specified.</dd>
|
||
|
<dt><span class="seeLabel">See Also:</span></dt>
|
||
|
<dd><a href="../../../com/sleepycat/je/EnvironmentConfig.html#MAX_MEMORY"><code>EnvironmentConfig.MAX_MEMORY</code></a></dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="getCacheSize--">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>getCacheSize</h4>
|
||
|
<pre>public long getCacheSize()</pre>
|
||
|
<div class="block">Returns the memory available to the database system, in bytes. A valid
|
||
|
value is only available if this EnvironmentConfig object has been
|
||
|
returned from Environment.getConfig().</div>
|
||
|
<dl>
|
||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
<dd>The memory available to the database system, in bytes.</dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setCachePercent-int-">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setCachePercent</h4>
|
||
|
<pre>public <a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html" title="class in com.sleepycat.je">EnvironmentMutableConfig</a> setCachePercent(int percent)
|
||
|
throws java.lang.IllegalArgumentException</pre>
|
||
|
<div class="block">A convenience method for setting <a href="../../../com/sleepycat/je/EnvironmentConfig.html#MAX_MEMORY_PERCENT"><code>EnvironmentConfig.MAX_MEMORY_PERCENT</code></a>.</div>
|
||
|
<dl>
|
||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||
|
<dd><code>percent</code> - The percent of JVM memory to allocate to the JE cache.</dd>
|
||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
<dd>this</dd>
|
||
|
<dt><span class="throwsLabel">Throws:</span></dt>
|
||
|
<dd><code>java.lang.IllegalArgumentException</code> - if an invalid parameter is specified.</dd>
|
||
|
<dt><span class="seeLabel">See Also:</span></dt>
|
||
|
<dd><a href="../../../com/sleepycat/je/EnvironmentConfig.html#MAX_MEMORY_PERCENT"><code>EnvironmentConfig.MAX_MEMORY_PERCENT</code></a></dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="getCachePercent--">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>getCachePercent</h4>
|
||
|
<pre>public int getCachePercent()</pre>
|
||
|
<div class="block">A convenience method for getting <a href="../../../com/sleepycat/je/EnvironmentConfig.html#MAX_MEMORY_PERCENT"><code>EnvironmentConfig.MAX_MEMORY_PERCENT</code></a>.</div>
|
||
|
<dl>
|
||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
<dd>the percentage value used in the JE cache size calculation.</dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setOffHeapCacheSize-long-">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setOffHeapCacheSize</h4>
|
||
|
<pre>public <a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html" title="class in com.sleepycat.je">EnvironmentMutableConfig</a> setOffHeapCacheSize(long totalBytes)
|
||
|
throws java.lang.IllegalArgumentException</pre>
|
||
|
<div class="block">A convenience method for setting
|
||
|
<a href="../../../com/sleepycat/je/EnvironmentConfig.html#MAX_OFF_HEAP_MEMORY"><code>EnvironmentConfig.MAX_OFF_HEAP_MEMORY</code></a>.</div>
|
||
|
<dl>
|
||
|
<dt><span class="throwsLabel">Throws:</span></dt>
|
||
|
<dd><code>java.lang.IllegalArgumentException</code></dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="getOffHeapCacheSize--">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>getOffHeapCacheSize</h4>
|
||
|
<pre>public long getOffHeapCacheSize()</pre>
|
||
|
<div class="block">A convenience method for getting
|
||
|
<a href="../../../com/sleepycat/je/EnvironmentConfig.html#MAX_OFF_HEAP_MEMORY"><code>EnvironmentConfig.MAX_OFF_HEAP_MEMORY</code></a>.</div>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setMaxDisk-long-">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setMaxDisk</h4>
|
||
|
<pre>public <a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html" title="class in com.sleepycat.je">EnvironmentMutableConfig</a> setMaxDisk(long totalBytes)
|
||
|
throws java.lang.IllegalArgumentException</pre>
|
||
|
<div class="block">A convenience method for setting <a href="../../../com/sleepycat/je/EnvironmentConfig.html#MAX_DISK"><code>EnvironmentConfig.MAX_DISK</code></a>.</div>
|
||
|
<dl>
|
||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||
|
<dd><code>totalBytes</code> - is an upper limit on the number of bytes used for
|
||
|
data storage, or zero if no limit is desired.</dd>
|
||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
<dd>this</dd>
|
||
|
<dt><span class="throwsLabel">Throws:</span></dt>
|
||
|
<dd><code>java.lang.IllegalArgumentException</code> - if an invalid parameter is specified.</dd>
|
||
|
<dt><span class="seeLabel">See Also:</span></dt>
|
||
|
<dd><a href="../../../com/sleepycat/je/EnvironmentConfig.html#MAX_DISK"><code>EnvironmentConfig.MAX_DISK</code></a></dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="getMaxDisk--">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>getMaxDisk</h4>
|
||
|
<pre>public long getMaxDisk()</pre>
|
||
|
<div class="block">A convenience method for getting <a href="../../../com/sleepycat/je/EnvironmentConfig.html#MAX_DISK"><code>EnvironmentConfig.MAX_DISK</code></a>.</div>
|
||
|
<dl>
|
||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
<dd>the upper limit on the number of bytes used for data storage,
|
||
|
or zero if no limit is set.</dd>
|
||
|
<dt><span class="seeLabel">See Also:</span></dt>
|
||
|
<dd><a href="../../../com/sleepycat/je/EnvironmentConfig.html#MAX_DISK"><code>EnvironmentConfig.MAX_DISK</code></a></dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setExceptionListener-com.sleepycat.je.ExceptionListener-">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setExceptionListener</h4>
|
||
|
<pre>public <a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html" title="class in com.sleepycat.je">EnvironmentMutableConfig</a> setExceptionListener(<a href="../../../com/sleepycat/je/ExceptionListener.html" title="interface in com.sleepycat.je">ExceptionListener</a> exceptionListener)</pre>
|
||
|
<div class="block">Sets the exception listener for an Environment. The listener is called
|
||
|
when a daemon thread throws an exception, in order to provide a
|
||
|
notification mechanism for these otherwise asynchronous exceptions.
|
||
|
Daemon thread exceptions are also printed through stderr.
|
||
|
<p>
|
||
|
Not all daemon exceptions are fatal, and the application bears
|
||
|
responsibility for choosing how to respond to the notification. Since
|
||
|
exceptions may repeat, the application should also choose how to handle
|
||
|
a spate of exceptions. For example, the application may choose to act
|
||
|
upon each notification, or it may choose to batch up its responses
|
||
|
by implementing the listener so it stores exceptions, and only acts
|
||
|
when a certain number have been received.</div>
|
||
|
<dl>
|
||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||
|
<dd><code>exceptionListener</code> - the callback to be executed when an exception
|
||
|
occurs.</dd>
|
||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
<dd>this</dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="getExceptionListener--">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>getExceptionListener</h4>
|
||
|
<pre>public <a href="../../../com/sleepycat/je/ExceptionListener.html" title="interface in com.sleepycat.je">ExceptionListener</a> getExceptionListener()</pre>
|
||
|
<div class="block">Returns the exception listener, if set.</div>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setCacheMode-com.sleepycat.je.CacheMode-">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setCacheMode</h4>
|
||
|
<pre>public <a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html" title="class in com.sleepycat.je">EnvironmentMutableConfig</a> setCacheMode(<a href="../../../com/sleepycat/je/CacheMode.html" title="enum in com.sleepycat.je">CacheMode</a> cacheMode)</pre>
|
||
|
<div class="block">Sets the default <code>CacheMode</code> used for operations performed in this
|
||
|
environment. The default cache mode may be overridden on a per-database
|
||
|
basis using <a href="../../../com/sleepycat/je/DatabaseConfig.html#setCacheMode-com.sleepycat.je.CacheMode-"><code>DatabaseConfig.setCacheMode(com.sleepycat.je.CacheMode)</code></a>, and on a per-record or
|
||
|
per-operation basis using <a href="../../../com/sleepycat/je/Cursor.html#setCacheMode-com.sleepycat.je.CacheMode-"><code>Cursor.setCacheMode(com.sleepycat.je.CacheMode)</code></a>, <a href="../../../com/sleepycat/je/ReadOptions.html#setCacheMode-com.sleepycat.je.CacheMode-"><code>ReadOptions.setCacheMode(CacheMode)</code></a> or <a href="../../../com/sleepycat/je/WriteOptions.html#setCacheMode-com.sleepycat.je.CacheMode-"><code>WriteOptions.setCacheMode(CacheMode)</code></a>.</div>
|
||
|
<dl>
|
||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||
|
<dd><code>cacheMode</code> - is the default <code>CacheMode</code> used for operations
|
||
|
performed in this environment. If <code>null</code> is specified, <a href="../../../com/sleepycat/je/CacheMode.html#DEFAULT"><code>CacheMode.DEFAULT</code></a> will be used.</dd>
|
||
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
||
|
<dd>4.0.97</dd>
|
||
|
<dt><span class="seeLabel">See Also:</span></dt>
|
||
|
<dd><a href="../../../com/sleepycat/je/CacheMode.html" title="enum in com.sleepycat.je"><code>for further details.</code></a></dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="getCacheMode--">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>getCacheMode</h4>
|
||
|
<pre>public <a href="../../../com/sleepycat/je/CacheMode.html" title="enum in com.sleepycat.je">CacheMode</a> getCacheMode()</pre>
|
||
|
<div class="block">Returns the default <code>CacheMode</code> used for operations performed in
|
||
|
this environment, or null if <a href="../../../com/sleepycat/je/CacheMode.html#DEFAULT"><code>CacheMode.DEFAULT</code></a> is used.</div>
|
||
|
<dl>
|
||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
<dd>the default <code>CacheMode</code> used for operations performed on
|
||
|
this database, or null if <a href="../../../com/sleepycat/je/CacheMode.html#DEFAULT"><code>CacheMode.DEFAULT</code></a> is used.</dd>
|
||
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
||
|
<dd>4.0.97</dd>
|
||
|
<dt><span class="seeLabel">See Also:</span></dt>
|
||
|
<dd><a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html#setCacheMode-com.sleepycat.je.CacheMode-"><code>setCacheMode(com.sleepycat.je.CacheMode)</code></a></dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="setConfigParam-java.lang.String-java.lang.String-">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>setConfigParam</h4>
|
||
|
<pre>public <a href="../../../com/sleepycat/je/EnvironmentMutableConfig.html" title="class in com.sleepycat.je">EnvironmentMutableConfig</a> setConfigParam(java.lang.String paramName,
|
||
|
java.lang.String value)
|
||
|
throws java.lang.IllegalArgumentException</pre>
|
||
|
<div class="block">Set this configuration parameter. First validate the value specified for
|
||
|
the configuration parameter; if it is valid, the value is set in the
|
||
|
configuration.</div>
|
||
|
<dl>
|
||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||
|
<dd><code>paramName</code> - the configuration parameter name, one of the String
|
||
|
constants in this class</dd>
|
||
|
<dd><code>value</code> - The configuration value</dd>
|
||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
<dd>this</dd>
|
||
|
<dt><span class="throwsLabel">Throws:</span></dt>
|
||
|
<dd><code>java.lang.IllegalArgumentException</code> - if the paramName or value is invalid.</dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="getConfigParam-java.lang.String-">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockList">
|
||
|
<li class="blockList">
|
||
|
<h4>getConfigParam</h4>
|
||
|
<pre>public java.lang.String getConfigParam(java.lang.String paramName)
|
||
|
throws java.lang.IllegalArgumentException</pre>
|
||
|
<div class="block">Returns the value for this configuration parameter.</div>
|
||
|
<dl>
|
||
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
||
|
<dd><code>paramName</code> - a valid configuration parameter, one of the String
|
||
|
constants in this class.</dd>
|
||
|
<dt><span class="returnLabel">Returns:</span></dt>
|
||
|
<dd>the configuration value.</dd>
|
||
|
<dt><span class="throwsLabel">Throws:</span></dt>
|
||
|
<dd><code>java.lang.IllegalArgumentException</code> - if the paramName is invalid.</dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<a name="toString--">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="blockListLast">
|
||
|
<li class="blockList">
|
||
|
<h4>toString</h4>
|
||
|
<pre>public java.lang.String toString()</pre>
|
||
|
<div class="block">Display configuration values.</div>
|
||
|
<dl>
|
||
|
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
||
|
<dd><code>toString</code> in class <code>java.lang.Object</code></dd>
|
||
|
</dl>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- ========= END OF CLASS DATA ========= -->
|
||
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
||
|
<div class="bottomNav"><a name="navbar.bottom">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
||
|
<a name="navbar.bottom.firstrow">
|
||
|
<!-- -->
|
||
|
</a>
|
||
|
<ul class="navList" title="Navigation">
|
||
|
<li><a href="../../../overview-summary.html">Overview</a></li>
|
||
|
<li><a href="package-summary.html">Package</a></li>
|
||
|
<li class="navBarCell1Rev">Class</li>
|
||
|
<li><a href="class-use/EnvironmentMutableConfig.html">Use</a></li>
|
||
|
<li><a href="package-tree.html">Tree</a></li>
|
||
|
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
|
||
|
<li><a href="../../../index-all.html">Index</a></li>
|
||
|
<li><a href="../../../help-doc.html">Help</a></li>
|
||
|
</ul>
|
||
|
<div class="aboutLanguage"><b>Berkeley DB Java Edition</b><br><font size=\"-1\"> version 7.5.11</font>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="subNav">
|
||
|
<ul class="navList">
|
||
|
<li><a href="../../../com/sleepycat/je/EnvironmentLockedException.html" title="class in com.sleepycat.je"><span class="typeNameLink">Prev Class</span></a></li>
|
||
|
<li><a href="../../../com/sleepycat/je/EnvironmentNotFoundException.html" title="class in com.sleepycat.je"><span class="typeNameLink">Next Class</span></a></li>
|
||
|
</ul>
|
||
|
<ul class="navList">
|
||
|
<li><a href="../../../index.html?com/sleepycat/je/EnvironmentMutableConfig.html" target="_top">Frames</a></li>
|
||
|
<li><a href="EnvironmentMutableConfig.html" target="_top">No Frames</a></li>
|
||
|
</ul>
|
||
|
<ul class="navList" id="allclasses_navbar_bottom">
|
||
|
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
|
||
|
</ul>
|
||
|
<div>
|
||
|
<script type="text/javascript"><!--
|
||
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
||
|
if(window==top) {
|
||
|
allClassesLink.style.display = "block";
|
||
|
}
|
||
|
else {
|
||
|
allClassesLink.style.display = "none";
|
||
|
}
|
||
|
//-->
|
||
|
</script>
|
||
|
</div>
|
||
|
<div>
|
||
|
<ul class="subNavList">
|
||
|
<li>Summary: </li>
|
||
|
<li>Nested | </li>
|
||
|
<li>Field | </li>
|
||
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
||
|
<li><a href="#method.summary">Method</a></li>
|
||
|
</ul>
|
||
|
<ul class="subNavList">
|
||
|
<li>Detail: </li>
|
||
|
<li>Field | </li>
|
||
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
||
|
<li><a href="#method.detail">Method</a></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<a name="skip.navbar.bottom">
|
||
|
<!-- -->
|
||
|
</a></div>
|
||
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
||
|
<p class="legalCopy"><small><font size=1>Copyright (c) 2002, 2017 Oracle and/or its affiliates. All rights reserved.</font> </small></p>
|
||
|
</body>
|
||
|
</html>
|