package org.cagrid.index.metrics.types;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.w3._2001.xmlschema.Adapter1;
/**
*
* Accumulator-style measurement (for example, event count or byte count)
* that it is useful to know both total and rate information for.
*
*
* <p>Java class for accumulator complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="accumulator">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="startTime" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
* <element name="lastChange" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
* <element name="total" type="{http://www.w3.org/2001/XMLSchema}long"/>
* <element name="expRate" type="{http://mds.globus.org/metrics/2004/09}exponentialRate" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "accumulator", propOrder = {
"startTime",
"lastChange",
"total",
"expRate"
})
public class Accumulator
implements Serializable
{
@XmlElement(required = true, type = String.class)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "dateTime")
protected Calendar startTime;
@XmlElement(required = true, type = String.class)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "dateTime")
protected Calendar lastChange;
protected long total;
protected List<ExponentialRate> expRate;
/**
* Gets the value of the startTime property.
*
* @return
* possible object is
* {@link String }
*
*/
public Calendar getStartTime() {
return startTime;
}
/**
* Sets the value of the startTime property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStartTime(Calendar value) {
this.startTime = value;
}
/**
* Gets the value of the lastChange property.
*
* @return
* possible object is
* {@link String }
*
*/
public Calendar getLastChange() {
return lastChange;
}
/**
* Sets the value of the lastChange property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLastChange(Calendar value) {
this.lastChange = value;
}
/**
* Gets the value of the total property.
*
*/
public long getTotal() {
return total;
}
/**
* Sets the value of the total property.
*
*/
public void setTotal(long value) {
this.total = value;
}
/**
* Gets the value of the expRate property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the expRate property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getExpRate().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link ExponentialRate }
*
*
*/
public List<ExponentialRate> getExpRate() {
if (expRate == null) {
expRate = new ArrayList<ExponentialRate>();
}
return this.expRate;
}
}