Oracle BPEL Process Manager
Client API Reference
10g Release 2 (10.1.2)
B25709-01


com.collaxa.common.util
Class Statistics

java.lang.Object
  extended bycom.collaxa.common.util.Statistics

All Implemented Interfaces:
java.io.Serializable

public final class Statistics
extends java.lang.Object
implements java.io.Serializable

The Statistics class is a container for a set of engine performance statistics. The set contains the minimum, maximum, summation and size of the sample. Each statistics set is associated with a key which identicates which engine operation this set is tracking; for instance, loading an instance from the database is an operation. Each of the values in this set are represented in milliseconds.

Since:
1.0
See Also:
Serialized Form

Constructor Summary
Statistics(java.lang.String key, long min, long max, int count, long sum)
          Constructs a statistics object with the specified key and values.

 

Method Summary
 double getAvg()
          Returns the average time value for this sample.
 int getCount()
          Returns the number of units recorded for this sample.
 java.lang.String getKey()
          Returns the key for this group of statistics.
 long getMax()
          Returns the maximum time value recorded for this sample.
 long getMin()
          Returns the minimum time value recorded for this sample.
 java.lang.String toString()
          Returns a string representation of this group of statistics.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

Statistics

public Statistics(java.lang.String key,
                  long min,
                  long max,
                  int count,
                  long sum)
Constructs a statistics object with the specified key and values.
Parameters:
key - the key for this group of statistics.
min - the minimum time value recorded for this sample.
max - the maximum time value recorded for this sample.
count - the number of units in this sample.
sum - the summation of all the time values in this sample.

Method Detail

getKey

public final java.lang.String getKey()
Returns the key for this group of statistics.

getMin

public final long getMin()
Returns the minimum time value recorded for this sample.

getMax

public final long getMax()
Returns the maximum time value recorded for this sample.

getCount

public final int getCount()
Returns the number of units recorded for this sample.

getAvg

public final double getAvg()
Returns the average time value for this sample.

toString

public final java.lang.String toString()
Returns a string representation of this group of statistics. The string representation consists of:
 minimum '<' key '~' average '<' maximum 'based on' count 'stats'
 

Oracle BPEL Process Manager
Client API Reference
10g Release 2 (10.1.2)
B25709-01


Copyright © 2005, Oracle. All rights reserved.