org.globus.mds.usefulrp.types
Class Accumulator

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

public class Accumulator
extends Object
implements 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

Constructor Summary
Accumulator()
           
Accumulator(Calendar startTime, Calendar lastChange, long total, ExponentialRate[] expRate)
           
 
Method Summary
 boolean equals(Object obj)
           
static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Deserializer
 ExponentialRate[] getExpRate()
          Gets the expRate value for this Accumulator.
 ExponentialRate getExpRate(int i)
           
 Calendar getLastChange()
          Gets the lastChange value for this Accumulator.
static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Serializer
 Calendar getStartTime()
          Gets the startTime value for this Accumulator.
 long getTotal()
          Gets the total value for this Accumulator.
static 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(Calendar lastChange)
          Sets the lastChange value for this Accumulator.
 void setStartTime(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
 

Constructor Detail

Accumulator

public Accumulator()

Accumulator

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

getStartTime

public 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(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 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(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(Object obj)

hashCode

public int hashCode()

getTypeDesc

public static TypeDesc getTypeDesc()
Return type metadata object


getSerializer

public static Serializer getSerializer(String mechType,
                                       Class _javaType,
                                       QName _xmlType)
Get Custom Serializer


getDeserializer

public static Deserializer getDeserializer(String mechType,
                                           Class _javaType,
                                           QName _xmlType)
Get Custom Deserializer



Copyright © 1999-2006 University of Chicago. All rights reserved.