|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcascading.stats.CascadingStats
cascading.stats.FlowStepStats
cascading.stats.hadoop.HadoopStepStats
public abstract class HadoopStepStats
Class HadoopStepStats provides Hadoop specific statistics and methods to underlying Hadoop facilities.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class cascading.stats.CascadingStats |
---|
CascadingStats.Status |
Field Summary | |
---|---|
static String |
COUNTER_TIMEOUT_PROPERTY
|
static int |
TIMEOUT_MAX
|
Fields inherited from class cascading.stats.CascadingStats |
---|
clientState, STATS_STORE_INTERVAL |
Constructor Summary | |
---|---|
protected |
HadoopStepStats(FlowStep<JobConf> flowStep,
ClientState clientState)
|
Method Summary | |
---|---|
protected Counters |
cachedCounters()
|
protected Counters |
cachedCounters(boolean force)
|
void |
captureDetail()
Method captureDetail captures statistics task details and completion events. |
void |
captureDetail(boolean captureAttempts)
|
Set<String> |
getChildIDs()
|
Collection |
getChildren()
Method getChildren returns the children of this HadoopStepStats object. |
Collection<String> |
getCounterGroups()
Method getCounterGroups returns all of the Hadoop counter groups. |
Collection<String> |
getCounterGroupsMatching(String regex)
Method getCounterGroupsMatching returns all the Hadoop counter groups that match the give regex pattern. |
Collection<String> |
getCountersFor(String group)
Method getCountersFor returns the Hadoop counters for the given group. |
long |
getCounterValue(Enum counter)
Method getCounterValue returns the Hadoop counter value for the given counter enum. |
long |
getCounterValue(String group,
String counter)
Method getCounterValue returns the Hadoop counter value for the given group and counter name. |
abstract JobClient |
getJobClient()
Method getJobClient returns the Hadoop JobClient managing this Hadoop job. |
String |
getJobID()
Method getJobID returns the Hadoop running job JobID. |
float |
getMapProgress()
Returns the underlying Map tasks progress percentage. |
int |
getNumMapTasks()
Method getNumMapTasks returns the numMapTasks from the Hadoop job file. |
int |
getNumReduceTasks()
Method getNumReduceTasks returns the numReducerTasks from the Hadoop job file. |
float |
getReduceProgress()
Returns the underlying Reduce tasks progress percentage. |
abstract RunningJob |
getRunningJob()
Method getRunningJob returns the Hadoop RunningJob managing this Hadoop job. |
String |
getStatusURL()
|
Map<String,HadoopSliceStats> |
getTaskStats()
Method getTaskStats returns the taskStats of this HadoopStepStats object. |
void |
recordChildStats()
Synchronized to prevent state changes mid record, #stop may be called out of band |
protected void |
setTaskStats(Map<String,HadoopSliceStats> taskStats)
|
Methods inherited from class cascading.stats.FlowStepStats |
---|
getFlowStep, getID, recordInfo, toString |
Methods inherited from class cascading.stats.CascadingStats |
---|
cleanup, getCountersFor, getCurrentDuration, getDuration, getFinishedTime, getName, getPendingTime, getRunTime, getStartTime, getStatsString, getStatus, getSubmitTime, getThrowable, isEngaged, isFailed, isFinished, isPending, isRunning, isSkipped, isStarted, isStopped, isSubmitted, isSuccessful, markFailed, markPending, markPendingTime, markRunning, markRunTime, markSkipped, markStarted, markStartedThenRunning, markStartTime, markStartToRunTime, markStopped, markSubmitted, markSubmitTime, markSuccessful, prepare, recordStats, setStatsStoreInterval |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String COUNTER_TIMEOUT_PROPERTY
public static final int TIMEOUT_MAX
Constructor Detail |
---|
protected HadoopStepStats(FlowStep<JobConf> flowStep, ClientState clientState)
Method Detail |
---|
public Map<String,HadoopSliceStats> getTaskStats()
protected void setTaskStats(Map<String,HadoopSliceStats> taskStats)
public int getNumMapTasks()
public int getNumReduceTasks()
public String getJobID()
public abstract JobClient getJobClient()
JobClient
managing this Hadoop job.
public abstract RunningJob getRunningJob()
RunningJob
managing this Hadoop job.
public Collection<String> getCounterGroups()
getCounterGroups
in class CascadingStats
public Collection<String> getCounterGroupsMatching(String regex)
getCounterGroupsMatching
in class CascadingStats
regex
- of String
public Collection<String> getCountersFor(String group)
getCountersFor
in class CascadingStats
group
- of String
public long getCounterValue(Enum counter)
getCounterValue
in class CascadingStats
counter
- of Enum
public long getCounterValue(String group, String counter)
getCounterValue
in class CascadingStats
group
- of Stringcounter
- of String
protected Counters cachedCounters()
protected Counters cachedCounters(boolean force)
public float getMapProgress()
public float getReduceProgress()
public String getStatusURL()
public Collection getChildren()
getChildren
in class CascadingStats
public Set<String> getChildIDs()
public void recordChildStats()
recordChildStats
in class FlowStepStats
public void captureDetail()
captureDetail
in class CascadingStats
public void captureDetail(boolean captureAttempts)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |