/** * 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); foreach (double value in values) { buffer.Append(":"); buffer.Append(Util.formatDouble(value, "U", false)); } return(buffer.ToString()); }
/** * Returns the underlying storage (backend) object which actually performs all * I/O operations. * * @return I/O backend object */ public RrdBackend getRrdBackend() { return(parentDb.getRrdBackend()); }
/** * 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 + "\n --start " + fetchStart + "\n --end " + fetchEnd + (resolution > 1? "\n --resolution " + resolution: "")); }