String function ( String arg0 ) { String [ ] loc0 = arg0 . split ( "srini_string" ) ; Preconditions . checkArgument ( loc0 . length > 1 , "srini_string" , arg0 ) ; if ( ! loc0 [ 0 ] . equals ( MASTER_INSTANCE ) ) { loc0 [ 1 ] = null ; } loc0 [ 0 ] = null ; return Joiner . on ( "srini_string" ) . skipNulls ( ) . join ( loc0 ) ; }
util function to remove get the metrics name without instance and host . concode_field_sep TimeUnit MINIMAL_POLL_UNIT concode_elem_sep String SINK_REGEX concode_elem_sep String CLIENT_INSTANCE concode_elem_sep int MINIMAL_POLL_PERIOD concode_elem_sep String WORKER_INSTANCE concode_elem_sep Logger LOG concode_elem_sep List<Sink> sSinks concode_elem_sep MetricRegistry METRIC_REGISTRY concode_elem_sep String MASTER_INSTANCE concode_field_sep void stopSinks concode_elem_sep void checkMinimalPollingPeriod concode_elem_sep void startSinksFromConfig concode_elem_sep String getWorkerMetricName concode_elem_sep int getNumSinks concode_elem_sep String getClientMetricName concode_elem_sep Counter masterCounter concode_elem_sep void registerGaugeIfAbsent concode_elem_sep Timer masterTimer concode_elem_sep Timer workerTimer concode_elem_sep Counter workerCounter concode_elem_sep void startSinks concode_elem_sep String getMetricNameWithUniqueId concode_elem_sep Counter clientCounter concode_elem_sep void resetAllCounters concode_elem_sep String getMasterMetricName concode_elem_sep Timer clientTimer