|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcascading.stats.CascadingStats
public class CascadingStats
Class CascadingStats is the base class for all Cascading statistics gathering. It also reports the status of core elements that have state.
There are five states the stats object reports; pending, running, completed, failed, stopped, and finished.pending - when the Flow or Cascade has yet to start.running - when the Flow or Cascade is executing a workload.successful - when the Flow or Cascade naturally completed its workload without failure.failed - when the Flow or Cascade threw an error and failed to finish the workload.stopped - when the user calls stop() on the Flow or Cascade.finished - when the Flow or Cascade is no longer processing a workload and completed,
failed, or stopped is true.
FlowStats,
CascadeStats| Method Summary | |
|---|---|
long |
getDuration()
Method getDuration returns the duration the work executed before being finished. |
protected String |
getStatsString()
|
boolean |
isFailed()
Method isFailed returns true when the work ended with an error. |
boolean |
isFinished()
Method isFinished returns true if the current status show no work currently being executed. |
boolean |
isPending()
Method isPending returns true if no work has started. |
boolean |
isRunning()
Method isRunning returns true when work has begun. |
boolean |
isStopped()
Method isStopped returns true when the user stopped the work. |
boolean |
isSuccessful()
Method isSuccessful returns true when work has completed successfully. |
void |
markFailed(Throwable throwable)
Method markFailed sets the status to failed. |
void |
markRunning()
Method markRunning sets the status to running. |
protected void |
markStartTime()
|
void |
markStopped()
Method markStopped sets the status to stopped. |
void |
markSuccessful()
Method markSuccessful sets the status to successful. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean isFinished()
isSuccessful(), isFailed(), or isStopped() returns true.
public boolean isPending()
public boolean isRunning()
public boolean isSuccessful()
public boolean isFailed()
public boolean isStopped()
public void markRunning()
protected void markStartTime()
public void markSuccessful()
public void markFailed(Throwable throwable)
throwable - of type Throwablepublic void markStopped()
public long getDuration()
protected String getStatsString()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||