<!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) on Sun Aug 28 20:42:11 EST 2016 --> | |
<title>JoinManager.ProxyRegTask (Apache River v3.0.0 API Documentation (internals))</title> | |
<meta name="date" content="2016-08-28"> | |
<link rel="stylesheet" type="text/css" href="../../../stylesheet.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="JoinManager.ProxyRegTask (Apache River v3.0.0 API Documentation (internals))"; | |
} | |
} | |
catch(err) { | |
} | |
//--> | |
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":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/JoinManager.ProxyRegTask.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> | |
<div class="subNav"> | |
<ul class="navList"> | |
<li><a href="../../../net/jini/lookup/JoinManager.ProxyReg.DiscLeaseListener.html" title="class in net.jini.lookup"><span class="typeNameLink">Prev Class</span></a></li> | |
<li><a href="../../../net/jini/lookup/JoinManager.ProxyRegTaskQueue.html" title="class in net.jini.lookup"><span class="typeNameLink">Next Class</span></a></li> | |
</ul> | |
<ul class="navList"> | |
<li><a href="../../../index.html?net/jini/lookup/JoinManager.ProxyRegTask.html" target="_top">Frames</a></li> | |
<li><a href="JoinManager.ProxyRegTask.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">net.jini.lookup</div> | |
<h2 title="Class JoinManager.ProxyRegTask" class="title">Class JoinManager.ProxyRegTask</h2> | |
</div> | |
<div class="contentContainer"> | |
<ul class="inheritance"> | |
<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> | |
<li> | |
<ul class="inheritance"> | |
<li><a href="../../../org/apache/river/thread/RetryTask.html" title="class in org.apache.river.thread">org.apache.river.thread.RetryTask</a></li> | |
<li> | |
<ul class="inheritance"> | |
<li>net.jini.lookup.JoinManager.ProxyRegTask</li> | |
</ul> | |
</li> | |
</ul> | |
</li> | |
</ul> | |
<div class="description"> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<dl> | |
<dt>All Implemented Interfaces:</dt> | |
<dd><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><<a href="../../../net/jini/lookup/JoinManager.ProxyRegTask.html" title="class in net.jini.lookup">JoinManager.ProxyRegTask</a>>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Runnable.html?is-external=true" title="class or interface in java.lang">Runnable</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/concurrent.Future.html?is-external=true" title="class or interface in java.util">java.util.concurrent.Future</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/concurrent.RunnableFuture.html?is-external=true" title="class or interface in java.util">java.util.concurrent.RunnableFuture</a>, <a href="../../../org/apache/river/constants/TimeConstants.html" title="interface in org.apache.river.constants">TimeConstants</a>, <a href="../../../org/apache/river/thread/FutureObserver.ObservableFuture.html" title="interface in org.apache.river.thread">FutureObserver.ObservableFuture</a></dd> | |
</dl> | |
<dl> | |
<dt>Enclosing class:</dt> | |
<dd><a href="../../../net/jini/lookup/JoinManager.html" title="class in net.jini.lookup">JoinManager</a></dd> | |
</dl> | |
<hr> | |
<br> | |
<pre>private class <span class="typeNameLabel">JoinManager.ProxyRegTask</span> | |
extends <a href="../../../org/apache/river/thread/RetryTask.html" title="class in org.apache.river.thread">RetryTask</a> | |
implements <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><<a href="../../../net/jini/lookup/JoinManager.ProxyRegTask.html" title="class in net.jini.lookup">JoinManager.ProxyRegTask</a>></pre> | |
<div class="block">Abstract base class from which all of the task classes are derived.</div> | |
</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>private int</code></td> | |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../net/jini/lookup/JoinManager.ProxyRegTask.html#nRetries">nRetries</a></span></code> </td> | |
</tr> | |
<tr class="rowColor"> | |
<td class="colFirst"><code>private <a href="../../../net/jini/lookup/JoinManager.ProxyReg.html" title="class in net.jini.lookup">JoinManager.ProxyReg</a></code></td> | |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../net/jini/lookup/JoinManager.ProxyRegTask.html#proxyReg">proxyReg</a></span></code> </td> | |
</tr> | |
<tr class="altColor"> | |
<td class="colFirst"><code>private int</code></td> | |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../net/jini/lookup/JoinManager.ProxyRegTask.html#seqN">seqN</a></span></code> </td> | |
</tr> | |
<tr class="rowColor"> | |
<td class="colFirst"><code>private long[]</code></td> | |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../net/jini/lookup/JoinManager.ProxyRegTask.html#sleepTime">sleepTime</a></span></code> </td> | |
</tr> | |
<tr class="altColor"> | |
<td class="colFirst"><code>private int</code></td> | |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../net/jini/lookup/JoinManager.ProxyRegTask.html#tryIndx">tryIndx</a></span></code> </td> | |
</tr> | |
</table> | |
<ul class="blockList"> | |
<li class="blockList"><a name="fields.inherited.from.class.org.apache.river.thread.RetryTask"> | |
<!-- --> | |
</a> | |
<h3>Fields inherited from class org.apache.river.thread.<a href="../../../org/apache/river/thread/RetryTask.html" title="class in org.apache.river.thread">RetryTask</a></h3> | |
<code><a href="../../../org/apache/river/thread/RetryTask.html#logger">logger</a></code></li> | |
</ul> | |
<ul class="blockList"> | |
<li class="blockList"><a name="fields.inherited.from.class.org.apache.river.constants.TimeConstants"> | |
<!-- --> | |
</a> | |
<h3>Fields inherited from interface org.apache.river.constants.<a href="../../../org/apache/river/constants/TimeConstants.html" title="interface in org.apache.river.constants">TimeConstants</a></h3> | |
<code><a href="../../../org/apache/river/constants/TimeConstants.html#DAYS">DAYS</a>, <a href="../../../org/apache/river/constants/TimeConstants.html#HOURS">HOURS</a>, <a href="../../../org/apache/river/constants/TimeConstants.html#MINUTES">MINUTES</a>, <a href="../../../org/apache/river/constants/TimeConstants.html#SECONDS">SECONDS</a></code></li> | |
</ul> | |
</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="../../../net/jini/lookup/JoinManager.ProxyRegTask.html#ProxyRegTask-net.jini.lookup.JoinManager.ProxyReg-int-">ProxyRegTask</a></span>(<a href="../../../net/jini/lookup/JoinManager.ProxyReg.html" title="class in net.jini.lookup">JoinManager.ProxyReg</a> proxyReg, | |
int seqN)</code> | |
<div class="block">Basic constructor; simply stores the input parameters</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>int</code></td> | |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../net/jini/lookup/JoinManager.ProxyRegTask.html#compareTo-net.jini.lookup.JoinManager.ProxyRegTask-">compareTo</a></span>(<a href="../../../net/jini/lookup/JoinManager.ProxyRegTask.html" title="class in net.jini.lookup">JoinManager.ProxyRegTask</a> o)</code> </td> | |
</tr> | |
<tr id="i1" class="rowColor"> | |
<td class="colFirst"><code>boolean</code></td> | |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../net/jini/lookup/JoinManager.ProxyRegTask.html#dependsOn-net.jini.lookup.JoinManager.ProxyRegTask-">dependsOn</a></span>(<a href="../../../net/jini/lookup/JoinManager.ProxyRegTask.html" title="class in net.jini.lookup">JoinManager.ProxyRegTask</a> t)</code> | |
<div class="block">Returns true if the current instance of this task must be run | |
after any task already in the task manager queue.</div> | |
</td> | |
</tr> | |
<tr id="i2" class="altColor"> | |
<td class="colFirst"><code><a href="../../../net/jini/lookup/JoinManager.ProxyReg.html" title="class in net.jini.lookup">JoinManager.ProxyReg</a></code></td> | |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../net/jini/lookup/JoinManager.ProxyRegTask.html#getProxyReg--">getProxyReg</a></span>()</code> | |
<div class="block">Accessor method that returns the instance of <code>ProxyReg</code> | |
(the lookup service) associated with the task represented by | |
the current instance of this class.</div> | |
</td> | |
</tr> | |
<tr id="i3" class="rowColor"> | |
<td class="colFirst"><code>int</code></td> | |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../net/jini/lookup/JoinManager.ProxyRegTask.html#getSeqN--">getSeqN</a></span>()</code> | |
<div class="block">Accessor method that returns the unique sequence number associated | |
with the task represented by the current instance of this class.</div> | |
</td> | |
</tr> | |
<tr id="i4" class="altColor"> | |
<td class="colFirst"><code>boolean</code></td> | |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../net/jini/lookup/JoinManager.ProxyRegTask.html#hasDeps--">hasDeps</a></span>()</code> </td> | |
</tr> | |
<tr id="i5" class="rowColor"> | |
<td class="colFirst"><code>long</code></td> | |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../net/jini/lookup/JoinManager.ProxyRegTask.html#retryTime--">retryTime</a></span>()</code> | |
<div class="block">Returns the next absolute time (in milliseconds) at which another | |
execution of this task should be made (after the previous | |
attempt has failed).</div> | |
</td> | |
</tr> | |
<tr id="i6" class="altColor"> | |
<td class="colFirst"><code>protected boolean</code></td> | |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../net/jini/lookup/JoinManager.ProxyRegTask.html#stopTrying-java.lang.Exception-">stopTrying</a></span>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a> e)</code> | |
<div class="block">Convenience method called by the child tasks when they encounter | |
an exception.</div> | |
</td> | |
</tr> | |
<tr id="i7" class="rowColor"> | |
<td class="colFirst"><code>boolean</code></td> | |
<td class="colLast"><code><span class="memberNameLink"><a href="../../../net/jini/lookup/JoinManager.ProxyRegTask.html#tryOnce--">tryOnce</a></span>()</code> | |
<div class="block">Executes the current instance of this task once, queuing it | |
for retry at a later time and returning <code>false</code> | |
upon failure.</div> | |
</td> | |
</tr> | |
</table> | |
<ul class="blockList"> | |
<li class="blockList"><a name="methods.inherited.from.class.org.apache.river.thread.RetryTask"> | |
<!-- --> | |
</a> | |
<h3>Methods inherited from class org.apache.river.thread.<a href="../../../org/apache/river/thread/RetryTask.html" title="class in org.apache.river.thread">RetryTask</a></h3> | |
<code><a href="../../../org/apache/river/thread/RetryTask.html#addObserver-org.apache.river.thread.FutureObserver-">addObserver</a>, <a href="../../../org/apache/river/thread/RetryTask.html#attempt--">attempt</a>, <a href="../../../org/apache/river/thread/RetryTask.html#cancel-boolean-">cancel</a>, <a href="../../../org/apache/river/thread/RetryTask.html#get--">get</a>, <a href="../../../org/apache/river/thread/RetryTask.html#get-long-java.util.concurrent.TimeUnit-">get</a>, <a href="../../../org/apache/river/thread/RetryTask.html#isCancelled--">isCancelled</a>, <a href="../../../org/apache/river/thread/RetryTask.html#isDone--">isDone</a>, <a href="../../../org/apache/river/thread/RetryTask.html#run--">run</a>, <a href="../../../org/apache/river/thread/RetryTask.html#startTime--">startTime</a>, <a href="../../../org/apache/river/thread/RetryTask.html#waitFor-long-">waitFor</a></code></li> | |
</ul> | |
<ul class="blockList"> | |
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> | |
<!-- --> | |
</a> | |
<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> | |
<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></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="sleepTime"> | |
<!-- --> | |
</a> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<h4>sleepTime</h4> | |
<pre>private final long[] sleepTime</pre> | |
</li> | |
</ul> | |
<a name="tryIndx"> | |
<!-- --> | |
</a> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<h4>tryIndx</h4> | |
<pre>private volatile int tryIndx</pre> | |
</li> | |
</ul> | |
<a name="nRetries"> | |
<!-- --> | |
</a> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<h4>nRetries</h4> | |
<pre>private volatile int nRetries</pre> | |
</li> | |
</ul> | |
<a name="proxyReg"> | |
<!-- --> | |
</a> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<h4>proxyReg</h4> | |
<pre>private final <a href="../../../net/jini/lookup/JoinManager.ProxyReg.html" title="class in net.jini.lookup">JoinManager.ProxyReg</a> proxyReg</pre> | |
</li> | |
</ul> | |
<a name="seqN"> | |
<!-- --> | |
</a> | |
<ul class="blockListLast"> | |
<li class="blockList"> | |
<h4>seqN</h4> | |
<pre>private final int seqN</pre> | |
</li> | |
</ul> | |
</li> | |
</ul> | |
<!-- ========= CONSTRUCTOR DETAIL ======== --> | |
<ul class="blockList"> | |
<li class="blockList"><a name="constructor.detail"> | |
<!-- --> | |
</a> | |
<h3>Constructor Detail</h3> | |
<a name="ProxyRegTask-net.jini.lookup.JoinManager.ProxyReg-int-"> | |
<!-- --> | |
</a> | |
<ul class="blockListLast"> | |
<li class="blockList"> | |
<h4>ProxyRegTask</h4> | |
<pre>ProxyRegTask(<a href="../../../net/jini/lookup/JoinManager.ProxyReg.html" title="class in net.jini.lookup">JoinManager.ProxyReg</a> proxyReg, | |
int seqN)</pre> | |
<div class="block">Basic constructor; simply stores the input parameters</div> | |
</li> | |
</ul> | |
</li> | |
</ul> | |
<!-- ============ METHOD DETAIL ========== --> | |
<ul class="blockList"> | |
<li class="blockList"><a name="method.detail"> | |
<!-- --> | |
</a> | |
<h3>Method Detail</h3> | |
<a name="tryOnce--"> | |
<!-- --> | |
</a> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<h4>tryOnce</h4> | |
<pre>public boolean tryOnce()</pre> | |
<div class="block">Executes the current instance of this task once, queuing it | |
for retry at a later time and returning <code>false</code> | |
upon failure. This method attempts to execute all of the tasks | |
associated with the lookup service referenced in this task's | |
<code>proxyReg</code> field. Order of execution is important, | |
and this method executes the tasks in the <code>proxyReg</code>'s | |
<code>taskList</code> in a FIFO order. | |
Note that tasks may be added to the <code>taskList</code> of | |
the <code>proxyReg</code> during the execution of this method. | |
Upon successfully executing all of the tasks in the | |
<code>taskList</code>, this method returns <code>true</code> | |
and the current instance of this task is not executed again. | |
For each unsuccessful execution of a task in the | |
<code>taskList</code>, this method returns <code>false</code>, | |
which causes the task to be scheduled by the | |
<code>WakeupManager</code> to be executed again at a later | |
time, as indicated by the value returned by <code>retryTime</code>.</div> | |
<dl> | |
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> | |
<dd><code><a href="../../../org/apache/river/thread/RetryTask.html#tryOnce--">tryOnce</a></code> in class <code><a href="../../../org/apache/river/thread/RetryTask.html" title="class in org.apache.river.thread">RetryTask</a></code></dd> | |
</dl> | |
</li> | |
</ul> | |
<a name="retryTime--"> | |
<!-- --> | |
</a> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<h4>retryTime</h4> | |
<pre>public long retryTime()</pre> | |
<div class="block">Returns the next absolute time (in milliseconds) at which another | |
execution of this task should be made (after the previous | |
attempt has failed).</div> | |
<dl> | |
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> | |
<dd><code><a href="../../../org/apache/river/thread/RetryTask.html#retryTime--">retryTime</a></code> in class <code><a href="../../../org/apache/river/thread/RetryTask.html" title="class in org.apache.river.thread">RetryTask</a></code></dd> | |
</dl> | |
</li> | |
</ul> | |
<a name="dependsOn-net.jini.lookup.JoinManager.ProxyRegTask-"> | |
<!-- --> | |
</a> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<h4>dependsOn</h4> | |
<pre>public boolean dependsOn(<a href="../../../net/jini/lookup/JoinManager.ProxyRegTask.html" title="class in net.jini.lookup">JoinManager.ProxyRegTask</a> t)</pre> | |
<div class="block">Returns true if the current instance of this task must be run | |
after any task already in the task manager queue. | |
It is important that when the join manager is constructed with | |
a <code>null</code> service ID (where it is desired that | |
a unique service ID be generated on the service's behalf), | |
that only the first task in the task manager's queue be run; no | |
other tasks in the queue should be run while that first task | |
is running. This is because the first sub-task executed by | |
the first main task in the task manager's queue will always be | |
a <code>RegisterTask</code>. And during the execution of that | |
first sub-task (if the service ID has not yet been set), the | |
service ID generated by the associated lookup service is retrieved | |
and stored for use in all future lookup service registration | |
tasks, Once the service ID is set by that first registration | |
sub-task, all future main tasks (and their associated registration | |
sub-tasks) can be run in parallel; each using the same service ID. | |
If this is not done, then the registration sub-tasks would be | |
run in parallel, each assigning a different ID to the service. | |
This method guarantees that until the service's ID is set, | |
only one registration sub-task is run; that is, one task | |
doesn't start until the currently running task has completed, | |
and a non-<code>null</code> service ID is assigned to the service. | |
Executing the main tasks sequentially until the service ID is | |
retrieved and stored must also be guaranteed because the currently | |
running registration task may fail to register the service | |
(because of a <code>RemoteException</code>), and thus may fail | |
to obtain an ID for the service. This method guarantees then | |
that each main task (and thus, each registration sub-task) will | |
run in sequence until one of those tasks completes successfully; | |
and from that point on, this method guarantees that all other | |
queued tasks will run in parallel.</div> | |
<dl> | |
<dt><span class="paramLabel">Parameters:</span></dt> | |
<dd><code>tasks</code> - the tasks with which to compare the current task</dd> | |
<dd><code>size</code> - elements with index less than size are considered</dd> | |
</dl> | |
</li> | |
</ul> | |
<a name="hasDeps--"> | |
<!-- --> | |
</a> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<h4>hasDeps</h4> | |
<pre>public boolean hasDeps()</pre> | |
</li> | |
</ul> | |
<a name="getProxyReg--"> | |
<!-- --> | |
</a> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<h4>getProxyReg</h4> | |
<pre>public <a href="../../../net/jini/lookup/JoinManager.ProxyReg.html" title="class in net.jini.lookup">JoinManager.ProxyReg</a> getProxyReg()</pre> | |
<div class="block">Accessor method that returns the instance of <code>ProxyReg</code> | |
(the lookup service) associated with the task represented by | |
the current instance of this class.</div> | |
</li> | |
</ul> | |
<a name="getSeqN--"> | |
<!-- --> | |
</a> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<h4>getSeqN</h4> | |
<pre>public int getSeqN()</pre> | |
<div class="block">Accessor method that returns the unique sequence number associated | |
with the task represented by the current instance of this class.</div> | |
</li> | |
</ul> | |
<a name="stopTrying-java.lang.Exception-"> | |
<!-- --> | |
</a> | |
<ul class="blockList"> | |
<li class="blockList"> | |
<h4>stopTrying</h4> | |
<pre>protected boolean stopTrying(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a> e)</pre> | |
<div class="block">Convenience method called by the child tasks when they encounter | |
an exception. If the given exception indicates that retrying the | |
task would definitely fail, or if the maximum allowable number | |
of retries of the task has been exceeded, then this method will | |
do the following: | |
- remove all pending tasks that are to be run after this task | |
- cancel this task | |
- discard the look service associated with this task | |
- return <code>true</code> (which stops the wakeup manager | |
from retrying this task | |
otherwise, this method returns <code>false</code>, which indicates | |
that the wakeup manager should not stop trying to successfully | |
execute the task.</div> | |
</li> | |
</ul> | |
<a name="compareTo-net.jini.lookup.JoinManager.ProxyRegTask-"> | |
<!-- --> | |
</a> | |
<ul class="blockListLast"> | |
<li class="blockList"> | |
<h4>compareTo</h4> | |
<pre>public int compareTo(<a href="../../../net/jini/lookup/JoinManager.ProxyRegTask.html" title="class in net.jini.lookup">JoinManager.ProxyRegTask</a> o)</pre> | |
<dl> | |
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> | |
<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true#compareTo-T-" title="class or interface in java.lang">compareTo</a></code> in interface <code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><<a href="../../../net/jini/lookup/JoinManager.ProxyRegTask.html" title="class in net.jini.lookup">JoinManager.ProxyRegTask</a>></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/JoinManager.ProxyRegTask.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> | |
<div class="subNav"> | |
<ul class="navList"> | |
<li><a href="../../../net/jini/lookup/JoinManager.ProxyReg.DiscLeaseListener.html" title="class in net.jini.lookup"><span class="typeNameLink">Prev Class</span></a></li> | |
<li><a href="../../../net/jini/lookup/JoinManager.ProxyRegTaskQueue.html" title="class in net.jini.lookup"><span class="typeNameLink">Next Class</span></a></li> | |
</ul> | |
<ul class="navList"> | |
<li><a href="../../../index.html?net/jini/lookup/JoinManager.ProxyRegTask.html" target="_top">Frames</a></li> | |
<li><a href="JoinManager.ProxyRegTask.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>Copyright 2007-2013, multiple authors.<br>Licensed under the <a href=http://www.apache.org/licenses/LICENSE-2.0 target=child >Apache License, Version 2.0</a>, see the <a href=../../../doc-files/NOTICE target=child >NOTICE</a> file for attributions.</small></p> | |
</body> | |
</html> |