String function ( String arg0 , String arg1 ) { return Joiner . on ( "srini_string" ) . join ( arg0 , NetworkAddressUtils . getLocalHostName ( ) . replace ( '.' , '_' ) , arg1 ) ; }
builds unique metric registry names with unique id set to host name . the pattern is instance.hostname.metricname . concode_field_sep TimeUnit MINIMAL_POLL_UNIT concode_elem_sep String SINK_REGEX concode_elem_sep String CLIENT_INSTANCE concode_elem_sep Logger LOG concode_elem_sep int MINIMAL_POLL_PERIOD concode_elem_sep String WORKER_INSTANCE 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 Counter clientCounter concode_elem_sep String stripInstanceAndHost concode_elem_sep void resetAllCounters concode_elem_sep String getMasterMetricName concode_elem_sep Timer clientTimer