ariba.util.core
Class PerformanceStateCounter

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

public class PerformanceStateCounter
extends PerformanceStateCore

A thread specific counter.


Nested Class Summary
static class PerformanceStateCounter.Instance
          the real instance
 
Nested classes/interfaces inherited from class ariba.util.core.PerformanceStateCore
PerformanceStateCore.EventDetail, PerformanceStateCore.MetricObserver
 
Field Summary
 
Fields inherited from class ariba.util.core.PerformanceStateCore
LOG_COUNT, LOG_EVENTS, LOG_TIME, LogRankComparator
 
Constructor Summary
PerformanceStateCounter(java.lang.String name)
           
PerformanceStateCounter(java.lang.String name, int logRank)
           
PerformanceStateCounter(java.lang.String name, int logRank, int logFlags)
           
 
Method Summary
 void addCount()
          Add 1 to the count.
 void addCount(long quantity)
          Add quantity to the count.
 void addCount(long c1, long c2)
          Add c1 to the count, and add c2 to the secondary count.
 void addCount(long c1, long c2, java.lang.String type)
          Add c1 to the count of the specific type, and add c2 to the secondary count of the specific type.
 void addCount(long quantity, java.lang.String type)
          Add quantity to the count of the specific type.
 void addCount(java.lang.String type)
          Add 1 to the count of the specific type.
 
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
 

Constructor Detail

PerformanceStateCounter

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

PerformanceStateCounter

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

PerformanceStateCounter

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

addCount

public void addCount()
Add 1 to the count.


addCount

public void addCount(long quantity)
Add quantity to the count.


addCount

public void addCount(java.lang.String type)
Add 1 to the count of the specific type.


addCount

public void addCount(long quantity,
                     java.lang.String type)
Add quantity to the count of the specific type.


addCount

public void addCount(long c1,
                     long c2)
Add c1 to the count, and add c2 to the secondary count.


addCount

public void addCount(long c1,
                     long c2,
                     java.lang.String type)
Add c1 to the count of the specific type, and add c2 to the secondary count of the specific type.



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