com.twitter.common.stats
Class PipelineStats.Snapshot

java.lang.Object
  extended by com.twitter.common.stats.PipelineStats.Snapshot
Enclosing class:
PipelineStats

public class PipelineStats.Snapshot
extends Object


Method Summary
 void end()
          Stops the pipeline, recording the interval for the last registered stage.
 void start(String stageName)
          Records the duration for the current pipeline stage, and advances to the next stage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

start

public void start(String stageName)
Records the duration for the current pipeline stage, and advances to the next stage. The stage name must be one of the stages specified in the constructor.

Parameters:
stageName - Name of the stage to enter.

end

public void end()
Stops the pipeline, recording the interval for the last registered stage. This is the same as calling start(String) with null;