1
package com.eucalyptus.reporting.modules.instance;
4
* UsageSnapshot of the resource usage of some instance at some point in time.
5
* Contains <i>cumulative</i> usage data so it's populated with
6
* all resource usage which has occurred up until this snapshot was
13
private final Long timestampMs;
14
private final InstanceUsageData cumulativeUsageData;
17
* For hibernate usage only; don't extend this class
19
protected UsageSnapshot()
21
this.timestampMs = null;
22
this.cumulativeUsageData = null;
25
public UsageSnapshot(long timestampMs, InstanceUsageData cumulativeUsageData)
27
this.timestampMs = new Long(timestampMs);
28
this.cumulativeUsageData = cumulativeUsageData;
31
public long getTimestampMs()
33
assert this.timestampMs != null;
34
return this.timestampMs.longValue();
37
public InstanceUsageData getCumulativeUsageData()
39
return this.cumulativeUsageData;