public class Archive extends Object
| Modifier and Type | Field | Description |
|---|---|---|
(package private) ArrayList<CDPStatusBlock> |
cdpStatusBlocks |
|
(package private) int |
currentRow |
|
(package private) long |
dataOffset |
|
(package private) RRDatabase |
db |
|
(package private) long |
offset |
|
(package private) int |
pdpCount |
|
(package private) int |
rowCount |
|
(package private) long |
size |
|
(package private) ConsolidationFunctionType |
type |
|
(package private) double |
xff |
| Constructor | Description |
|---|---|
Archive(RRDatabase db) |
| Modifier and Type | Method | Description |
|---|---|---|
CDPStatusBlock |
getCDPStatusBlock(int index) |
Returns the
CDPStatusBlock at the specified position in this archive. |
Iterator<CDPStatusBlock> |
getCDPStatusBlocks() |
Returns an iterator over the CDP status blocks in this archive in proper sequence.
|
int |
getPdpCount() |
Returns the number of primary data points required for a consolidated
data point in this archive.
|
int |
getRowCount() |
Returns the number of entries in this archive.
|
ConsolidationFunctionType |
getType() |
Returns the type of function used to calculate the consolidated data point.
|
double[][] |
getValues() |
|
double |
getXff() |
Returns the X-Files Factor for this archive.
|
(package private) void |
loadCDPStatusBlocks(RRDFile file,
int numBlocks) |
|
(package private) void |
loadCurrentRow(RRDFile file) |
|
(package private) DataChunk |
loadData(DataChunk chunk) |
|
(package private) void |
loadData(DataChunk chunk,
long startTime,
long endTime) |
|
(package private) void |
loadData(RRDFile file,
int dsCount) |
|
(package private) void |
printInfo(PrintStream s,
NumberFormat numberFormat,
int index) |
|
String |
toString() |
Returns a summary the contents of this archive.
|
(package private) void |
toXml(PrintStream s) |
RRDatabase db
long offset
long dataOffset
long size
ConsolidationFunctionType type
int rowCount
int pdpCount
double xff
ArrayList<CDPStatusBlock> cdpStatusBlocks
int currentRow
Archive(RRDatabase db) throws IOException, RrdException
IOExceptionRrdExceptionpublic ConsolidationFunctionType getType()
void loadCDPStatusBlocks(RRDFile file, int numBlocks) throws IOException, RrdException
IOExceptionRrdExceptionpublic CDPStatusBlock getCDPStatusBlock(int index)
CDPStatusBlock at the specified position in this archive.index - index of CDPStatusBlock to return.CDPStatusBlock at the specified position in this archive.public Iterator<CDPStatusBlock> getCDPStatusBlocks()
CDPStatusBlockvoid loadCurrentRow(RRDFile file) throws IOException, RrdException
IOExceptionRrdExceptionvoid loadData(RRDFile file, int dsCount) throws IOException
IOExceptionDataChunk loadData(DataChunk chunk) throws IOException, RrdException
IOExceptionRrdExceptionvoid loadData(DataChunk chunk, long startTime, long endTime) throws IOException, RrdException
IOExceptionRrdExceptionvoid printInfo(PrintStream s, NumberFormat numberFormat, int index)
void toXml(PrintStream s) throws RrdException
RrdExceptionpublic double[][] getValues()
throws IOException,
RrdException
IOExceptionRrdExceptionpublic int getPdpCount()
public int getRowCount()
public double getXff()