/** * For debugging only. * <p> * @return String with details. */ @Override public String toString() { StringBuilder buf = new StringBuilder(); buf.append( "\nBlock Disk " ); buf.append( "\n Filepath [" + filepath + "]" ); buf.append( "\n NumberOfBlocks [" + this.numberOfBlocks.get() + "]" ); buf.append( "\n BlockSizeBytes [" + this.blockSizeBytes + "]" ); buf.append( "\n Put Bytes [" + this.putBytes + "]" ); buf.append( "\n Put Count [" + this.putCount + "]" ); buf.append( "\n Average Size [" + getAveragePutSizeBytes() + "]" ); buf.append( "\n Empty Blocks [" + this.getEmptyBlocks() + "]" ); try { buf.append( "\n Length [" + length() + "]" ); } catch ( IOException e ) { // swallow } return buf.toString(); }
/** * For debugging only. * <p> * @return String with details. */ @Override public String toString() { StringBuilder buf = new StringBuilder(); buf.append( "\nBlock Disk " ); buf.append( "\n Filepath [" + filepath + "]" ); buf.append( "\n NumberOfBlocks [" + this.numberOfBlocks.get() + "]" ); buf.append( "\n BlockSizeBytes [" + this.blockSizeBytes + "]" ); buf.append( "\n Put Bytes [" + this.putBytes + "]" ); buf.append( "\n Put Count [" + this.putCount + "]" ); buf.append( "\n Average Size [" + getAveragePutSizeBytes() + "]" ); buf.append( "\n Empty Blocks [" + this.getEmptyBlocks() + "]" ); try { buf.append( "\n Length [" + length() + "]" ); } catch ( IOException e ) { // swallow } return buf.toString(); }
Integer.valueOf(this.dataFile.getNumberOfBlocks()) ) ); elems.add(new StatElement<Long>( "Average Put Size Bytes", Long.valueOf(this.dataFile.getAveragePutSizeBytes()) ) ); elems.add(new StatElement<Integer>( "Empty Blocks", Integer.valueOf(this.dataFile.getEmptyBlocks()) ) );
Integer.valueOf(this.dataFile.getNumberOfBlocks()) ) ); elems.add(new StatElement<Long>( "Average Put Size Bytes", Long.valueOf(this.dataFile.getAveragePutSizeBytes()) ) ); elems.add(new StatElement<Integer>( "Empty Blocks", Integer.valueOf(this.dataFile.getEmptyBlocks()) ) );