|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.util.Progress
public class Progress
Utility to assist with generation of progress reports. Applications build
a hierarchy of Progress
instances, each modelling a phase of
execution. The root is constructed with Progress()
. Nodes for
sub-phases are created by calling addPhase()
.
Constructor Summary | |
---|---|
Progress()
Creates a new root node. |
Method Summary | |
---|---|
Progress |
addPhase()
Adds a node to the tree. |
Progress |
addPhase(String status)
Adds a named node to the tree. |
void |
complete()
Completes this node, moving the parent node to its next child. |
float |
get()
Returns the overall progress of the root. |
Progress |
phase()
Returns the current sub-node executing. |
void |
set(float progress)
Called during execution on a leaf node to set its progress. |
void |
setStatus(String status)
|
void |
startNextPhase()
Called during execution to move to the next phase at this level in the tree. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Progress()
Method Detail |
---|
public Progress addPhase(String status)
public Progress addPhase()
public void startNextPhase()
public Progress phase()
public void complete()
public void set(float progress)
public float get()
public void setStatus(String status)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |