706 lines
28 KiB
HTML
706 lines
28 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:46 EDT 2017 -->
|
|
<title>MonitorConfig (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="MonitorConfig (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":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10};
|
|
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete 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/MonitorConfig.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/rep/monitor/MonitorChangeListener.html" title="interface in com.sleepycat.je.rep.monitor"><span class="typeNameLink">Prev Class</span></a></li>
|
|
<li><a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfigBeanInfo.html" title="class in com.sleepycat.je.rep.monitor"><span class="typeNameLink">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../../../index.html?com/sleepycat/je/rep/monitor/MonitorConfig.html" target="_top">Frames</a></li>
|
|
<li><a href="MonitorConfig.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><a href="#field.summary">Field</a> | </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><a href="#field.detail">Field</a> | </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.rep.monitor</div>
|
|
<h2 title="Class MonitorConfig" class="title">Class MonitorConfig</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<ul class="inheritance">
|
|
<li>java.lang.Object</li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>com.sleepycat.je.rep.monitor.MonitorConfig</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<dl>
|
|
<dt>All Implemented Interfaces:</dt>
|
|
<dd>java.lang.Cloneable</dd>
|
|
</dl>
|
|
<hr>
|
|
<br>
|
|
<pre>public class <span class="typeNameLabel">MonitorConfig</span>
|
|
extends java.lang.Object
|
|
implements java.lang.Cloneable</pre>
|
|
<div class="block">Specifies the attributes used by a replication <a href="../../../../../com/sleepycat/je/rep/monitor/Monitor.html" title="class in com.sleepycat.je.rep.monitor"><code>Monitor</code></a>.
|
|
<p>
|
|
The following properties identify the target group.
|
|
<ul>
|
|
<li>groupName: the name of the replication group being monitored. </li>
|
|
<li>nodeName: the group-wide unique name associated with this
|
|
monitor node.</li>
|
|
<li>nodeHost: the hostname and port associated with this Monitor. Used
|
|
by group members to contact the Monitor.</li>
|
|
<li>helperHosts: the list of replication nodes which the Monitor uses to
|
|
register itself so it can receive notifications about group status
|
|
changes.</li>
|
|
</ul>
|
|
The following properties configure the daemon ping thread implemented
|
|
within the Monitor. This daemon thread lets the Monitor proactively find
|
|
status changes that occur when the Monitor is down or has lost network
|
|
connectivity.
|
|
<ul>
|
|
<li>numRetries: number of times the ping thread attempts to contact a
|
|
node before deeming is unreachable. </li>
|
|
<li>retryInterval: number of milliseconds between ping thread retries.
|
|
</li>
|
|
<li>timeout: socketConnection timeout, in milliseconds, specified
|
|
when the ping thread attempts to establish a connection with a replication
|
|
node. </li>
|
|
</ul></div>
|
|
<dl>
|
|
<dt><span class="simpleTagLabel">Since:</span></dt>
|
|
<dd>JE 5.0</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="field.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Summary</h3>
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
|
|
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Field and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static <a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html" title="class in com.sleepycat.je.rep.monitor">MonitorConfig</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html#DEFAULT">DEFAULT</a></span></code>
|
|
<div class="block">An instance created using the default constructor is initialized with
|
|
the default settings.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- ======== 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/rep/monitor/MonitorConfig.html#MonitorConfig--">MonitorConfig</a></span>()</code>
|
|
<div class="block">An instance created using the default constructor is initialized with
|
|
the 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></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/rep/monitor/MonitorConfig.html" title="class in com.sleepycat.je.rep.monitor">MonitorConfig</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html#clone--">clone</a></span>()</code>
|
|
<div class="block">Returns a copy of this configuration object.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i1" class="rowColor">
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html#getGroupName--">getGroupName</a></span>()</code>
|
|
<div class="block">Gets the name associated with the replication group.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i2" class="altColor">
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html#getHelperHosts--">getHelperHosts</a></span>()</code>
|
|
<div class="block">Returns the string identifying one or more helper host and port pairs in
|
|
this format:</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/rep/monitor/MonitorConfig.html#getNodeHostname--">getNodeHostname</a></span>()</code>
|
|
<div class="block">Returns the hostname component of the nodeHost property.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i4" class="altColor">
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html#getNodeHostPort--">getNodeHostPort</a></span>()</code>
|
|
<div class="block">Returns the hostname and port associated with this node.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i5" class="rowColor">
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html#getNodeName--">getNodeName</a></span>()</code>
|
|
<div class="block">Returns the unique name associated with this monitor.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i6" class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html#getNodePort--">getNodePort</a></span>()</code>
|
|
<div class="block">Returns the port component of the nodeHost property.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i7" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html#getNumRetries--">getNumRetries</a></span>()</code>
|
|
<div class="block">Returns the number of times a ping thread attempts to contact a node
|
|
before deeming it unreachable.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i8" class="altColor">
|
|
<td class="colFirst"><code>long</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html#getRetryInterval--">getRetryInterval</a></span>()</code>
|
|
<div class="block">Returns the number of milliseconds between ping thread retries.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i9" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html#getSocketConnectTimeout--">getSocketConnectTimeout</a></span>()</code>
|
|
<div class="block">Returns the socketConnection timeout, in milliseconds, used
|
|
when the ping thread attempts to establish a connection with a
|
|
replication node.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i10" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html" title="class in com.sleepycat.je.rep.monitor">MonitorConfig</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html#setGroupName-java.lang.String-">setGroupName</a></span>(java.lang.String groupName)</code>
|
|
<div class="block">Sets the name for the replication group.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i11" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html" title="class in com.sleepycat.je.rep.monitor">MonitorConfig</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html#setHelperHosts-java.lang.String-">setHelperHosts</a></span>(java.lang.String helperHosts)</code>
|
|
<div class="block">Identify one or more helpers nodes by their host and port pairs in this
|
|
format:</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i12" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html" title="class in com.sleepycat.je.rep.monitor">MonitorConfig</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html#setNodeHostPort-java.lang.String-">setNodeHostPort</a></span>(java.lang.String hostPort)</code>
|
|
<div class="block">Sets the hostname and port associated with this monitor.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i13" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html" title="class in com.sleepycat.je.rep.monitor">MonitorConfig</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html#setNodeName-java.lang.String-">setNodeName</a></span>(java.lang.String nodeName)</code>
|
|
<div class="block">Sets the name to be associated with this <code>monitor</code>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i14" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html" title="class in com.sleepycat.je.rep.monitor">MonitorConfig</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html#setNumRetries-int-">setNumRetries</a></span>(int numRetries)</code>
|
|
<div class="block">Sets the number of times a ping thread attempts to contact a node
|
|
before deeming it unreachable.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i15" class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html" title="class in com.sleepycat.je.rep.monitor">MonitorConfig</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html#setRetryInterval-long-">setRetryInterval</a></span>(long retryInterval)</code>
|
|
<div class="block">Sets the number of milliseconds between ping thread retries.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i16" class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html" title="class in com.sleepycat.je.rep.monitor">MonitorConfig</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html#setSocketConnectTimeout-int-">setSocketConnectTimeout</a></span>(int socketConnectTimeout)</code>
|
|
<div class="block">Sets the socketConnection timeout, in milliseconds, used
|
|
when the ping thread attempts to establish a connection with a
|
|
replication node.</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>equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ============ FIELD DETAIL =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="field.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Detail</h3>
|
|
<a name="DEFAULT">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>DEFAULT</h4>
|
|
<pre>public static final <a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html" title="class in com.sleepycat.je.rep.monitor">MonitorConfig</a> DEFAULT</pre>
|
|
<div class="block">An instance created using the default constructor is initialized with
|
|
the default settings.</div>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Detail</h3>
|
|
<a name="MonitorConfig--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>MonitorConfig</h4>
|
|
<pre>public MonitorConfig()</pre>
|
|
<div class="block">An instance created using the default constructor is initialized with
|
|
the 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="setGroupName-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setGroupName</h4>
|
|
<pre>public <a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html" title="class in com.sleepycat.je.rep.monitor">MonitorConfig</a> setGroupName(java.lang.String groupName)
|
|
throws java.lang.IllegalArgumentException</pre>
|
|
<div class="block">Sets the name for the replication group. The name must be made up of
|
|
just alpha numeric characters and must not be zero length.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>groupName</code> - the alpha numeric string representing the name.</dd>
|
|
<dt><span class="throwsLabel">Throws:</span></dt>
|
|
<dd><code>java.lang.IllegalArgumentException</code> - if the string name is not valid.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getGroupName--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getGroupName</h4>
|
|
<pre>public java.lang.String getGroupName()</pre>
|
|
<div class="block">Gets the name associated with the replication group.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the name of this replication group.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setNodeName-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setNodeName</h4>
|
|
<pre>public <a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html" title="class in com.sleepycat.je.rep.monitor">MonitorConfig</a> setNodeName(java.lang.String nodeName)
|
|
throws java.lang.IllegalArgumentException</pre>
|
|
<div class="block">Sets the name to be associated with this <code>monitor</code>. It must
|
|
be unique within the group. When the <code>monitor</code> is
|
|
instantiated and joins the replication group, a check is done to ensure
|
|
that the name is unique, and a
|
|
<a href="../../../../../com/sleepycat/je/rep/RestartRequiredException.html" title="class in com.sleepycat.je.rep"><code>RestartRequiredException</code></a> is thrown if it is
|
|
not.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>nodeName</code> - the name of this monitor.</dd>
|
|
<dt><span class="throwsLabel">Throws:</span></dt>
|
|
<dd><code>java.lang.IllegalArgumentException</code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getNodeName--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getNodeName</h4>
|
|
<pre>public java.lang.String getNodeName()</pre>
|
|
<div class="block">Returns the unique name associated with this monitor.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the monitor name</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setNodeHostPort-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setNodeHostPort</h4>
|
|
<pre>public <a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html" title="class in com.sleepycat.je.rep.monitor">MonitorConfig</a> setNodeHostPort(java.lang.String hostPort)</pre>
|
|
<div class="block">Sets the hostname and port associated with this monitor. The hostname
|
|
and port combination are denoted by a string of the form:
|
|
<pre>
|
|
hostname[:port]
|
|
</pre>
|
|
The port must be outside the range of "Well Known Ports"
|
|
(zero through 1023).</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>hostPort</code> - the string containing the hostname and port as above.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getNodeHostPort--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getNodeHostPort</h4>
|
|
<pre>public java.lang.String getNodeHostPort()</pre>
|
|
<div class="block">Returns the hostname and port associated with this node. The hostname
|
|
and port combination are denoted by a string of the form:
|
|
<pre>
|
|
hostname:port
|
|
</pre></div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the hostname and port string of this monitor.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setHelperHosts-java.lang.String-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setHelperHosts</h4>
|
|
<pre>public <a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html" title="class in com.sleepycat.je.rep.monitor">MonitorConfig</a> setHelperHosts(java.lang.String helperHosts)</pre>
|
|
<div class="block">Identify one or more helpers nodes by their host and port pairs in this
|
|
format:
|
|
<pre>
|
|
hostname[:port][,hostname[:port]]*
|
|
</pre></div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>helperHosts</code> - the string representing the host and port pairs.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getHelperHosts--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getHelperHosts</h4>
|
|
<pre>public java.lang.String getHelperHosts()</pre>
|
|
<div class="block">Returns the string identifying one or more helper host and port pairs in
|
|
this format:
|
|
<pre>
|
|
hostname[:port][,hostname[:port]]*
|
|
</pre></div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the string representing the host port pairs.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getNodeHostname--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getNodeHostname</h4>
|
|
<pre>public java.lang.String getNodeHostname()</pre>
|
|
<div class="block">Returns the hostname component of the nodeHost property.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the hostname string</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getNodePort--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getNodePort</h4>
|
|
<pre>public int getNodePort()</pre>
|
|
<div class="block">Returns the port component of the nodeHost property.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>the port number</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setNumRetries-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setNumRetries</h4>
|
|
<pre>public <a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html" title="class in com.sleepycat.je.rep.monitor">MonitorConfig</a> setNumRetries(int numRetries)</pre>
|
|
<div class="block">Sets the number of times a ping thread attempts to contact a node
|
|
before deeming it unreachable.
|
|
The default value is 5.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="getNumRetries--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getNumRetries</h4>
|
|
<pre>public int getNumRetries()</pre>
|
|
<div class="block">Returns the number of times a ping thread attempts to contact a node
|
|
before deeming it unreachable.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="setRetryInterval-long-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setRetryInterval</h4>
|
|
<pre>public <a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html" title="class in com.sleepycat.je.rep.monitor">MonitorConfig</a> setRetryInterval(long retryInterval)</pre>
|
|
<div class="block">Sets the number of milliseconds between ping thread retries. The default
|
|
value is 1000.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="getRetryInterval--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getRetryInterval</h4>
|
|
<pre>public long getRetryInterval()</pre>
|
|
<div class="block">Returns the number of milliseconds between ping thread retries.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="setSocketConnectTimeout-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setSocketConnectTimeout</h4>
|
|
<pre>public <a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html" title="class in com.sleepycat.je.rep.monitor">MonitorConfig</a> setSocketConnectTimeout(int socketConnectTimeout)</pre>
|
|
<div class="block">Sets the socketConnection timeout, in milliseconds, used
|
|
when the ping thread attempts to establish a connection with a
|
|
replication node. The default value is 10,000.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="getSocketConnectTimeout--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getSocketConnectTimeout</h4>
|
|
<pre>public int getSocketConnectTimeout()</pre>
|
|
<div class="block">Returns the socketConnection timeout, in milliseconds, used
|
|
when the ping thread attempts to establish a connection with a
|
|
replication node.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="clone--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>clone</h4>
|
|
<pre>public <a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfig.html" title="class in com.sleepycat.je.rep.monitor">MonitorConfig</a> clone()</pre>
|
|
<div class="block">Returns a copy of this configuration object.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
|
<dd><code>clone</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/MonitorConfig.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/rep/monitor/MonitorChangeListener.html" title="interface in com.sleepycat.je.rep.monitor"><span class="typeNameLink">Prev Class</span></a></li>
|
|
<li><a href="../../../../../com/sleepycat/je/rep/monitor/MonitorConfigBeanInfo.html" title="class in com.sleepycat.je.rep.monitor"><span class="typeNameLink">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../../../index.html?com/sleepycat/je/rep/monitor/MonitorConfig.html" target="_top">Frames</a></li>
|
|
<li><a href="MonitorConfig.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><a href="#field.summary">Field</a> | </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><a href="#field.detail">Field</a> | </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>
|