ariba.util.core
Class PerformanceStateCore.Instance

java.lang.Object
  extended by ariba.util.core.PerformanceStateCore.Instance
Direct Known Subclasses:
PerformanceStateCounter.Instance
Enclosing class:
PerformanceStateCore

public static class PerformanceStateCore.Instance
extends java.lang.Object

the real data bearing instance


Field Summary
static java.lang.String ColumnEventDetail
           
 
Method Summary
 java.lang.String countString()
           
 java.lang.String elapsedTimeString()
           
 long getCount()
           
 long getCount(java.lang.String type)
           
 java.util.Map getData()
          Returns a hashtable with all the data from this metric.
 long getElapsedTime()
           
 java.util.List getEventList()
           
 java.util.Iterator<java.lang.String> getEventTypeIterator()
          Returns Iterator over String event types, in the order they were added to this instance.
 void recordEvent(java.lang.String type)
          If type is null do nothing, this is the most common case.
 void recordEvent(java.lang.String type, int increment)
          If type is null do nothing, this is the most common case.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ColumnEventDetail

public static final java.lang.String ColumnEventDetail
See Also:
Constant Field Values
Method Detail

getCount

public long getCount()

getEventTypeIterator

public java.util.Iterator<java.lang.String> getEventTypeIterator()
Returns Iterator over String event types, in the order they were added to this instance. LinkedHashMap maintains insertion order. Never returns null.


getCount

public final long getCount(java.lang.String type)

getElapsedTime

public long getElapsedTime()

elapsedTimeString

public java.lang.String elapsedTimeString()

countString

public java.lang.String countString()

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.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

recordEvent

public void recordEvent(java.lang.String type)
If type is null do nothing, this is the most common case. If type is non-null, get or create its EventDetail record in the map, and increment its count by 1. If type is non-null, and the count for this type has exactly reached the GlobalStackTraceCaptureThreshold, then it generates a stacktrace and a debug string, and puts them int he EventDetail record.


recordEvent

public void recordEvent(java.lang.String type,
                        int increment)
If type is null do nothing, this is the most common case. If type is non-null, get or create its EventDetail record in the map, and increment its count by the given increment, usually 1. If type is non-null, and the count for this type has exactly reached the GlobalStackTraceCaptureThreshold, then it generates a stacktrace and a debug string, and puts them int he EventDetail record.


getEventList

public java.util.List getEventList()


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