Package org.apache.flink.runtime.instance

Examples of org.apache.flink.runtime.instance.InstanceManager


  }
 
  public TaskManager[] getTaskManagers() {
    JobManager jm = this.jobManager;
    if (jm != null) {
      InstanceManager im = jm.getInstanceManager();
      if (im instanceof LocalInstanceManager) {
        return ((LocalInstanceManager) im).getTaskManagers();
      }
    }
   
View Full Code Here


    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 {
      throw new IllegalArgumentException("ExecutionMode");
    }
View Full Code Here

TOP

Related Classes of org.apache.flink.runtime.instance.InstanceManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.