protected String getReport ( ) { StringBuffer sb = new StringBuffer ( ) ; Iterator iter = this . longCounters . entrySet ( ) . iterator ( ) ; while ( iter . hasNext ( ) ) { Entry e = ( Entry ) iter . next ( ) ; sb . append ( e . getKey ( ) . toString ( ) ) . append ( "\t" ) . append ( e . getValue ( ) ) . append ( "\n" ) ; } iter = this . doubleCounters . entrySet ( ) . iterator ( ) ; while ( iter . hasNext ( ) ) { Entry e = ( Entry ) iter . next ( ) ; sb . append ( e . getKey ( ) . toString ( ) ) . append ( "\t" ) . append ( e . getValue ( ) ) . append ( "\n" ) ; } return sb . toString ( ) ; }
log the counters