public abstract class DTask<T extends DTask> extends H2O.H2OCountedCompleter implements Freezable
Efficient serialization methods for subclasses will be automatically generated, but explicit ones can be provided. Transient fields will not be mirrored between the VMs.
onAck()
method will be executed.onAckAck()
method will be executed.Modifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
_cls |
protected java.lang.String |
_eFromNode |
protected java.lang.String |
_exception |
protected java.lang.String[] |
_fname |
protected int[] |
_lineNum |
protected java.lang.String |
_msg |
protected java.lang.String[] |
_mth |
Constructor and Description |
---|
DTask() |
DTask(H2O.H2OCountedCompleter completer) |
Modifier and Type | Method and Description |
---|---|
void |
copyOver(Freezable other) |
void |
dinvoke(H2ONode sender)
Top-level remote execution hook.
|
int |
frozenType()
Return the cluster-wide-unique 2-byte type ID for instances of this class
|
DException.DistributedException |
getDException() |
boolean |
hasException() |
boolean |
logVerbose()
Override to remove 2 lines of logging per RPC.
|
<F extends Freezable> |
newInstance()
Make a new instance of class 'this' with the empty constructor
|
void |
onAck()
2nd top-level execution hook.
|
void |
onAckAck()
3rd top-level execution hook.
|
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. |
<F extends Freezable> |
read(AutoBuffer bb)
Deserialize from the AutoBuffer into a pre-existing 'this' object.
|
void |
setException(java.lang.Throwable ex) |
DocGen.FieldDoc[] |
toDocField()
Reflective list of fields
|
AutoBuffer |
write(AutoBuffer bb)
Serialize the 'this' object into the AutoBuffer, returning the AutoBuffer.
|
AutoBuffer |
writeJSONFields(AutoBuffer bb)
Serialize the 'this' object into the AutoBuffer, returning the AutoBuffer.
|
clone, compute, compute2, priority
addToPendingCount, compareAndSetPendingCount, complete, exec, getCompleter, getPendingCount, getRawResult, onCompletion, setCompleter, setPendingCount, setRawResult, tryComplete
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
protected java.lang.String _exception
protected java.lang.String _msg
protected java.lang.String _eFromNode
protected int[] _lineNum
protected java.lang.String[] _cls
protected java.lang.String[] _mth
protected java.lang.String[] _fname
public DTask()
public DTask(H2O.H2OCountedCompleter completer)
public void setException(java.lang.Throwable ex)
public boolean hasException()
public DException.DistributedException getDException()
public void dinvoke(H2ONode sender)
public void onAck()
public void onAckAck()
public boolean logVerbose()
public boolean onExceptionalCompletion(java.lang.Throwable ex, jsr166y.CountedCompleter caller)
jsr166y.CountedCompleter
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
.onExceptionalCompletion
in class H2O.H2OCountedCompleter
ex
- the exceptioncaller
- the task invoking this method (which may
be this task itself).public AutoBuffer write(AutoBuffer bb)
Freezable
public <F extends Freezable> F read(AutoBuffer bb)
Freezable
public <F extends Freezable> F newInstance()
Freezable
newInstance
in interface Freezable
public int frozenType()
Freezable
frozenType
in interface Freezable
public AutoBuffer writeJSONFields(AutoBuffer bb)
Freezable
writeJSONFields
in interface Freezable
public DocGen.FieldDoc[] toDocField()
Freezable
toDocField
in interface Freezable
public void copyOver(Freezable other)