org.mule.management.stats
Class ProcessingTime

java.lang.Object
  extended by org.mule.management.stats.ProcessingTime
All Implemented Interfaces:
Serializable

public class ProcessingTime
extends Object
implements Serializable

Accumulates the processing time for all branches of a flow

See Also:
Serialized Form

Method Summary
 void addFlowExecutionBranchTime(long startTime)
          Add the execution time for this branch to the flow construct's statistics
 AtomicLong getAccumulator()
           
static long getEffectiveTime(long time)
          Convert processing time to effective processing time.
 FlowConstructStatistics getStatistics()
           
static ProcessingTime newInstance(MuleEvent event)
          Create a ProcessingTime for the specified MuleSession.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static ProcessingTime newInstance(MuleEvent event)
Create a ProcessingTime for the specified MuleSession.

Returns:
ProcessingTime if the session has an enabled FlowConstructStatistics or null otherwise

addFlowExecutionBranchTime

public void addFlowExecutionBranchTime(long startTime)
Add the execution time for this branch to the flow construct's statistics

Parameters:
startTime - time this branch started

getEffectiveTime

public static long getEffectiveTime(long time)
Convert processing time to effective processing time. If processing took less than a tick, we consider it to have been one millisecond


getStatistics

public FlowConstructStatistics getStatistics()

getAccumulator

public AtomicLong getAccumulator()


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.