anon.infoservice
Class PerformanceEntry.PerformanceAttributeEntry

java.lang.Object
  extended by anon.infoservice.PerformanceEntry.PerformanceAttributeEntry
Enclosing class:
PerformanceEntry

public static class PerformanceEntry.PerformanceAttributeEntry
extends java.lang.Object

An entry that holds values of performance attributes.

Author:
Christian Banse

Field Summary
private  int m_attribute
          The performance attribute.
private  boolean m_bPassive
          True, if the object is created by the info service or the JAP client.
private  int m_iErrors
          The amount of errors occurred.
private  long m_iLastTimestamp
           
private  int m_iLastValue
          The last value added.
private  int m_iMinValue
          The min value.
private  int m_iResets
           
private  int m_iSuccess
           
private  int m_iUnknown
           
private  long m_lastUpdate
          The time of the last update.
private  int m_lAverageValue
          The average value.
private  int m_lBound
          The bound value.
private  int m_lMaxValue
          The max value.
private  double m_lStdDeviation
          The standard deviation.
private  java.util.Hashtable m_Values
          The values.
 
Constructor Summary
private PerformanceEntry.PerformanceAttributeEntry(int a_attribute, boolean a_bPassive)
           
 
Method Summary
private  void addValue(long a_lTimeStamp, int a_iValue, PerformanceEntry.PerformanceAttributeEntry a_previousEntry)
          Adds a value to the entry.
 int getAverageValue()
          Returns the average value.
 int getBound()
          Returns the bound value.
 long getDayTimestamp()
          Returns the day timestamp of the entry.
 int getErrors()
          Returns the amount of errors.
 int getMaxValue()
          Returns the max value.
 int getMinValue()
          Returns the min value.
 int getResets()
          Only useful for PACKETS attribute.
 double getStdDeviation()
          Returns the standard deviation.
 int getSuccess()
           
 int getUnknown()
          The amount of attempts that should have been made but were not.
 int getValueSize()
          Returns the amount of values and errors.
 void setErrors(int a_errors)
           
 void setResets(int a_resets)
           
 void setSuccess(int a_iSuccess)
           
 void setUnknown(int a_unknown)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_iLastValue

private int m_iLastValue
The last value added. This is only useful for PACKETS.


m_iLastTimestamp

private long m_iLastTimestamp

m_lMaxValue

private int m_lMaxValue
The max value.


m_iMinValue

private int m_iMinValue
The min value.


m_lAverageValue

private int m_lAverageValue
The average value.


m_lBound

private int m_lBound
The bound value.


m_lStdDeviation

private double m_lStdDeviation
The standard deviation.


m_lastUpdate

private long m_lastUpdate
The time of the last update.


m_Values

private java.util.Hashtable m_Values
The values.


m_iErrors

private int m_iErrors
The amount of errors occurred.


m_iResets

private int m_iResets

m_iUnknown

private int m_iUnknown

m_iSuccess

private int m_iSuccess

m_attribute

private int m_attribute
The performance attribute.


m_bPassive

private boolean m_bPassive
True, if the object is created by the info service or the JAP client. Determines whether the bound value is retrieved from the stored value or calculated on the fly.

Constructor Detail

PerformanceEntry.PerformanceAttributeEntry

private PerformanceEntry.PerformanceAttributeEntry(int a_attribute,
                                                   boolean a_bPassive)
Method Detail

addValue

private void addValue(long a_lTimeStamp,
                      int a_iValue,
                      PerformanceEntry.PerformanceAttributeEntry a_previousEntry)
Adds a value to the entry.

Parameters:
a_lTimeStamp - The timestamp.
a_iValue - The value.

getAverageValue

public int getAverageValue()
Returns the average value.

Returns:
The average value.

getMinValue

public int getMinValue()
Returns the min value.

Returns:
The min value.

getMaxValue

public int getMaxValue()
Returns the max value.

Returns:
The max value.

getBound

public int getBound()
Returns the bound value.

Returns:
The bound value.

getStdDeviation

public double getStdDeviation()
Returns the standard deviation.

Returns:
The standard deviation.

setErrors

public void setErrors(int a_errors)

getErrors

public int getErrors()
Returns the amount of errors.

Returns:
The amounts of errors.

setResets

public void setResets(int a_resets)

getResets

public int getResets()
Only useful for PACKETS attribute. Tells how often the service has been reset/restarted.

Returns:
how often the service has been reset/restarted

getUnknown

public int getUnknown()
The amount of attempts that should have been made but were not.

Returns:

setUnknown

public void setUnknown(int a_unknown)

setSuccess

public void setSuccess(int a_iSuccess)

getSuccess

public int getSuccess()

getValueSize

public int getValueSize()
Returns the amount of values and errors.

Returns:
The amount of values and errors.

getDayTimestamp

public long getDayTimestamp()
Returns the day timestamp of the entry.

Returns:
The day timestamp.