class MetricUtils {

	public static ActorSystem startMetricsActorSystem(Configuration configuration, String hostname, Logger logger) throws Exception {
		final String portRange = configuration.getString(MetricOptions.QUERY_SERVICE_PORT);
		final int threadPriority = configuration.getInteger(MetricOptions.QUERY_SERVICE_THREAD_PRIORITY);
		return BootstrapTools.startActorSystem(
			configuration,
			METRICS_ACTOR_SYSTEM_NAME,
			hostname,
			portRange,
			logger,
			new BootstrapTools.FixedThreadPoolExecutorConfiguration(1, 1, threadPriority));
	}

	private  MetricUtils();

}