LOG.info("Starting job manager in " + executionMode + " mode");
// Try to load the instance manager for the given execution mode
if (executionMode == ExecutionMode.LOCAL) {
final int numTaskManagers = GlobalConfiguration.getInteger(ConfigConstants.LOCAL_INSTANCE_MANAGER_NUMBER_TASK_MANAGER, 1);
this.instanceManager = new LocalInstanceManager(numTaskManagers);
}
else if (executionMode == ExecutionMode.CLUSTER) {
this.instanceManager = new InstanceManager();
}
else {