private static Statistics getStatistics ( String category , String name ) { StatisticsContext context = getContext ( category ) ; if ( context == null ) { return null ; } // Format the name name = formatName ( name ) ; if ( name == null ) { return null ; } Statistics statistics ; if ( GLOBAL_STATISTICS_NAME . equalsIgnoreCase ( name ) ) { statistics = context . global ; } else { statistics = context . allStatistics . get ( name ) ; } return statistics ; }
Retrieve statistics of the given category and name .