/** * Returns the number of storage bytes required to create RRD from this * RrdDef object. * * @return Estimated byte count of the underlying RRD storage. */ public long getEstimatedSize() { int dsCount = dsDefs.size(); int arcCount = arcDefs.size(); int rowsCount = 0; for (ArcDef arcDef : arcDefs) { rowsCount += arcDef.getRows(); } return calculateSize(dsCount, arcCount, rowsCount); }
/** * Returns the number of storage bytes required to create RRD from this * RrdDef object. * * @return Estimated byte count of the underlying RRD storage. */ public long getEstimatedSize() { int dsCount = dsDefs.size(); int arcCount = arcDefs.size(); int rowsCount = 0; for (ArcDef arcDef : arcDefs) { rowsCount += arcDef.getRows(); } String[] dsNames = new String[dsCount]; for (int i = 0; i < dsNames.length ; i++) { dsNames[i] = dsDefs.get(i).getDsName(); } return calculateSize(dsCount, arcCount, rowsCount, dsNames); }
long getEstimatedSize() throws IOException { int dsCount = getDsCount(); int arcCount = getArcCount(); int rowCount = 0; for (int i = 0; i < arcCount; i++) { rowCount += getRows(i); } return RrdDef.calculateSize(dsCount, arcCount, rowCount); }
protected long getEstimatedSize() throws IOException { int dsCount = getDsCount(); int arcCount = getArcCount(); int rowCount = 0; for (int i = 0; i < arcCount; i++) { rowCount += getRows(i); } String[] dsNames = new String[getDsCount()]; for (int i = 0 ; i < dsNames.length; i++) { dsNames[i] = getDsName(i); } return RrdDef.calculateSize(dsCount, arcCount, rowCount, dsNames); }