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 RrdDbbuild()Builds aRrdDbinstance.voiddoimport()Import an external rrd data, import definition must have been done usingsetExternalPath(String)orsetImporter(DataImporter)RrdDb.BuilderreadOnly()RrdDb.BuildersetBackendFactory(RrdBackendFactory factory)RrdDb.BuildersetExternalPath(String externalPath)RrdDb.BuildersetImporter(DataImporter importer)RrdDb.BuildersetPath(String path)RrdDb.BuildersetPath(URI uri)RrdDb.BuildersetPool(RrdDbPool pool)Set the pool that will be used ifusePoolis true.RrdDb.BuildersetReadOnly(boolean readOnly)RrdDb.BuildersetRrdDef(RrdDef rrdDef)RrdDb.BuildersetRrdToolImporter(String externalPath)RrdDb.BuildersetUsePool(boolean usePool)RrdDb.BuilderusePool()Activate the pool usage
-
-
-
Method Detail
-
build
public RrdDb build() throws IOException
Builds aRrdDbinstance.- 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 IOExceptionImport 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 ifusePoolis 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)
-
-