Examples of ChannelDeploymentDescriptor


Examples of eu.stratosphere.nephele.deployment.ChannelDeploymentDescriptor

    setChannelType(inputGateDescriptor.getChannelType());

    final int nicdd = inputGateDescriptor.getNumberOfChannelDescriptors();

    for(int i = 0; i < nicdd; i++){
      final ChannelDeploymentDescriptor cdd = inputGateDescriptor.getChannelDescriptor(i);
      channels[i] = new InputChannel<T>(this, i, cdd.getInputChannelID(),
          cdd.getOutputChannelID(), getChannelType());
    }
  }
View Full Code Here

Examples of eu.stratosphere.nephele.deployment.ChannelDeploymentDescriptor

    this.channels = new OutputChannel[numChannels];

    setChannelType(descriptor.getChannelType());

    for (int i = 0; i < numChannels; i++) {
      ChannelDeploymentDescriptor channelDescriptor = descriptor.getChannelDescriptor(i);

      ChannelID id = channelDescriptor.getOutputChannelID();
      ChannelID connectedId = channelDescriptor.getInputChannelID();

      this.channels[i] = new OutputChannel(this, i, id, connectedId, getChannelType());
    }
  }
View Full Code Here

Examples of eu.stratosphere.nephele.deployment.ChannelDeploymentDescriptor

        eg.getNumberOfEdges());
      final int numberOfOutputChannels = eg.getNumberOfEdges();
      for (int j = 0; j < numberOfOutputChannels; ++j) {

        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));
    }
View Full Code Here

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

      when(jobManager.lookupConnectionInfo(Matchers.any(InstanceConnectionInfo.class), Matchers.eq(jid), Matchers.eq(senderId)))
        .thenReturn(ConnectionInfoLookupResponse.createReceiverFoundAndReady(receiverId));
     
      tm = createTaskManager(jobManager);
     
      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(),
View Full Code Here

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

      when(jobManager.lookupConnectionInfo(Matchers.any(InstanceConnectionInfo.class), Matchers.eq(jid), Matchers.eq(senderId)))
        .thenReturn(ConnectionInfoLookupResponse.createReceiverFoundAndReady(receiverId));
     
      tm = createTaskManager(jobManager);
     
      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(),
View Full Code Here

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

    List<ChannelDeploymentDescriptor> channelDescr = inputGateDescriptor.getChannels();
   
    channels = new InputChannel[channelDescr.size()];

    for(int i = 0; i < channelDescr.size(); i++){
      ChannelDeploymentDescriptor cdd = channelDescr.get(i);
      channels[i] = new InputChannel<T>(this, i, cdd.getInputChannelID(),
          cdd.getOutputChannelID(), getChannelType());
    }
  }
View Full Code Here

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

   
    int numChannels = channelDescr.size();
    this.channels = new OutputChannel[numChannels];

    for (int i = 0; i < numChannels; i++) {
      ChannelDeploymentDescriptor channelDescriptor = channelDescr.get(i);

      ChannelID id = channelDescriptor.getOutputChannelID();
      ChannelID connectedId = channelDescriptor.getInputChannelID();

      this.channels[i] = new OutputChannel(this, i, id, connectedId, getChannelType());
    }
  }
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.