|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object anon.infoservice.PerformanceEntry.PerformanceAttributeFloatingTimeEntry
private static class PerformanceEntry.PerformanceAttributeFloatingTimeEntry
The floating time entry. This structure holds all attribute entries that are not older than a given time (usually 1 hour).
Field Summary | |
---|---|
static long |
DEFAULT_TIMEFRAME
The time frame of this floating time entry. |
int |
m_attribute
The performance attribute. |
private boolean |
m_bInfoService
True, if the object is created by the info service or the JAP client. |
private int |
m_iErrors
|
private long |
m_iLastTimestamp
|
private int |
m_iLastValue
The last value that has been added. |
private int |
m_iResets
|
private int |
m_iUnknown
|
long |
m_lastUpdate
The time of the last update. |
private int |
m_lBestBoundValue
The best bound value. |
private PerformanceEntry.Bound |
m_lBoundValue
The bound value. |
private java.util.Hashtable |
m_Values
The values. |
static java.lang.String |
XML_ATTR_BEST
The best bound value XML attribute name. |
static java.lang.String |
XML_ATTR_BOUND
The bound value XML attribute name. |
static java.lang.String |
XML_ATTR_NOT_RECOVERED_BOUND
|
static java.lang.String |
XML_ELEMENT_VALUE
The XML element name. |
static java.lang.String |
XML_ELEMENT_VALUES
The containers XML element name. |
Fields inherited from interface anon.util.IXMLEncodable |
---|
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION |
Constructor Summary | |
---|---|
PerformanceEntry.PerformanceAttributeFloatingTimeEntry(int a_attribute,
boolean a_bInfoService)
Constructs a new PerformanceAttributeFloatingTimeEntry . |
|
PerformanceEntry.PerformanceAttributeFloatingTimeEntry(int a_attribute,
org.w3c.dom.Node a_node)
Constructs a new PerformanceAttributeFloatingTimeEntry from XML data. |
Method Summary | |
---|---|
void |
addValue(long a_lTimeStamp,
int a_lValue)
Adds a value to the floating time entry. |
private int |
calculateBound(java.util.Hashtable a_hashValues,
java.util.Vector a_timestamps)
Returns the bound value. |
int |
getAverage()
Calculates and return the average value. |
int |
getBestBound()
Returns the best bound value. |
PerformanceEntry.Bound |
getBound()
Returns the bound value. |
private int |
getBoundFromValue(int value)
|
double |
getStdDeviation()
Calculates and returns the standard deviation. |
void |
setBestBound(int a_lValue)
Sets the best bound value. |
void |
setBound(PerformanceEntry.Bound a_bound)
Sets the bound value. |
org.w3c.dom.Element |
toXmlElement(org.w3c.dom.Document a_doc)
Return an element that can be appended to the document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long DEFAULT_TIMEFRAME
public static final java.lang.String XML_ELEMENT_VALUES
public static final java.lang.String XML_ELEMENT_VALUE
public static final java.lang.String XML_ATTR_BEST
public static final java.lang.String XML_ATTR_BOUND
public static final java.lang.String XML_ATTR_NOT_RECOVERED_BOUND
private int m_iLastValue
private long m_iLastTimestamp
public int m_attribute
public long m_lastUpdate
private java.util.Hashtable m_Values
private PerformanceEntry.Bound m_lBoundValue
#getBound(boolean)
private int m_lBestBoundValue
#getBound(boolean)
private int m_iResets
private int m_iErrors
private int m_iUnknown
private boolean m_bInfoService
Constructor Detail |
---|
public PerformanceEntry.PerformanceAttributeFloatingTimeEntry(int a_attribute, boolean a_bInfoService)
PerformanceAttributeFloatingTimeEntry
.
a_attribute
- The performance attribute.a_bInfoService
- Specifies if the caller of this method is an InfoService
or the JAP client.public PerformanceEntry.PerformanceAttributeFloatingTimeEntry(int a_attribute, org.w3c.dom.Node a_node)
PerformanceAttributeFloatingTimeEntry
from XML data.
a_attribute
- The performance attribute.a_node
- The XML node.Method Detail |
---|
public void addValue(long a_lTimeStamp, int a_lValue)
a_lTimeStamp
- The timestamp of the value.a_lValue
- The value.public void setBound(PerformanceEntry.Bound a_bound)
a_lValue
- The value.public void setBestBound(int a_lValue)
a_lValue
- The value.public PerformanceEntry.Bound getBound()
private int calculateBound(java.util.Hashtable a_hashValues, java.util.Vector a_timestamps)
a_bLow
- Low or high bound.
public int getBestBound()
private int getBoundFromValue(int value)
public int getAverage()
public double getStdDeviation()
public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
IXMLEncodable
toXmlElement
in interface IXMLEncodable
a_doc
- a document
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |