protected long[] getAllRawTimeStamps() { return archive.getTimeStamps().getRawTimeStamps(); } protected long getTimeBase() {
protected long getTimeBase() { return archive.getTimeStamps().getBase(); } /**
protected long[] getAllRawTimeStamps() { return archive.getTimeStamps().getRawTimeStamps(); } protected long getTimeBase() {
protected void makeInactive() { this.active = false; lastTSidx = archive.getTimeStamps().getSize() - 1; close(); // this frees up unused memory now that no more samples } /**
/** * Returns an array of doubles containing the timestamps at which * this instances samples where taken. Each of these timestamps * is the difference, measured in milliseconds, between the sample * time and midnight, January 1, 1970 UTC. * Although these values are double they can safely be converted * to <code>long</code> with no loss of information. */ public double[] getSnapshotTimesMillis() { return archive.getTimeStamps().getTimeValuesSinceIdx(firstTSidx); } /**
/** * Returns the number of times this resource instance has been sampled. */ public int getSampleCount() { if (active) { return archive.getTimeStamps().getSize() - firstTSidx; } else { return (lastTSidx+1) - firstTSidx; } }
/** * Returns the difference, measured in milliseconds, between the time * of the instance's first sample and midnight, January 1, 1970 UTC. */ public long getFirstTimeMillis() { return archive.getTimeStamps().getMilliTimeStamp(firstTSidx); } /**
/** * Returns the number of times this resource instance has been sampled. */ public int getSampleCount() { if (active) { return archive.getTimeStamps().getSize() - firstTSidx; } else { return (lastTSidx+1) - firstTSidx; } }
/** * Returns the difference, measured in milliseconds, between the time * of the instance's first sample and midnight, January 1, 1970 UTC. */ public long getFirstTimeMillis() { return archive.getTimeStamps().getMilliTimeStamp(firstTSidx); } /**
protected void addTimeStamp() { if (this.loaded) { if (firstTSidx == -1) { firstTSidx = archive.getTimeStamps().getSize() - 1; } for (int i=0; i < values.length; i++) { if (values[i] != null) { values[i].addSample(); } } } }
protected long getTimeBase() { return archive.getTimeStamps().getBase(); } /**
protected void addTimeStamp() { if (this.loaded) { if (firstTSidx == -1) { firstTSidx = archive.getTimeStamps().getSize() - 1; } for (int i=0; i < values.length; i++) { if (values[i] != null) { values[i].addSample(); } } } }
protected void makeInactive() { this.active = false; lastTSidx = archive.getTimeStamps().getSize() - 1; close(); // this frees up unused memory now that no more samples } /**
/** * Returns an array of doubles containing the timestamps at which * this instances samples where taken. Each of these timestamps * is the difference, measured in milliseconds, between the sample * time and midnight, January 1, 1970 UTC. * Although these values are double they can safely be converted * to <code>long</code> with no loss of information. */ public double[] getSnapshotTimesMillis() { return archive.getTimeStamps().getTimeValuesSinceIdx(firstTSidx); } /**