/** * 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(); }
Long.valueOf(this.dataFile != null ? this.dataFile.length() : -1L) ) );
elems.add(new StatElement<Long>( "Data File Length", Long.valueOf(this.dataFile.length()) ) );