RrdUpdaterpublic class Robin extends java.lang.Object implements RrdUpdater
Robin object does not hold values in memory - such object could be quite large. Instead of it, Robin reads them from the backend I/O only when necessary.
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
(package private) void |
bulkStore(double newValue,
int bulkCount) |
|
void |
copyStateTo(RrdUpdater other) |
Copies object's internal state to another Robin object.
|
(package private) java.lang.String |
dump() |
|
void |
filterValues(double minValue,
double maxValue) |
Filters values stored in this archive based on the given boundary.
|
Archive |
getParent() |
Returns the Archive object to which this Robin object belongs.
|
RrdAllocator |
getRrdAllocator() |
Required to implement RrdUpdater interface.
|
RrdBackend |
getRrdBackend() |
Returns the underlying storage (backend) object which actually performs all
I/O operations.
|
int |
getSize() |
Returns the size of the underlying array of archived values.
|
double |
getValue(int index) |
Returns the i-th value from the Robin archive.
|
double[] |
getValues() |
Fetches all archived values.
|
(package private) double[] |
getValues(int index,
int count) |
|
void |
setValue(int index,
double value) |
Sets the i-th value in the Robin archive.
|
void |
setValues(double newValue) |
(Re)sets all values in this archive to the same value.
|
void |
setValues(double[] newValues) |
Updates archived values in bulk.
|
(package private) void |
store(double newValue) |
|
(package private) void |
update(double[] newValues) |
Robin(Archive parentArc, int rows, boolean shouldInitialize) throws java.io.IOException
java.io.IOExceptionpublic double[] getValues()
throws java.io.IOException
java.io.IOException - Thrown in case of I/O specific error.void store(double newValue)
throws java.io.IOException
java.io.IOExceptionvoid bulkStore(double newValue,
int bulkCount)
throws java.io.IOException
java.io.IOExceptionvoid update(double[] newValues)
throws java.io.IOException
java.io.IOExceptionpublic void setValues(double[] newValues)
throws java.io.IOException,
RrdException
newValues - Array of double values to be stored in the archivejava.io.IOException - Thrown in case of I/O errorRrdException - Thrown if the length of the input array is different from the length of
this archivepublic void setValues(double newValue)
throws java.io.IOException
newValue - New valuejava.io.IOException - Thrown in case of I/O errorjava.lang.String dump()
throws java.io.IOException
java.io.IOExceptionpublic double getValue(int index)
throws java.io.IOException
index - Value indexjava.io.IOException - Thrown in case of I/O specific error.public void setValue(int index,
double value)
throws java.io.IOException
index - index in the archive (the oldest value has zero index)value - value to be storedjava.io.IOException - Thrown in case of I/O specific error.double[] getValues(int index,
int count)
throws java.io.IOException
java.io.IOExceptionpublic Archive getParent()
public int getSize()
public void copyStateTo(RrdUpdater other) throws java.io.IOException, RrdException
copyStateTo インタフェース内 RrdUpdaterother - New Robin object to copy state tojava.io.IOException - Thrown in case of I/O errorRrdException - Thrown if supplied argument is not a Robin objectpublic void filterValues(double minValue,
double maxValue)
throws java.io.IOException
[minValue, maxValue] interval (inclusive)
will be silently replaced with NaN.minValue - lower boundarymaxValue - upper boundaryjava.io.IOException - Thrown in case of I/O errorpublic RrdBackend getRrdBackend()
getRrdBackend インタフェース内 RrdUpdaterpublic RrdAllocator getRrdAllocator()
getRrdAllocator インタフェース内 RrdUpdater