Modifier and Type | Method and Description |
---|---|
RrdDb |
build()
Builds a
RrdDb instance. |
void |
doimport()
Import an external rrd data, import definition must have been done using
setExternalPath(String)
or setImporter(DataImporter) |
RrdDb.Builder |
readOnly() |
RrdDb.Builder |
setBackendFactory(RrdBackendFactory factory) |
RrdDb.Builder |
setExternalPath(String externalPath) |
RrdDb.Builder |
setImporter(DataImporter importer) |
RrdDb.Builder |
setPath(String path) |
RrdDb.Builder |
setPath(URI uri) |
RrdDb.Builder |
setPool(RrdDbPool pool)
Set the pool that will be used if
usePool is true. |
RrdDb.Builder |
setReadOnly(boolean readOnly) |
RrdDb.Builder |
setRrdDef(RrdDef rrdDef) |
RrdDb.Builder |
setRrdToolImporter(String externalPath) |
RrdDb.Builder |
setUsePool(boolean usePool) |
RrdDb.Builder |
usePool()
Activate the pool usage
|
public RrdDb build() throws IOException
RrdDb
instance.IOException
- in case of I/O error.IllegalArgumentException
- if the builder settings were incompletepublic void doimport() throws IOException
setExternalPath(String)
or setImporter(DataImporter)
IOException
- in case of I/O error.IllegalArgumentException
- if the builder settings were incompletepublic RrdDb.Builder setPath(String path)
public RrdDb.Builder setPath(URI uri)
public RrdDb.Builder setBackendFactory(RrdBackendFactory factory)
public RrdDb.Builder setReadOnly(boolean readOnly)
public RrdDb.Builder readOnly()
public RrdDb.Builder setUsePool(boolean usePool)
public RrdDb.Builder usePool()
public RrdDb.Builder setPool(RrdDbPool pool)
usePool
is true. If not defined,
the singleton instance will be used.pool
- public RrdDb.Builder setExternalPath(String externalPath)
public RrdDb.Builder setImporter(DataImporter importer)
public RrdDb.Builder setRrdToolImporter(String externalPath) throws IOException
IOException
public RrdDb.Builder setRrdDef(RrdDef rrdDef)