|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.mapred.gridmix.Statistics
public class Statistics
Component collecting the stats required by other components to make decisions. Single thread Collector tries to collec the stats. Each of thread poll updates certain datastructure(Currently ClusterStats). Components interested in these datastructure, need to register. StatsCollector notifies each of the listeners.
Field Summary | |
---|---|
static org.apache.commons.logging.Log |
LOG
|
Constructor Summary | |
---|---|
Statistics(org.apache.hadoop.conf.Configuration conf,
int pollingInterval,
CountDownLatch startFlag)
|
Method Summary | |
---|---|
void |
abort()
Shut down immediately, aborting any work in progress and discarding all pending work. |
void |
add(Job job)
Used by JobMonitor to add the completed job. |
void |
addClusterStatsObservers(org.apache.hadoop.mapred.gridmix.StatListener<org.apache.hadoop.mapred.gridmix.Statistics.ClusterStats> listener)
|
void |
addJobStatsListeners(org.apache.hadoop.mapred.gridmix.StatListener<org.apache.hadoop.mapred.gridmix.Statistics.JobStats> listener)
|
void |
join(long millis)
Wait until the service completes. |
void |
shutdown()
Shut down gracefully, finishing all pending work. |
void |
start()
Attempt to start the service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOG
Constructor Detail |
---|
public Statistics(org.apache.hadoop.conf.Configuration conf, int pollingInterval, CountDownLatch startFlag) throws IOException
IOException
Method Detail |
---|
public void add(Job job)
public void addClusterStatsObservers(org.apache.hadoop.mapred.gridmix.StatListener<org.apache.hadoop.mapred.gridmix.Statistics.ClusterStats> listener)
public void addJobStatsListeners(org.apache.hadoop.mapred.gridmix.StatListener<org.apache.hadoop.mapred.gridmix.Statistics.JobStats> listener)
public void start()
public void join(long millis) throws InterruptedException
shutdown
or abort()
has been requested.
InterruptedException
public void shutdown()
public void abort()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |