Skip navigation links


oracle.idm.connection.info
Class Record

java.lang.Object
  extended by oracle.idm.connection.info.Record

All Implemented Interfaces:
java.lang.Cloneable, XmlPrintable

public class Record
extends java.lang.Object
implements java.lang.Cloneable, XmlPrintable

This abstract class records metrics for various occurrences.


Field Summary
static long UNKNOWN
          This field specifies unknown long value setting, such as unknown total.

 

Method Summary
 java.lang.Object clone()
          Clones record.
 long getAverage()
          Returns the recorded average duration of occurrences thus far.
 int getCount()
          Returns the recorded count of occurrences thus far.
 long getGamut()
          Returns the recorded duration gamut of occurrences thus far.
 long getMaximum()
          Returns the recorded maximum duration of occurrences thus far.
 long getMinimum()
          Returns the recorded minimum duration of occurrences thus far.
 long getTotal()
          Returns the recorded total duration of occurrences thus far.
protected  void record(long duration)
          This method records an occurrence.
 void xprint(XmlPrintWriter out)
          Prints record properties to the XmlPrintWriter as an XML element.

 

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

 

Field Detail

UNKNOWN

public static final long UNKNOWN
This field specifies unknown long value setting, such as unknown total.
See Also:
Constant Field Values

Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clones record.
Overrides:
clone in class java.lang.Object
Returns:
cloned record
Throws:
java.lang.CloneNotSupportedException

getCount

public int getCount()
Returns the recorded count of occurrences thus far.
Returns:
int representing the occurance count

getTotal

public long getTotal()
Returns the recorded total duration of occurrences thus far.
Returns:
long representing the total duration

getAverage

public long getAverage()
Returns the recorded average duration of occurrences thus far.
Returns:
long representing the average duration

getMinimum

public long getMinimum()
Returns the recorded minimum duration of occurrences thus far.
Returns:
long representing the minimum duration

getMaximum

public long getMaximum()
Returns the recorded maximum duration of occurrences thus far.
Returns:
long representing the maximum duration

getGamut

public long getGamut()
Returns the recorded duration gamut of occurrences thus far.
Returns:
long representing the duration gamut

record

protected void record(long duration)
This method records an occurrence.

xprint

public void xprint(XmlPrintWriter out)
Prints record properties to the XmlPrintWriter as an XML element.
Specified by:
xprint in interface XmlPrintable
Parameters:
out - PrintWriter for printing record propeties.

Skip navigation links