class SchedulerNGFactoryFactory {

	public static SchedulerNGFactory createSchedulerNGFactory(final Configuration configuration) {
		final String schedulerName = configuration.getString(JobManagerOptions.SCHEDULER);
		switch (schedulerName) {
			case SCHEDULER_TYPE_NG:
				return new DefaultSchedulerFactory();

			default:
				throw new IllegalArgumentException(String.format(
					"Illegal value [%s] for config option [%s]",
					schedulerName,
					JobManagerOptions.SCHEDULER.key()));
		}
	}

	private  SchedulerNGFactoryFactory();

}