public class RrdConvertUtils extends Object
Modifier and Type | Method and Description |
---|---|
protected static RRDv3 |
convert(RRDv1 jrb)
Converts a JRobin object into an RRDtool object.
|
protected static RRDv1 |
convert(RRDv3 rrd)
Converts a RRDtool object into a JRobin object.
|
static void |
convertFromJrobinToRrd(File sourceJrobinFile,
File targetRrdFile)
Convert from JRobin to RRDtool.
|
static void |
convertFromRrdToJrobin(File sourceRrdFile,
File targetJrobinFile)
Convert from RRDtool to JRobin.
|
static RRDv1 |
dumpJrb(File sourceFile)
Dumps a JRB.
|
static RRDv3 |
dumpRrd(File sourceFile)
Dumps a RRD.
|
static void |
restoreJrb(RRDv1 rrd,
File targetFile)
Restore a JRB.
|
static void |
restoreRrd(RRDv3 rrd,
File targetFile)
Restores a RRD.
|
public static RRDv1 dumpJrb(File sourceFile) throws IOException, org.jrobin.core.RrdException
sourceFile
- the source fileIOException
- Signals that an I/O exception has occurred.org.jrobin.core.RrdException
- the RRD exceptionpublic static RRDv3 dumpRrd(File sourceFile) throws IOException, org.jrobin.core.RrdException
sourceFile
- the source fileIOException
- Signals that an I/O exception has occurred.org.jrobin.core.RrdException
- the RRD exceptionpublic static void restoreJrb(RRDv1 rrd, File targetFile) throws IOException, org.jrobin.core.RrdException
rrd
- the RRD object (old version)targetFile
- the target fileIOException
- Signals that an I/O exception has occurred.org.jrobin.core.RrdException
- the RRD exceptionpublic static void restoreRrd(RRDv3 rrd, File targetFile) throws IOException, org.jrobin.core.RrdException
rrd
- the RRD objecttargetFile
- the target fileIOException
- Signals that an I/O exception has occurred.org.jrobin.core.RrdException
- the RRD exceptionpublic static void convertFromRrdToJrobin(File sourceRrdFile, File targetJrobinFile) throws IOException, org.jrobin.core.RrdException
sourceRrdFile
- the source RRDtool filetargetJrobinFile
- the target JRobin fileIOException
- Signals that an I/O exception has occurred.org.jrobin.core.RrdException
- the RRD exceptionpublic static void convertFromJrobinToRrd(File sourceJrobinFile, File targetRrdFile) throws IOException, org.jrobin.core.RrdException
sourceJrobinFile
- the source JRobin filetargetRrdFile
- the target RRDtool fileIOException
- Signals that an I/O exception has occurred.org.jrobin.core.RrdException
- the RRD exceptionprotected static RRDv3 convert(RRDv1 jrb) throws IllegalArgumentException
jrb
- the source JRobin object representationIllegalArgumentException
- the illegal argument exception (when the conversion is not possible)protected static RRDv1 convert(RRDv3 rrd) throws IllegalArgumentException
rrd
- the RRDtool object representationIllegalArgumentException
- the illegal argument exception (when the conversion is not possible)Copyright © 2021. All rights reserved.