org.gcube.common.accounting.node.persistence
Class StatisticsData
java.lang.Object
org.gcube.common.accounting.node.persistence.StatisticsData
- All Implemented Interfaces:
- java.io.Serializable
public class StatisticsData
- extends java.lang.Object
- implements java.io.Serializable
- Author:
- Andrea Manzi(CERN)
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatisticsData
public StatisticsData(RIAccountingData.statisticsType type,
long interval)
- Parameters:
type
-
getType
public RIAccountingData.statisticsType getType()
setType
public void setType(RIAccountingData.statisticsType type)
addStatistics
public void addStatistics(java.lang.Double value)
throws java.lang.Exception
- Throws:
java.lang.Exception
getStatistics
public java.lang.Double getStatistics(java.lang.Long index)
throws java.lang.Exception
- Throws:
java.lang.Exception
getInterval
public long getInterval()
setInterval
public void setInterval(long interval)
getIntervalMapping
public java.util.HashMap<java.lang.Long,java.lang.Long> getIntervalMapping()
setIntervalMapping
public void setIntervalMapping(java.util.HashMap<java.lang.Long,java.lang.Long> intervalMapping)