Examples of ChannelType


Examples of eu.stratosphere.runtime.io.channels.ChannelType

        final AbstractJobVertex jv = jobGraph.findVertexByID(tmpID);
        if (jv == null) {
          throw new IOException("Cannot find vertex with id " + tmpID);
        }

        final ChannelType channelType = EnumUtils.readEnum(in, ChannelType.class);
        final DistributionPattern distributionPattern = EnumUtils.readEnum(in, DistributionPattern.class);
        final int indexOfInputGate = in.readInt();

        try {
          this.connectTo(jv, channelType, i, indexOfInputGate, distributionPattern);
View Full Code Here

Examples of eu.stratosphere.runtime.io.channels.ChannelType

      final AbstractJobVertex sourceVertex, final TaskConfig sourceConfig,
      final AbstractJobVertex targetVertex, final TaskConfig targetConfig, boolean isBroadcast)
  throws JobGraphDefinitionException, CompilerException
  {
    // ------------ connect the vertices to the job graph --------------
    final ChannelType channelType;
    final DistributionPattern distributionPattern;

    switch (channel.getShipStrategy()) {
      case FORWARD:
      case PARTITION_LOCAL_HASH:
View Full Code Here

Examples of eu.stratosphere.runtime.io.channels.ChannelType

   */
  @Test
  public void testConstructorWithValidArguments() {

    final GateID gateID = new GateID();
    final ChannelType channelType = ChannelType.IN_MEMORY;
    final List<ChannelDeploymentDescriptor> channels = new ArrayList<ChannelDeploymentDescriptor>(0);

    final GateDeploymentDescriptor gdd = new GateDeploymentDescriptor(gateID, channelType, channels);

    assertEquals(gateID, gdd.getGateID());
View Full Code Here

Examples of eu.stratosphere.runtime.io.channels.ChannelType

   */
  @Test
  public void testConstructorWithInvalidArguments() {

    final GateID gateID = new GateID();
    final ChannelType channelType = ChannelType.IN_MEMORY;
    final List<ChannelDeploymentDescriptor> channels = new ArrayList<ChannelDeploymentDescriptor>(0);

    boolean firstExceptionCaught = false;
    boolean secondExceptionCaught = false;
    boolean thirdExceptionCaught = false;
View Full Code Here

Examples of eu.stratosphere.runtime.io.channels.ChannelType

   */
  @Test
  public void testSerialization() {

    final GateID gateID = new GateID();
    final ChannelType channelType = ChannelType.IN_MEMORY;
    final List<ChannelDeploymentDescriptor> channels = new ArrayList<ChannelDeploymentDescriptor>(0);
    final ChannelDeploymentDescriptor cdd = new ChannelDeploymentDescriptor(new ChannelID(), new ChannelID());
    channels.add(cdd);

    final GateDeploymentDescriptor orig = new GateDeploymentDescriptor(gateID, channelType,
View Full Code Here

Examples of nexj.core.meta.integration.ChannelType

            }
         }, progress);
         m_soaLoader.resolveReferences();

         // dispatcher channel properties loaded from environment.
         ChannelType type = m_metadata.getChannelType("ObjectQueue");

         m_dispatcherChannel.setType(type);
         m_metadata.addChannel(m_dispatcherChannel);

         m_helper.loadResources(".channel", "Channel", "channel", new ResourceHandler()
View Full Code Here

Examples of nexj.core.meta.integration.ChannelType

    */
   protected void loadChannelType(Element chtElement, String sName)
   {
      XMLMetadataHelper.verifyRootElement(chtElement, "ChannelType");

      final ChannelType type = new ChannelType(sName);

      type.setMetadata(m_metadata);
      type.setLoader(m_helper.getClassObject(XMLUtil.getReqStringAttr(chtElement, "loader")));

      String sExporter = XMLUtil.getStringAttr(chtElement, "exporter");

      if (sExporter != null)
      {
         type.setExporter(m_helper.getClassObject(sExporter));
      }

      type.setSender(m_helper.getClassObject(XMLUtil.getReqStringAttr(chtElement, "sender")));

      String sReceiver = XMLUtil.getStringAttr(chtElement, "receiver");

      if (sReceiver != null)
      {
         type.setReceiver(m_helper.getClassObject(sReceiver));
      }

      String sElement = XMLUtil.getReqStringAttr(chtElement, "element");

      XMLMetadataHelper.validateName(sElement);
View Full Code Here

Examples of nexj.core.meta.integration.ChannelType

    * @param channelElement The DOM element containing the channel.
    * @param sName The data source name.
    */
   protected void loadChannel(Element channelElement, String sName)
   {
      ChannelType type = m_metadata.getChannelTypeByElement(channelElement);

      m_metadata.addChannel(((XMLIntegrationMetadataLoader)m_helper.getClassInstance(type.getLoader()))
         .loadChannel(channelElement, sName, type, this));
   }
View Full Code Here

Examples of nexj.core.meta.integration.ChannelType

    * @return The channel type object.
    * @throws MetadataLookupException if the channel type does not exist.
    */
   public ChannelType getChannelType(String sName)
   {
      ChannelType channelType = (ChannelType) m_channelTypeMap.get(sName);

      if (channelType != null)
      {
         return channelType;
      }
View Full Code Here

Examples of nexj.core.meta.integration.ChannelType

      if (element.getNodeName().equals("Channel"))
      {
         return getChannelType(XMLUtil.getReqStringAttr(element, "type"));
      }

      ChannelType channelType = (ChannelType)m_channelTypeMap.get(element.getNodeName());

      if (channelType != null)
      {
         return channelType;
      }
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.