public abstract class DRemoteTask<T extends DRemoteTask> extends DTask<T> implements java.lang.Cloneable, jsr166y.ForkJoinPool.ManagedBlocker
| Modifier and Type | Field and Description |
|---|---|
protected Futures |
_fs |
protected boolean |
_is_local |
protected Key[] |
_keys |
protected boolean |
_top_level |
_cls, _eFromNode, _exception, _fname, _lineNum, _msg, _mth| Constructor and Description |
|---|
DRemoteTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
alsoBlockFor(java.util.concurrent.Future f) |
void |
alsoBlockFor(Futures fs) |
boolean |
block()
Possibly blocks the current thread, for example waiting for
a lock or condition.
|
T |
clone() |
void |
compute2() |
T |
dfork(Key... keys) |
Futures |
getFutures() |
void |
init() |
T |
invoke(Key... keys) |
T |
invokeOnAllNodes() |
boolean |
isReleasable()
Returns
true if blocking is unnecessary. |
void |
keys(Key... keys) |
abstract void |
lcompute() |
void |
lonCompletion(jsr166y.CountedCompleter caller) |
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. |
protected void |
postGlobal() |
abstract void |
reduce(T drt) |
protected void |
reduceAlsoBlock(T drt) |
copyOver, dinvoke, frozenType, getDException, hasException, logVerbose, newInstance, onAck, onAckAck, onExceptionalCompletion, read, setException, toDocField, write, writeJSONFieldscompute, priorityaddToPendingCount, compareAndSetPendingCount, complete, exec, getCompleter, getPendingCount, getRawResult, setCompleter, setPendingCount, setRawResult, tryCompleteadapt, 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, tryUnforkprotected Key[] _keys
protected transient boolean _is_local
protected transient boolean _top_level
protected transient volatile Futures _fs
public abstract void reduce(T drt)
public void init()
public T invokeOnAllNodes()
public void keys(Key... keys)
public boolean isReleasable()
jsr166y.ForkJoinPool.ManagedBlockertrue if blocking is unnecessary.isReleasable in interface jsr166y.ForkJoinPool.ManagedBlockerpublic boolean block()
throws java.lang.InterruptedException
jsr166y.ForkJoinPool.ManagedBlockerblock in interface jsr166y.ForkJoinPool.ManagedBlockertrue if no additional blocking is necessary
(i.e., if isReleasable would return true)java.lang.InterruptedException - if interrupted while waiting
(the method is not required to do so, but is allowed to)public final void compute2()
compute2 in class H2O.H2OCountedCompleterpublic final void onCompletion(jsr166y.CountedCompleter caller)
jsr166y.CountedCompleterCountedCompleter.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.onCompletion in class jsr166y.CountedCompletercaller - the task invoking this method (which may
be this task itself).public abstract void lcompute()
public void lonCompletion(jsr166y.CountedCompleter caller)
protected void postGlobal()
public Futures getFutures()
public void alsoBlockFor(java.util.concurrent.Future f)
public void alsoBlockFor(Futures fs)
protected void reduceAlsoBlock(T drt)
public T clone()
clone in class H2O.H2OCountedCompleter