|
Authentication API v8.1 SP2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rsa.ace.techservice.util.AceStats
public class AceStats
Performance statistics gathering class.
This class can be used to gather throughput statistics and to calculate averages. It maintains an array of the most recently calculated statistic results that can be used to obtain averages.
| Constructor Summary | |
|---|---|
AceStats()
Constructs a new instance of AceStats. |
|
| Method Summary | |
|---|---|
void |
appendAverage(java.io.PrintStream ps,
java.lang.String title,
java.lang.String numerator)
Appends the average rate output string to the print stream provided. |
void |
appendRate(java.io.PrintStream ps,
java.lang.String title,
int units,
java.lang.String numerator)
Appends the rate output string to the print stream provided. |
java.lang.String |
averageString(java.lang.String title,
java.lang.String numerator)
Creates a string for the average rate data. |
double |
avgRatePerSecond()
Calculated the average rate for recent calls to this class. |
void |
clearAverageData()
Clears the average rate data. |
void |
end()
End a timer for statistics. |
void |
printAverage(java.lang.String title,
java.lang.String numerator)
Prints the average rate output string to standard output (System.out). |
void |
printRate(java.lang.String title,
int units,
java.lang.String numerator)
Prints the rate output string to standard output. |
double |
ratePerSecond(int units)
Calculates the rate-per-second for the number of units provided. |
java.lang.String |
rateString(java.lang.String title,
int units,
java.lang.String numerator)
Creates a String in the format: |
int |
sampleSize()
Provides the number of samples. |
void |
start()
Start a timer for statistics. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AceStats()
| Method Detail |
|---|
public void start()
public void end()
public double ratePerSecond(int units)
units - The number of units processed for the time captured.
public java.lang.String rateString(java.lang.String title,
int units,
java.lang.String numerator)
Title - Used to prefix the string message.units - The number of units processed for the time captured.numerator - The numerator for the string.
public void appendRate(java.io.PrintStream ps,
java.lang.String title,
int units,
java.lang.String numerator)
ps - The PrintStream to which the string will be printed.Title - Used to prefix the string message.units - The number of units processed for the time captured.numerator - The numerator for the string.
public void printRate(java.lang.String title,
int units,
java.lang.String numerator)
Title - Used to prefix the string message.units - The number of units processed for the time captured.numerator - The numerator for the string.public double avgRatePerSecond()
public void clearAverageData()
public java.lang.String averageString(java.lang.String title,
java.lang.String numerator)
Title - Used to prefix the string message.numerator - The numerator for the string.
title average: 45.6 numerator/second with 4 samples.
public void appendAverage(java.io.PrintStream ps,
java.lang.String title,
java.lang.String numerator)
ps - The PrintStream to which the string will be printed.Title - Used to prefix the string message.numerator - The numerator for the string.
public void printAverage(java.lang.String title,
java.lang.String numerator)
Title - Used to prefix the string message.numerator - The numerator for the string.public int sampleSize()
|
Authentication API v8.1 SP2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||