ariba.util.core
Class PerformanceStateTimedCounter.Instance

java.lang.Object
  extended by ariba.util.core.PerformanceStateCore.Instance
      extended by ariba.util.core.PerformanceStateCounter.Instance
          extended by ariba.util.core.PerformanceStateTimedCounter.Instance
Enclosing class:
PerformanceStateTimedCounter

public static class PerformanceStateTimedCounter.Instance
extends PerformanceStateCounter.Instance

the real instance


Field Summary
static String ColumnElapsedTime
          The key for the elapsed time in the results EqHashtable.
 
Fields inherited from class ariba.util.core.PerformanceStateCounter.Instance
ColumnNameCount
 
Fields inherited from class ariba.util.core.PerformanceStateCore.Instance
ColumnEventDetail
 
Constructor Summary
PerformanceStateTimedCounter.Instance(String name)
           
 
Method Summary
 String elapsedTimeString()
           
 Map getData()
          Returns a hashtable with all the data from this metric.
 long getElapsedTime()
          Returns the currently elapsed time, without stopping the timer
 int getState()
           
 void pause(long quantity)
          Pause the timer and record a quantity of elements to add to the metrics.
 int resolutionLevel()
           
 void resume()
           
 void start()
           
 void stop(long quantity)
           
 void stop(long quantity, long count2Inc)
           
 void stop(long quantity, long count2Inc, String type)
          Stop the timer and record a quantity of items
 void stop(long quantity, String type)
           
 
Methods inherited from class ariba.util.core.PerformanceStateCounter.Instance
addCount, addCount, addCount, countString, getCount
 
Methods inherited from class ariba.util.core.PerformanceStateCore.Instance
getCount, getEventList, recordEvent, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ColumnElapsedTime

public static final String ColumnElapsedTime
The key for the elapsed time in the results EqHashtable.

Constructor Detail

PerformanceStateTimedCounter.Instance

public PerformanceStateTimedCounter.Instance(String name)
Method Detail

start

public void start()

stop

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


stop

public void stop(long quantity,
                 long count2Inc)

stop

public void stop(long quantity,
                 String type)

stop

public void stop(long quantity)

getState

public int getState()

pause

public void pause(long quantity)
Pause the timer and record a quantity of elements to add to the metrics.


resume

public void resume()

getElapsedTime

public long getElapsedTime()
Returns the currently elapsed time, without stopping the timer

Overrides:
getElapsedTime in class PerformanceStateCore.Instance

elapsedTimeString

public String elapsedTimeString()
Overrides:
elapsedTimeString in class PerformanceStateCore.Instance

resolutionLevel

public int resolutionLevel()

getData

public Map getData()
Returns a hashtable with all the data from this metric. Do not call this method on the static instances.

Overrides:
getData in class PerformanceStateCounter.Instance


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