cascading.stats
Class CascadeStats

java.lang.Object
  extended by cascading.stats.CascadingStats
      extended by cascading.stats.CascadeStats
All Implemented Interfaces:
Serializable

public class CascadeStats
extends CascadingStats

Class CascadeStats collects Cascade specific statistics.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class cascading.stats.CascadingStats
CascadingStats.Status
 
Constructor Summary
CascadeStats(String name, String cascadeID)
           
 
Method Summary
 void addFlowStats(FlowStats flowStats)
          Method addFlowStats add a child Flow {2link FlowStats} instance.
 void captureDetail()
          Method captureDetail will recursively capture details about nested systems.
 Collection getChildren()
           
 Collection<String> getCounterGroups()
          Method getCounterGroups returns all the available counter group names.
 Collection<String> getCounterGroupsMatching(String regex)
          Method getCounterGroupsMatching returns all the available counter group names that match the given regular expression.
 Collection<String> getCountersFor(String group)
          Method getCountersFor returns all the counter names for the give group name.
 long getCounterValue(Enum counter)
          Method getCounter returns the current value for the given counter Enum.
 long getCounterValue(String group, String counter)
          Method getCounter returns the current value for the given group and counter.
 int getFlowCount()
          Method getFlowCount returns the number of Flows executed by the Cascade.
 Object getID()
          Method getID returns the ID of this CascadingStats object.
 String toString()
           
 
Methods inherited from class cascading.stats.CascadingStats
getCountersFor, getCurrentDuration, getDuration, getFinishedTime, getName, getStartTime, getStatsString, getStatus, isFailed, isFinished, isPending, isRunning, isSkipped, isStopped, isSuccessful, markFailed, markRunning, markSkipped, markStartTime, markStopped, markSuccessful
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CascadeStats

public CascadeStats(String name,
                    String cascadeID)
Method Detail

getID

public Object getID()
Description copied from class: CascadingStats
Method getID returns the ID of this CascadingStats object.

Specified by:
getID in class CascadingStats
Returns:
the ID (type Object) of this CascadingStats object.

addFlowStats

public void addFlowStats(FlowStats flowStats)
Method addFlowStats add a child Flow {2link FlowStats} instance.

Parameters:
flowStats - of type FlowStats

getFlowCount

public int getFlowCount()
Method getFlowCount returns the number of Flows executed by the Cascade.

Returns:
the flowCount (type int) of this CascadeStats object.

getCounterGroups

public Collection<String> getCounterGroups()
Description copied from class: CascadingStats
Method getCounterGroups returns all the available counter group names.

Specified by:
getCounterGroups in class CascadingStats
Returns:
the counterGroups (type Collection) of this CascadingStats object.

getCounterGroupsMatching

public Collection<String> getCounterGroupsMatching(String regex)
Description copied from class: CascadingStats
Method getCounterGroupsMatching returns all the available counter group names that match the given regular expression.

Specified by:
getCounterGroupsMatching in class CascadingStats
Parameters:
regex - of type String
Returns:
Collection

getCountersFor

public Collection<String> getCountersFor(String group)
Description copied from class: CascadingStats
Method getCountersFor returns all the counter names for the give group name.

Specified by:
getCountersFor in class CascadingStats
Returns:
Collection

getCounterValue

public long getCounterValue(Enum counter)
Description copied from class: CascadingStats
Method getCounter returns the current value for the given counter Enum.

Specified by:
getCounterValue in class CascadingStats
Parameters:
counter - of type Enum
Returns:
the current counter value

getCounterValue

public long getCounterValue(String group,
                            String counter)
Description copied from class: CascadingStats
Method getCounter returns the current value for the given group and counter.

Specified by:
getCounterValue in class CascadingStats
Parameters:
group - of type String
counter - of type String
Returns:
the current counter value

captureDetail

public void captureDetail()
Description copied from class: CascadingStats
Method captureDetail will recursively capture details about nested systems. Use this method to persist statistics about a given Cascade, Flow, or FlowStep.

Each CascadingStats object must be individually inspected for any system specific details.

Specified by:
captureDetail in class CascadingStats

getChildren

public Collection getChildren()
Specified by:
getChildren in class CascadingStats

toString

public String toString()
Overrides:
toString in class CascadingStats


Copyright © 2007-2010 Concurrent, Inc. All Rights Reserved.