class MetricUtils {

	public static RpcService startMetricsRpcService(Configuration configuration, String hostname) throws Exception {
		final String portRange = configuration.getString(MetricOptions.QUERY_SERVICE_PORT);
		final int threadPriority = configuration.getInteger(MetricOptions.QUERY_SERVICE_THREAD_PRIORITY);

		return AkkaRpcServiceUtils.createRpcService(
			hostname,
			portRange,
			configuration,
			METRICS_ACTOR_SYSTEM_NAME,
			new BootstrapTools.FixedThreadPoolExecutorConfiguration(1, 1, threadPriority));
	}

	private  MetricUtils();

}