Examples of GateDeploymentDescriptor


Examples of eu.stratosphere.nephele.deployment.GateDeploymentDescriptor

        final ExecutionEdge ee = eg.getEdge(j);
        cdd.add(new ChannelDeploymentDescriptor(ee.getOutputChannelID(), ee.getInputChannelID()));
      }

      ogd.add(new GateDeploymentDescriptor(eg.getGateID(), eg.getChannelType(), cdd));
    }

    final SerializableArrayList<GateDeploymentDescriptor> igd = new SerializableArrayList<GateDeploymentDescriptor>(
      this.inputGates.length);
    for (int i = 0; i < this.inputGates.length; ++i) {

      final ExecutionGate eg = this.inputGates[i];
      final List<ChannelDeploymentDescriptor> cdd = new ArrayList<ChannelDeploymentDescriptor>(
        eg.getNumberOfEdges());
      final int numberOfInputChannels = eg.getNumberOfEdges();
      for (int j = 0; j < numberOfInputChannels; ++j) {

        final ExecutionEdge ee = eg.getEdge(j);
        cdd.add(new ChannelDeploymentDescriptor(ee.getOutputChannelID(), ee.getInputChannelID()));
      }

      igd.add(new GateDeploymentDescriptor(eg.getGateID(), eg.getChannelType(), cdd));
    }

    final TaskDeploymentDescriptor tdd = new TaskDeploymentDescriptor(this.executionGraph.getJobID(),
      this.vertexID, this.groupVertex.getName(), this.indexInVertexGroup,
      this.groupVertex.getCurrentNumberOfGroupMembers(), this.executionGraph.getJobConfiguration(),
View Full Code Here

Examples of org.apache.flink.runtime.deployment.GateDeploymentDescriptor

     
      ChannelDeploymentDescriptor cdd = new ChannelDeploymentDescriptor(senderId, receiverId);
     
      TaskDeploymentDescriptor tdd1 = new TaskDeploymentDescriptor(jid, vid1, eid1, "Sender", 0, 1,
          new Configuration(), new Configuration(), Sender.class.getName(),
          Collections.singletonList(new GateDeploymentDescriptor(Collections.singletonList(cdd))),
          Collections.<GateDeploymentDescriptor>emptyList(),
          new ArrayList<BlobKey>(), 0);
     
      TaskDeploymentDescriptor tdd2 = new TaskDeploymentDescriptor(jid, vid2, eid2, "Receiver", 2, 7,
          new Configuration(), new Configuration(), Receiver.class.getName(),
          Collections.<GateDeploymentDescriptor>emptyList(),
          Collections.singletonList(new GateDeploymentDescriptor(Collections.singletonList(cdd))),
          new ArrayList<BlobKey>(), 0);

      // deploy sender before receiver, so the target is online when the sender requests the connection info
      TaskOperationResult result2 = tm.submitTask(tdd2);
      TaskOperationResult result1 = tm.submitTask(tdd1);
View Full Code Here

Examples of org.apache.flink.runtime.deployment.GateDeploymentDescriptor

     
      ChannelDeploymentDescriptor cdd = new ChannelDeploymentDescriptor(senderId, receiverId);
     
      TaskDeploymentDescriptor tdd1 = new TaskDeploymentDescriptor(jid, vid1, eid1, "Sender", 0, 1,
          new Configuration(), new Configuration(), Sender.class.getName(),
          Collections.singletonList(new GateDeploymentDescriptor(Collections.singletonList(cdd))),
          Collections.<GateDeploymentDescriptor>emptyList(),
          new ArrayList<BlobKey>(), 0);
     
      TaskDeploymentDescriptor tdd2 = new TaskDeploymentDescriptor(jid, vid2, eid2, "Receiver", 2, 7,
          new Configuration(), new Configuration(), ReceiverBlocking.class.getName(),
          Collections.<GateDeploymentDescriptor>emptyList(),
          Collections.singletonList(new GateDeploymentDescriptor(Collections.singletonList(cdd))),
          new ArrayList<BlobKey>(), 0);
     
      // deploy sender before receiver, so the target is online when the sender requests the connection info
      TaskOperationResult result2 = tm.submitTask(tdd2);
      TaskOperationResult result1 = tm.submitTask(tdd1);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.