/** * Returns the underlying storage (backend) object which actually performs all * I/O operations. * * @return I/O backend object */ public RrdBackend getRrdBackend() { return parentDb.getRrdBackend(); }
/** * Returns the underlying storage (backend) object which actually performs all * I/O operations. * * @return I/O backend object */ public RrdBackend getRrdBackend() { return parentDb.getRrdBackend(); }
/** * Returns the underlying storage (backend) object which actually performs all * I/O operations. * * @return I/O backend object */ public RrdBackend getRrdBackend() { return parentDb.getRrdBackend(); }
/** * Returns the underlying storage (backend) object which actually performs all * I/O operations. * * @return I/O backend object */ public RrdBackend getRrdBackend() { return parentDb.getRrdBackend(); }
/** * Returns the underlying storage (backend) object which actually performs all * I/O operations. * * @return I/O backend object */ public RrdBackend getRrdBackend() { return parentDb.getRrdBackend(); }
/** * 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 + " --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(); }
Def(String name, String dsName, FetchData fetchData) { this(name, fetchData.getRequest().getParentDb().getPath(), dsName, fetchData.getRequest().getConsolFun(), fetchData.getRequest().getParentDb().getRrdBackend().getFactory() ); this.fetchData = fetchData; }
void setFile(File newFile) { try { values = null; String path = newFile.getAbsolutePath(); RrdDb rrd = new RrdDb(path, true); try { Header header = rrd.getHeader(); String signature = header.getSignature(); String step = "" + header.getStep(); String lastTimestamp = header.getLastUpdateTime() + " [" + new Date(header.getLastUpdateTime() * 1000L) + "]"; String datasources = "" + header.getDsCount(); String archives = "" + header.getArcCount(); String size = rrd.getRrdBackend().getLength() + " bytes"; values = new Object[]{ path, signature, step, lastTimestamp, datasources, archives, size }; } finally { rrd.close(); } fireTableDataChanged(); } catch (Exception e) { Util.error(null, e); } } }