void function ( ) { if ( statsAggregator != null ) { statsAggregator . cancel ( ) ; } if ( scheduler != null ) { scheduler . shutdown ( ) ; if ( ! scheduler . awaitTermination ( 30 , TimeUnit . SECONDS ) ) { logger . error ( "srini_string" ) ; } } }
stops the periodic task that is collecting , aggregating and publishing stats . concode_field_sep Logger logger concode_elem_sep StorageManager storageManager concode_elem_sep File statsOutputFile concode_elem_sep List<PartitionId> totalPartitionIds concode_elem_sep int initialDelayInSecs concode_elem_sep ObjectMapper mapper concode_elem_sep StatsAggregator statsAggregator concode_elem_sep boolean cancelled concode_elem_sep long publishPeriodInSecs concode_elem_sep StatsManagerMetrics metrics concode_elem_sep Time time concode_elem_sep ScheduledExecutorService scheduler concode_field_sep void cancel concode_elem_sep void collectAndAggregate concode_elem_sep void publish concode_elem_sep void start concode_elem_sep StatsSnapshot fetchSnapshot concode_elem_sep void run concode_elem_sep String getNodeStatsInJSON