Uses of Interface
org.javasimon.Stopwatch

Packages that use Stopwatch
org.javasimon Core package, contains Simon implementations, with the SimonManager as the center point of the API. 
org.javasimon.callback Callback is an event listener registered with the Manager, listening for manager or Simon events. 
org.javasimon.callback.calltree CallTreeCallback gathers information for current thread and displays it subsequent calls like a tree. 
org.javasimon.callback.lastsplits LastSplitsCallback retains last splits in a ring a buffer (fixed size FIFO queue). 
org.javasimon.callback.logging LoggingCallback is able to log stopwatch splits and statistics once in a while (N per millisecond, every N split, when split is longer than N ms, etc.) 
org.javasimon.callback.quantiles QuantilesCallback sorts splits to categories (Buckets) based on time ranges. 
org.javasimon.callback.timeline   
org.javasimon.jmx JMX capabilities for Simons. 
org.javasimon.source MonitorSource is the interface used as function to transform execution context (method invocation, HTTP request...) into a Simon. 
org.javasimon.utils Java Simon supporting utilities and tools. 
 

Uses of Stopwatch in org.javasimon
 

Classes in org.javasimon that implement Stopwatch
(package private)  class NullStopwatch
          Null Stopwatch implements Simon returned by the disabled Manager.getStopwatch(String).
(package private)  class StopwatchImpl
          Class implements Stopwatch interface - see there for how to use Stopwatch.
 

Fields in org.javasimon declared as Stopwatch
private  Stopwatch Split.stopwatch
           
 

Methods in org.javasimon that return Stopwatch
 Stopwatch StopwatchImpl.addSplit(Split split)
           
 Stopwatch Stopwatch.addSplit(Split split)
          Adds Split to the stopwatch which is useful for aggregation of splits created for other stopwatch.
 Stopwatch NullStopwatch.addSplit(Split split)
           
 Stopwatch StopwatchImpl.addTime(long ns)
           
 Stopwatch Stopwatch.addTime(long ns)
          Adds split time in nanoseconds to total time of the stopwatch.
 Stopwatch NullStopwatch.addTime(long ns)
           
 Stopwatch Split.getStopwatch()
          Returns the stopwatch that this split is running for.
 Stopwatch SwitchingManager.getStopwatch(String name)
           
static Stopwatch SimonManager.getStopwatch(String name)
          Returns existing Stopwatch or creates new if necessary.
 Stopwatch Manager.getStopwatch(String name)
          Returns existing Stopwatch or creates new if necessary.
 Stopwatch EnabledManager.getStopwatch(String name)
           
 Stopwatch DisabledManager.getStopwatch(String name)
          Returns "Null Stopwatch" that always returns empty/null values and cannot measure anything.
 Stopwatch StopwatchImpl.reset()
           
 Stopwatch Stopwatch.reset()
          Resets the Simon - clears total time, min, max, usage stats, etc.
 

Constructors in org.javasimon with parameters of type Stopwatch
Split(Stopwatch stopwatch)
          Creates a new Split for a disabled Stopwatch - called internally only.
Split(Stopwatch stopwatch, long start)
          Creates a new Split for an enabled Stopwatch with a specific timestamp in nanoseconds - called internally only.
 

Uses of Stopwatch in org.javasimon.callback
 

Methods in org.javasimon.callback with parameters of type Stopwatch
private  boolean FilterRule.checkStopwtach(Stopwatch stopwatch, Object... params)
           
 void CompositeFilterCallback.onStopwatchAdd(Stopwatch stopwatch, long ns, StopwatchSample sample)
           
 void CompositeCallbackImpl.onStopwatchAdd(Stopwatch stopwatch, long ns, StopwatchSample sample)
           
 void CallbackSkeleton.onStopwatchAdd(Stopwatch stopwatch, long ns, StopwatchSample sample)
           
 void Callback.onStopwatchAdd(Stopwatch stopwatch, long ns, StopwatchSample sample)
          Stopwatch add time event.
 void CompositeFilterCallback.onStopwatchAdd(Stopwatch stopwatch, Split split, StopwatchSample sample)
           
 void CompositeCallbackImpl.onStopwatchAdd(Stopwatch stopwatch, Split split, StopwatchSample sample)
           
 void CallbackSkeleton.onStopwatchAdd(Stopwatch stopwatch, Split split, StopwatchSample sample)
           
 void Callback.onStopwatchAdd(Stopwatch stopwatch, Split split, StopwatchSample sample)
          Stopwatch add split event.
 

Uses of Stopwatch in org.javasimon.callback.calltree
 

Methods in org.javasimon.callback.calltree with parameters of type Stopwatch
static CallTree CallTreeCallback.getLastCallTree(Stopwatch stopwatch)
          Returns last call tree stored in stopwatch attributes.
 

Uses of Stopwatch in org.javasimon.callback.lastsplits
 

Methods in org.javasimon.callback.lastsplits with parameters of type Stopwatch
protected  LogTemplate<Split> LastSplitsCallback.createLogTemplate(Stopwatch stopwatch)
          Create log template for given stopwatch.
private  LastSplits LastSplitsCallback.getLastSplits(Stopwatch stopwatch)
          Get the LastSplits object from Simon attributes.
 

Uses of Stopwatch in org.javasimon.callback.logging
 

Methods in org.javasimon.callback.logging with parameters of type Stopwatch
protected  LogTemplate<Split> LoggingCallback.getStopwatchLogTemplate(Stopwatch stopwatch)
          Get log template for stopwatch, defaults to LoggingCallback.stopwatchLogTemplate.
 

Uses of Stopwatch in org.javasimon.callback.quantiles
 

