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 | Class and Description |
---|---|
static class |
DTask.DKeyTask<T extends DTask.DKeyTask,V extends Iced>
Task to be executed at home of the given key.
|
Modifier and Type | Field and Description |
---|---|
protected DException |
_ex |
Modifier | Constructor and Description |
---|---|
protected |
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.
|
<T 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, onExceptionalCompletion, 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 DException _ex
protected DTask()
public DTask(H2O.H2OCountedCompleter completer)
public final boolean hasException()
public void setException(java.lang.Throwable ex)
public DException.DistributedException getDException()
public void dinvoke(H2ONode sender)
public void onAck()
public void onAckAck()
public boolean logVerbose()
public AutoBuffer write(AutoBuffer bb)
Freezable
public <T extends Freezable> T 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)