/** * Returns path to this RRD. * * @return Path to this RRD. */ public String getPath() { return backend.getPath(); }
/** * Returns the path to this RRD. * * @return Path to this RRD. */ public String getPath() { return backend.getPath(); }
/** * Dumps the content of fetch request using the syntax of RRDTool's fetch command. * * @return Fetch request dump. */ public String dump() { return "fetch \"" + parentDb.getRrdBackend().getPath() + "\" " + consolFun + " --start " + fetchStart + " --end " + fetchEnd + (resolution > 1 ? " --resolution " + resolution : ""); }
/** * Dumps the content of fetch request using the syntax of RRDTool's fetch command. * * @return Fetch request dump. */ public String dump() { return "fetch \"" + parentDb.getRrdBackend().getPath() + "\" " + consolFun + " --start " + fetchStart + " --end " + fetchEnd + (resolution > 1 ? " --resolution " + resolution : ""); }
RrdNode(RrdDb rrd) { // header node String path = rrd.getRrdBackend().getPath(); label = new File(path).getName(); }
/** * Dumps sample content using the syntax of RRDTool's update command. * * @return Sample dump. */ public String dump() { StringBuilder buffer = new StringBuilder("update \""); buffer.append(parentDb.getRrdBackend().getPath()).append("\" ").append(time); for (double value : values) { buffer.append(':'); buffer.append(Util.formatDouble(value, "U", false)); } return buffer.toString(); }
/** * Dumps sample content using the syntax of RRDTool's update command. * * @return Sample dump. */ public String dump() { StringBuilder buffer = new StringBuilder("update \""); buffer.append(parentDb.getRrdBackend().getPath()).append("\" ").append(time); for (double value : values) { buffer.append(':'); buffer.append(Util.formatDouble(value, "U", false)); } return buffer.toString(); }
long step = header.getStep(); int version = header.getVersion(); String path = backend.getPath(); RrdDef rrdDef = new RrdDef(path, startTime, step, version);
long step = header.getStep(); int version = header.getVersion(); String path = backend.getPath(); RrdDef rrdDef = new RrdDef(path, startTime, step, version);