Package org.apache.flink.runtime.instance

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


    int dataPort = port.getAndIncrement();
   
    InstanceConnectionInfo ci = new InstanceConnectionInfo(address, ipcPort, dataPort);
   
    final long GB = 1024L*1024*1024;
    HardwareDescription resources = new HardwareDescription(4, 4*GB, 3*GB, 2*GB);
   
    return new Instance(ci, new InstanceID(), resources, numSlots);
  }
View Full Code Here


  public static Instance getInstance(final TaskOperationProtocol top) throws Exception {
    return getInstance(top, 1);
  }
 
  public static Instance getInstance(final TaskOperationProtocol top, int numSlots) throws Exception {
    HardwareDescription hardwareDescription = new HardwareDescription(4, 2L*1024*1024*1024, 1024*1024*1024, 512*1024*1024);
    InetAddress address = InetAddress.getByName("127.0.0.1");
    InstanceConnectionInfo connection = new InstanceConnectionInfo(address, 10000, 10001);
   
    return new Instance(connection, new InstanceID(), hardwareDescription, numSlots) {
      @Override
View Full Code Here

TOP

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

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.