org.globus.mds.usefulrp.types
Class Accumulator

java.lang.Object
  extended byorg.globus.mds.usefulrp.types.Accumulator
All Implemented Interfaces:
java.io.Serializable

public class Accumulator
extends java.lang.Object
implements java.io.Serializable

Accumulator-style measurement (for example, event count or byte count) that it is useful to know both total and rate information for.

See Also:
Serialized Form

Field Summary
private  java.lang.Object __equalsCalc
           
private  boolean __hashCodeCalc
           
private  ExponentialRate[] expRate
          Exponentially decaying averages of the rate.
private  java.util.Calendar lastChange
          The time at which a value was last accumulated.
private  java.util.Calendar startTime
          The time at which measurements were started (for example, when the hosting container started)
private  long total
          The total of this accumulator.
private static org.apache.axis.description.TypeDesc typeDesc
           
 
Constructor Summary
Accumulator()
           
Accumulator(ExponentialRate[] expRate, java.util.Calendar lastChange, java.util.Calendar startTime, long total)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
          Get Custom Deserializer
 ExponentialRate[] getExpRate()
          Gets the expRate value for this Accumulator.
 ExponentialRate getExpRate(int i)
           
 java.util.Calendar getLastChange()
          Gets the lastChange value for this Accumulator.
static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
          Get Custom Serializer
 java.util.Calendar getStartTime()
          Gets the startTime value for this Accumulator.
 long getTotal()
          Gets the total value for this Accumulator.
static org.apache.axis.description.TypeDesc getTypeDesc()
          Return type metadata object
 int hashCode()
           
 void setExpRate(ExponentialRate[] expRate)
          Sets the expRate value for this Accumulator.
 void setExpRate(int i, ExponentialRate _value)
           
 void setLastChange(java.util.Calendar lastChange)
          Sets the lastChange value for this Accumulator.
 void setStartTime(java.util.Calendar startTime)
          Sets the startTime value for this Accumulator.
 void setTotal(long total)
          Sets the total value for this Accumulator.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startTime

private java.util.Calendar startTime
The time at which measurements were started (for example, when the hosting container started)


lastChange

private java.util.Calendar lastChange
The time at which a value was last accumulated. If a zero-value is accumulated, this does not count as a change for the purposes of this field, even though in implementation, it may result in a recalculation of the exponential weights.


total

private long total
The total of this accumulator.


expRate

private ExponentialRate[] expRate
Exponentially decaying averages of the rate.


__equalsCalc

private java.lang.Object __equalsCalc

__hashCodeCalc

private boolean __hashCodeCalc

typeDesc

private static org.apache.axis.description.TypeDesc typeDesc
Constructor Detail

Accumulator

public Accumulator()

Accumulator

public Accumulator(ExponentialRate[] expRate,
                   java.util.Calendar lastChange,
                   java.util.Calendar startTime,
                   long total)
Method Detail

getStartTime

public java.util.Calendar getStartTime()
Gets the startTime value for this Accumulator.

Returns:
startTime The time at which measurements were started (for example, when the hosting container started)

setStartTime

public void setStartTime(java.util.Calendar startTime)
Sets the startTime value for this Accumulator.

Parameters:
startTime - The time at which measurements were started (for example, when the hosting container started)

getLastChange

public java.util.Calendar getLastChange()
Gets the lastChange value for this Accumulator.

Returns:
lastChange The time at which a value was last accumulated. If a zero-value is accumulated, this does not count as a change for the purposes of this field, even though in implementation, it may result in a recalculation of the exponential weights.

setLastChange

public void setLastChange(java.util.Calendar lastChange)
Sets the lastChange value for this Accumulator.

Parameters:
lastChange - The time at which a value was last accumulated. If a zero-value is accumulated, this does not count as a change for the purposes of this field, even though in implementation, it may result in a recalculation of the exponential weights.

getTotal

public long getTotal()
Gets the total value for this Accumulator.

Returns:
total The total of this accumulator.

setTotal

public void setTotal(long total)
Sets the total value for this Accumulator.

Parameters:
total - The total of this accumulator.

getExpRate

public ExponentialRate[] getExpRate()
Gets the expRate value for this Accumulator.

Returns:
expRate Exponentially decaying averages of the rate.

setExpRate

public void setExpRate(ExponentialRate[] expRate)
Sets the expRate value for this Accumulator.

Parameters:
expRate - Exponentially decaying averages of the rate.

getExpRate

public ExponentialRate getExpRate(int i)

setExpRate

public void setExpRate(int i,
                       ExponentialRate _value)

equals

public boolean equals(java.lang.Object obj)

hashCode

public int hashCode()

getTypeDesc

public static org.apache.axis.description.TypeDesc getTypeDesc()
Return type metadata object


getSerializer

public static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType,
                                                                java.lang.Class _javaType,
                                                                javax.xml.namespace.QName _xmlType)
Get Custom Serializer


getDeserializer

public static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType,
                                                                    java.lang.Class _javaType,
                                                                    javax.xml.namespace.QName _xmlType)
Get Custom Deserializer