ariba.util.core
Class PerformanceStateTimedCounter

java.lang.Object
  extended by ariba.util.core.PerformanceStateCore
      extended by ariba.util.core.PerformanceStateCounter
          extended by ariba.util.core.PerformanceStateTimedCounter
Direct Known Subclasses:
PerformanceStateCPUTimedCounter

public class PerformanceStateTimedCounter
extends PerformanceStateCounter


Nested Class Summary
static class PerformanceStateTimedCounter.Instance
          the real instance
 
Nested classes/interfaces inherited from class ariba.util.core.PerformanceStateCore
PerformanceStateCore.EventDetail, PerformanceStateCore.MetricObserver
 
Field Summary
static int PAUSED
           
static int RUNNING
           
static int STOPPED
           
 
Fields inherited from class ariba.util.core.PerformanceStateCore
LOG_COUNT, LOG_EVENTS, LOG_TIME, LogRankComparator
 
Constructor Summary
PerformanceStateTimedCounter(java.lang.String name)
           
PerformanceStateTimedCounter(java.lang.String name, int logRank)
           
PerformanceStateTimedCounter(java.lang.String name, int logRank, int logFlags)
           
 
Method Summary
 int getState()
           
 void pause()
          Pause the timer (stop gathering time)
 void resume()
          Resume timing.
 void start()
          Start a timer
 long stop()
          Stop the timer.
 long stop(long quantity)
           
 long stop(long quantity, long count2Inc)
           
 long stop(long quantity, long count2Inc, java.lang.String type)
          Stop the timer and record a quantity of items
 long stop(long quantity, java.lang.String type)
           
 
Methods inherited from class ariba.util.core.PerformanceStateCounter
addCount, addCount, addCount, addCount, addCount, addCount
 
Methods inherited from class ariba.util.core.PerformanceStateCore
appendCSVData, appendCSVHeaders, getGlobalStackTraceCaptureThreshold, getLogRank, getName, hasSameNameAs, instance, setGlobalStackTraceCaptureThreshold
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STOPPED

public static final int STOPPED
See Also:
Constant Field Values

RUNNING

public static final int RUNNING
See Also:
Constant Field Values

PAUSED

public static final int PAUSED
See Also:
Constant Field Values
Constructor Detail

PerformanceStateTimedCounter

public PerformanceStateTimedCounter(java.lang.String name,
                                    int logRank,
                                    int logFlags)

PerformanceStateTimedCounter

public PerformanceStateTimedCounter(java.lang.String name,
                                    int logRank)

PerformanceStateTimedCounter

public PerformanceStateTimedCounter(java.lang.String name)
Method Detail

start

public void start()
Start a timer


pause

public void pause()
Pause the timer (stop gathering time)


resume

public void resume()
Resume timing.


stop

public long stop()
Stop the timer.


stop

public long stop(long quantity,
                 long count2Inc,
                 java.lang.String type)
Stop the timer and record a quantity of items


stop

public long stop(long quantity,
                 long count2Inc)

stop

public long stop(long quantity,
                 java.lang.String type)

stop

public long stop(long quantity)

getState

public int getState()


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.