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
Direct Known Subclasses:
PerformanceStateCPUTimedCounter.Instance
Enclosing class:
PerformanceStateTimedCounter

public static class PerformanceStateTimedCounter.Instance
extends PerformanceStateCounter.Instance

the real instance


Field Summary
static java.lang.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(java.lang.String name)
           
 
Method Summary
 java.lang.String elapsedTimeString()
           
 java.util.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()
           
 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.Instance
addCount, addCount, addCount, countString, getCount
 
Methods inherited from class ariba.util.core.PerformanceStateCore.Instance
getCount, getEventList, getEventTypeIterator, recordEvent, recordEvent, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ColumnElapsedTime

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

Constructor Detail

PerformanceStateTimedCounter.Instance

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

start

public void start()

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()

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 java.lang.String elapsedTimeString()
Overrides:
elapsedTimeString in class PerformanceStateCore.Instance

resolutionLevel

public int resolutionLevel()

getData

public java.util.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-2014 Ariba, Inc. All Rights Reserved.