com.twitter.common.stats
Class PipelineStats

java.lang.Object
  extended by com.twitter.common.stats.PipelineStats

public class PipelineStats
extends Object

Tracks the latency of different pipeline stages in a process.


Nested Class Summary
 class PipelineStats.Snapshot
           
 
Constructor Summary
PipelineStats(String pipelineName, Set<String> stages, Time precision)
          Creates a new pipeline tracker with the given pipeline name and stages.
 
Method Summary
 SlidingStats getStatsForStage(String stage)
           
 PipelineStats.Snapshot newSnapshot()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PipelineStats

public PipelineStats(String pipelineName,
                     Set<String> stages,
                     Time precision)
Creates a new pipeline tracker with the given pipeline name and stages. The stage name "full" is reserved to represent the duration of the entire pipeline.

Parameters:
pipelineName - Name of the pipeline.
stages - Stage names.
precision - Precision for time interval recording.
Method Detail

newSnapshot

public PipelineStats.Snapshot newSnapshot()

getStatsForStage

public SlidingStats getStatsForStage(String stage)