protected static boolean hasMetrics ( CommunicationSummaryStatistics css ) { if ( css . getCount ( ) > 0 ) { return true ; } for ( ConnectionStatistics cs : css . getOutbound ( ) . values ( ) ) { if ( cs . getCount ( ) > 0 ) { return true ; } if ( cs . getNode ( ) != null ) { if ( hasMetrics ( cs . getNode ( ) ) ) { return true ; } } } return false ; }
This method determines whether the communication summary statistics have defined metrics .