water
Class RPC.RPCCall

java.lang.Object
  extended by jsr166y.ForkJoinTask<java.lang.Void>
      extended by jsr166y.CountedCompleter
          extended by water.H2O.H2OCountedCompleter
              extended by water.RPC.RPCCall
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<java.util.concurrent.Delayed>, java.util.concurrent.Delayed, java.util.concurrent.Future<java.lang.Void>
Enclosing class:
RPC<V extends DTask>

public static class RPC.RPCCall
extends H2O.H2OCountedCompleter
implements java.util.concurrent.Delayed

See Also:
Serialized Form

Constructor Summary
RPC.RPCCall(DTask dt, H2ONode client, int tsknum)
           
 
Method Summary
 int compareTo(java.util.concurrent.Delayed t)
           
 void compute2()
           
 long getDelay(java.util.concurrent.TimeUnit unit)
           
 void onCompletion(jsr166y.CountedCompleter caller)
          Performs an action when method CountedCompleter.tryComplete() is invoked and there are no pending counts, or when the unconditional method CountedCompleter.complete(java.lang.Void) is invoked.
 boolean onExceptionalCompletion(java.lang.Throwable ex, jsr166y.CountedCompleter caller)
          Performs an action when method ForkJoinTask.completeExceptionally(java.lang.Throwable) is invoked or method CountedCompleter.compute() throws an exception, and this task has not otherwise already completed normally.
 byte priority()
           
 void resend_ack()
           
 int size()
           
 
Methods inherited from class water.H2O.H2OCountedCompleter
compute
 
Methods inherited from class jsr166y.CountedCompleter
addToPendingCount, compareAndSetPendingCount, complete, exec, getCompleter, getPendingCount, getRawResult, setCompleter, setPendingCount, setRawResult, tryComplete
 
Methods inherited from class jsr166y.ForkJoinTask
adapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, completeExceptionally, fork, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, reinitialize, setForkJoinTaskTag, tryUnfork
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RPC.RPCCall

public RPC.RPCCall(DTask dt,
                   H2ONode client,
                   int tsknum)
Method Detail

compute2

public void compute2()
Specified by:
compute2 in class H2O.H2OCountedCompleter

onCompletion

public void onCompletion(jsr166y.CountedCompleter caller)
Description copied from class: jsr166y.CountedCompleter
Performs an action when method CountedCompleter.tryComplete() is invoked and there are no pending counts, or when the unconditional method CountedCompleter.complete(java.lang.Void) is invoked. By default, this method does nothing.

Overrides:
onCompletion in class jsr166y.CountedCompleter
Parameters:
caller - the task invoking this method (which may be this task itself).

onExceptionalCompletion

public boolean onExceptionalCompletion(java.lang.Throwable ex,
                                       jsr166y.CountedCompleter caller)
Description copied from class: jsr166y.CountedCompleter
Performs an action when method ForkJoinTask.completeExceptionally(java.lang.Throwable) is invoked or method CountedCompleter.compute() throws an exception, and this task has not otherwise already completed normally. On entry to this method, this task ForkJoinTask.isCompletedAbnormally(). The return value of this method controls further propagation: If true and this task has a completer, then this completer is also completed exceptionally. The default implementation of this method does nothing except return true.

Overrides:
onExceptionalCompletion in class jsr166y.CountedCompleter
Parameters:
ex - the exception
caller - the task invoking this method (which may be this task itself).
Returns:
true if this exception should be propagated to this tasks completer, if one exists.

resend_ack

public final void resend_ack()

priority

public byte priority()
Overrides:
priority in class H2O.H2OCountedCompleter

getDelay

public final long getDelay(java.util.concurrent.TimeUnit unit)
Specified by:
getDelay in interface java.util.concurrent.Delayed

compareTo

public final int compareTo(java.util.concurrent.Delayed t)
Specified by:
compareTo in interface java.lang.Comparable<java.util.concurrent.Delayed>

size

public int size()