public static synchronized String getLocalHostMetricName ( int timeoutMs ) { if ( sLocalHostMetricName != null ) { return sLocalHostMetricName ; } sLocalHostMetricName = getLocalHostName ( timeoutMs ) . replace ( ' ' , ' ' ) ; return sLocalHostMetricName ; }
Gets a local hostname for the host this JVM is running on with . replaced with _ for metrics usage .