public ExecutorManager(Configuration configuration) { if (configuration != null) { if (configuration.getExecution().getMode().equalsIgnoreCase("local")) { this.executor = new LocalExecutor(); } else if (configuration.getExecution().getMode().equalsIgnoreCase("sge")) { // init sge executor this.executor = new SGEExecutor(configuration); System.out.println("SGE not ready"); } } if (executor == null) { // Load default executor this.executor = new LocalExecutor(); } }