Package org.rrd4j.core
Class RrdDb.Builder
- java.lang.Object
-
- org.rrd4j.core.RrdDb.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RrdDb
build()
Builds aRrdDb
instance.void
doimport()
Import an external rrd data, import definition must have been done usingsetExternalPath(String)
orsetImporter(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 ifusePool
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
-
-
-
Method Detail
-
build
public RrdDb build() throws IOException
Builds aRrdDb
instance.- Returns:
- a new build RrdDb
- Throws:
IOException
- in case of I/O error.IllegalArgumentException
- if the builder settings were incomplete
-
doimport
public void doimport() throws IOException
Import an external rrd data, import definition must have been done usingsetExternalPath(String)
orsetImporter(DataImporter)
- Throws:
IOException
- in case of I/O error.IllegalArgumentException
- if the builder settings were incomplete
-
setPath
public RrdDb.Builder setPath(String path)
-
setPath
public RrdDb.Builder setPath(URI uri)
-
setBackendFactory
public RrdDb.Builder setBackendFactory(RrdBackendFactory factory)
-
setReadOnly
public RrdDb.Builder setReadOnly(boolean readOnly)
-
readOnly
public RrdDb.Builder readOnly()
-
setUsePool
public RrdDb.Builder setUsePool(boolean usePool)
-
usePool
public RrdDb.Builder usePool()
Activate the pool usage- Returns:
-
setPool
public RrdDb.Builder setPool(RrdDbPool pool)
Set the pool that will be used ifusePool
is true. If not defined, the singleton instance will be used.- Parameters:
pool
-- Returns:
-
setExternalPath
public RrdDb.Builder setExternalPath(String externalPath)
-
setImporter
public RrdDb.Builder setImporter(DataImporter importer)
-
setRrdToolImporter
public RrdDb.Builder setRrdToolImporter(String externalPath) throws IOException
- Throws:
IOException
-
setRrdDef
public RrdDb.Builder setRrdDef(RrdDef rrdDef)
-
-