Methods in org.javasimon.callback.quantiles with parameters of type Stopwatch
protected abstract  Buckets QuantilesCallback.createBuckets(Stopwatch stopwatch)
          Create Buckets for given stopwatch.
protected  Buckets PropertiesQuantilesCallback.createBuckets(Stopwatch stopwatch)
          Create buckets using callback attributes
protected  Buckets FixedQuantilesCallback.createBuckets(Stopwatch stopwatch)
          Create buckets using callback attributes
protected  Buckets AutoQuantilesCallback.createBuckets(Stopwatch stopwatch)
          When warmup ends, buckets are create and retained splits are sorted in the buckets.
protected  Buckets QuantilesCallback.createBuckets(Stopwatch stopwatch, long min, long max, int bucketNb)
          Factory method to create a Buckets object using given configuration
abstract  Buckets BucketsType.createBuckets(Stopwatch stopwatch, long min, long max, int bucketNb)
          Factory method to create a Buckets
protected  Buckets AutoQuantilesCallback.createBucketsAfterWarmup(Stopwatch stopwatch)
          Create the buckets after warmup time.
protected  LogTemplate<Split> QuantilesCallback.createLogTemplate(Stopwatch stopwatch)
          Create log template for given stopwatch.
static Buckets QuantilesCallback.getBuckets(Stopwatch stopwatch)
          Get the buckets attribute.
private  List<Long> AutoQuantilesCallback.getBucketsValues(Stopwatch stopwatch)
          Get the bucket values attribute.
protected  Buckets QuantilesCallback.getOrCreateBuckets(Stopwatch stopwatch)
          Get the buckets attribute or create it if it does not exist.
private  List<Long> AutoQuantilesCallback.getOrCreateBucketsValues(Stopwatch stopwatch)
          Get the bucket values attribute or create it if it does not exist.
 void QuantilesCallback.onStopwatchAdd(Stopwatch stopwatch, long value, StopwatchSample sample)
          When a split is added, if buckets have been initialized, the value is added to appropriate bucket.
 void QuantilesCallback.onStopwatchAdd(Stopwatch stopwatch, Split split, StopwatchSample sample)
          When a split is added, if buckets have been initialized, the value is added to appropriate bucket.
protected  void QuantilesCallback.onStopwatchSplit(Stopwatch stopwatch, long value)
          Called internally when there is a new split on a Stopwatch from {@link #onStopwatchAdd(org.javasimon.Stopwatch, long, org.javasimon.StopwatchSample).
protected  void AutoQuantilesCallback.onStopwatchSplit(Stopwatch stopwatch, long value)
          Called when there is a new split on a Stopwatch, either QuantilesCallback.onStopwatchStop(org.javasimon.Split, org.javasimon.StopwatchSample) or QuantilesCallback.onStopwatchAdd(org.javasimon.Stopwatch, org.javasimon.Split, org.javasimon.StopwatchSample).
protected  void QuantilesCallback.onStopwatchSplit(Stopwatch stopwatch, Split split)
          Called when there is a new split on a Stopwatch, either QuantilesCallback.onStopwatchStop(org.javasimon.Split, org.javasimon.StopwatchSample) or QuantilesCallback.onStopwatchAdd(org.javasimon.Stopwatch, org.javasimon.Split, org.javasimon.StopwatchSample).
protected  void AutoQuantilesCallback.onStopwatchSplit(Stopwatch stopwatch, Split split)
          Called when there is a new split on a Stopwatch, either QuantilesCallback.onStopwatchStop(org.javasimon.Split, org.javasimon.StopwatchSample) or QuantilesCallback.onStopwatchAdd(org.javasimon.Stopwatch, org.javasimon.Split, org.javasimon.StopwatchSample).
private  void AutoQuantilesCallback.removeBucketsValues(Stopwatch stopwatch)
          Remove the bucket values attribute (after warmup).
static BucketsSample QuantilesCallback.sampleBuckets(Stopwatch stopwatch)
          Get the buckets attribute and sample them
 

Uses of Stopwatch in org.javasimon.callback.timeline
 

Methods in org.javasimon.callback.timeline with parameters of type Stopwatch
private  StopwatchTimeline TimelineCallback.getStopwatchTimeline(Stopwatch stopwatch)
          Get timeline for given Stopwatch
 void TimelineCallback.onStopwatchAdd(Stopwatch stopwatch, Split split, StopwatchSample sample)
           
 

Uses of Stopwatch in org.javasimon.jmx
 

Fields in org.javasimon.jmx declared as Stopwatch
protected  Stopwatch StopwatchMXBeanImpl.stopwatch
          Wrapped Stopwatch instance - protected for subclasses.
 

Constructors in org.javasimon.jmx with parameters of type Stopwatch
StopwatchMXBeanImpl(Stopwatch stopwatch)
          Creates the MX bean for the provided Stopwatch.
 

Uses of Stopwatch in org.javasimon.source
 

Methods in org.javasimon.source that return Stopwatch
 Stopwatch DisabledStopwatchSource.getMonitor(L location)
           
 Stopwatch AbstractStopwatchSource.getMonitor(T location)
          Provide a Stopwatch for given location.
 Stopwatch AbstractMethodStopwatchSource.getMonitor(T location)
          Returns the Stopwatch for given join point.
 

Uses of Stopwatch in org.javasimon.utils
 

Methods in org.javasimon.utils with parameters of type Stopwatch
 void SystemDebugCallback.onStopwatchAdd(Stopwatch stopwatch, long ns, StopwatchSample sample)
           
 void SystemDebugCallback.onStopwatchAdd(Stopwatch stopwatch, Split split, StopwatchSample sample)
           
 



Copyright © 2013. All Rights Reserved.