org.gcube.common.accounting.node.persistence
Class StatisticsData

java.lang.Object
  extended by 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

Constructor Summary
StatisticsData(RIAccountingData.statisticsType type, long interval)
           
 
Method Summary
 void addStatistics(java.lang.Double value)
           
 long getInterval()
           
 java.util.HashMap<java.lang.Long,java.lang.Long> getIntervalMapping()
           
 java.lang.Double getStatistics(java.lang.Long index)
           
 RIAccountingData.statisticsType getType()
           
 void setInterval(long interval)
           
 void setIntervalMapping(java.util.HashMap<java.lang.Long,java.lang.Long> intervalMapping)
           
 void setType(RIAccountingData.statisticsType type)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticsData

public StatisticsData(RIAccountingData.statisticsType type,
                      long interval)
Parameters:
type -
Method Detail

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)