|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsr166y.ForkJoinTask<java.lang.Void>
jsr166y.CountedCompleter
water.H2O.H2OCountedCompleter
water.DTask<T>
public abstract class DTask<T extends DTask>
Objects which are passed & remotely executed.
Efficient serialization methods for subclasses will be automatically generated, but explicit ones can be provided. Transient fields will not be mirrored between the VMs.
#invoke(H2ONode)
method will be executed.onAck()
method will be executed.onAckAck()
method will be executed.
Field Summary | |
---|---|
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 Summary | |
---|---|
DTask()
|
Method Summary | ||
---|---|---|
DTask |
clone()
|
|
void |
copyOver(T that)
|
|
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. |
|
|
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. |
|
|
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. |
Methods inherited from class water.H2O.H2OCountedCompleter |
---|
compute, compute2, priority |
Methods inherited from class jsr166y.CountedCompleter |
---|
addToPendingCount, compareAndSetPendingCount, complete, exec, getCompleter, getPendingCount, getRawResult, onCompletion, 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 |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public DTask()
Method Detail |
---|
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 jsr166y.CountedCompleter
ex
- the exceptioncaller
- the task invoking this method (which may
be this task itself).
public AutoBuffer write(AutoBuffer bb)
Freezable
write
in interface Freezable
public <F extends Freezable> F read(AutoBuffer bb)
Freezable
read
in interface 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(T that)
public DTask clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |