protected RrdDef getDatabaseTemplateSpec() throws Exception {
		RrdDefTemplate t = new RrdDefTemplate(templateFile);
		t.setVariable("database", this.outputFile.getCanonicalPath());
		RrdDef def = t.getRrdDef();
		if (!this.outputFile.exists()) {
			FileUtils.forceMkdir(this.outputFile.getParentFile());
			rrdToolCreateDatabase(def);
		}
		return def;
	}
protected RrdDef getDatabaseTemplateSpec ( ) throws Exception { RrdDefTemplate t = new RrdDefTemplate ( templateFile ) ; t . setVariable ( "database" , this . outputFile . getCanonicalPath ( ) ) ; RrdDef def = t . getRrdDef ( ) ; if ( ! this . outputFile . exists ( ) ) { FileUtils . forceMkdir ( this . outputFile . getParentFile ( ) ) ; rrdToolCreateDatabase ( def ) ; } return def ; }
If the database file doesn't exist, it'll get created, otherwise, it'll
be returned in r/w mode.