private Map < String , StatsSnapshot > getStatsSnapshots ( boolean isReceived ) { SortedMap < String , StatsSnapshot > map = Maps . newTreeMap ( ) ; // Sorted by method name. if ( isReceived ) { getStatsSnapshots ( map , SERVER_RPC_CUMULATIVE_VIEWS ) ; getStatsSnapshots ( map , SERVER_RPC_MINUTE_VIEWS ) ; getStatsSnapshots ( map , SERVER_RPC_HOUR_VIEWS ) ; } else { getStatsSnapshots ( map , CLIENT_RPC_CUMULATIVE_VIEWS ) ; getStatsSnapshots ( map , CLIENT_RPC_MINUTE_VIEWS ) ; getStatsSnapshots ( map , CLIENT_RPC_HOUR_VIEWS ) ; } return map ; }
Gets stats snapshot for each method .