public class SolrRrdBackend extends org.rrd4j.core.RrdByteArrayBackend implements Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
SolrRrdBackend.SyncData |
| Constructor and Description |
|---|
SolrRrdBackend(SolrRrdBackend other)
Open an unregistered (throwaway) read-only clone of another backend.
|
SolrRrdBackend(String path,
boolean readOnly,
SolrRrdBackendFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getLastModifiedTime() |
SolrRrdBackend.SyncData |
getSyncDataAndMarkClean() |
protected boolean |
isDirty() |
boolean |
isReadOnly() |
protected void |
setBuffer(byte[] buffer) |
protected void |
setLength(long length) |
protected void |
write(long offset,
byte[] bytes) |
protected void |
writeDouble(long offset,
double value) |
protected void |
writeDouble(long offset,
double[] values) |
protected void |
writeDouble(long offset,
double value,
int count) |
protected void |
writeInt(long offset,
int value) |
protected void |
writeLong(long offset,
long value) |
protected void |
writeShort(long offset,
short value) |
protected void |
writeString(long offset,
String value,
int length) |
getCharBuffer, readDouble, readDouble, readInt, readLong, readShort, rrdClose, setByteBufferpublic SolrRrdBackend(String path, boolean readOnly, SolrRrdBackendFactory factory)
public SolrRrdBackend(SolrRrdBackend other)
other - other backendpublic boolean isReadOnly()
public long getLastModifiedTime()
protected void write(long offset,
byte[] bytes)
throws IOException
write in class org.rrd4j.core.ByteBufferBackendIOExceptionprotected void writeShort(long offset,
short value)
throws IOException
writeShort in class org.rrd4j.core.ByteBufferBackendIOExceptionprotected void writeInt(long offset,
int value)
throws IOException
writeInt in class org.rrd4j.core.ByteBufferBackendIOExceptionprotected void writeLong(long offset,
long value)
throws IOException
writeLong in class org.rrd4j.core.ByteBufferBackendIOExceptionprotected void writeDouble(long offset,
double value)
throws IOException
writeDouble in class org.rrd4j.core.ByteBufferBackendIOExceptionprotected void writeDouble(long offset,
double value,
int count)
throws IOException
writeDouble in class org.rrd4j.core.ByteBufferBackendIOExceptionprotected void writeDouble(long offset,
double[] values)
throws IOException
writeDouble in class org.rrd4j.core.ByteBufferBackendIOExceptionprotected void writeString(long offset,
String value,
int length)
throws IOException
writeString in class org.rrd4j.core.ByteBufferBackendIOExceptionprotected boolean isDirty()
isDirty in class org.rrd4j.core.ByteBufferBackendprotected void setBuffer(byte[] buffer)
setBuffer in class org.rrd4j.core.RrdByteArrayBackendprotected void setLength(long length)
throws IOException
setLength in class org.rrd4j.core.RrdByteArrayBackendIOExceptionpublic SolrRrdBackend.SyncData getSyncDataAndMarkClean()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.rrd4j.core.ByteBufferBackendIOExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.