Package org.apache.jmeter.protocol.jms.sampler

Examples of org.apache.jmeter.protocol.jms.sampler.JMSSampler


    @Override
    public void configure(TestElement el) {
        super.configure(el);
        if (!(el instanceof JMSSampler)) return;
        JMSSampler sampler = (JMSSampler) el;
        queueConnectionFactory.setText(sampler.getQueueConnectionFactory());
        sendQueue.setText(sampler.getSendQueue());
        receiveQueue.setText(sampler.getReceiveQueue());

        JComboBox box = (JComboBox) oneWay.getComponentList().get(1);
        String selected = null;
        if (sampler.isOneway()) {
            selected = JMeterUtils.getResString("jms_request"); //$NON-NLS-1$
        } else {
            selected = JMeterUtils.getResString("jms_requestreply"); //$NON-NLS-1$
        }
        box.setSelectedItem(selected);

        useNonPersistentDelivery.setSelected(sampler.isNonPersistent());
        useReqMsgIdAsCorrelId.setSelected(sampler.isUseReqMsgIdAsCorrelId());
        useResMsgIdAsCorrelId.setSelected(sampler.isUseResMsgIdAsCorrelId());

        timeout.setText(sampler.getTimeout());
        jmsSelector.setText(sampler.getJMSSelector());
        soapXml.setText(sampler.getContent());
        initialContextFactory.setText(sampler.getInitialContextFactory());
        providerUrl.setText(sampler.getContextProvider());

        jmsPropertiesPanel.configure(sampler.getJMSProperties());
        // (TestElement)
        // el.getProperty(JMSSampler.JMS_PROPERTIES).getObjectValue());

        jndiPropertiesPanel.configure(sampler.getJNDIProperties());
        // (TestElement)
        // el.getProperty(JMSSampler.JNDI_PROPERTIES).getObjectValue());
    }
View Full Code Here


  }

  public TestElement createTestElement() {
    // org.activemq.jndi.ActiveMQInitialContextFactory
    // ConfigTestElement element = new ConfigTestElement();
    JMSSampler sampler = new JMSSampler();
    this.configureTestElement(sampler);
    transfer(sampler);
    return sampler;
  }
View Full Code Here

  /**
   *
   * @param element
   */
  public void modifyTestElement(TestElement element) {
    JMSSampler sampler = (JMSSampler) element;
    this.configureTestElement(sampler);
    transfer(sampler);

    /*
     * element.setProperty( JMSSampler.QUEUE_CONNECTION_FACTORY_JNDI,
View Full Code Here

  /**
   * @param el
   */
  public void configure(TestElement el) {
    super.configure(el);
    JMSSampler sampler = (JMSSampler) el;
    queueuConnectionFactory.setText(sampler.getQueueConnectionFactory());
    sendQueue.setText(sampler.getSendQueue());
    receiveQueue.setText(sampler.getReceiveQueue());

    JComboBox box = (JComboBox) oneWay.getComponentList().get(1);
    String selected = null;
    if (sampler.isOneway()) {
      selected = JMeterUtils.getResString("jms_request"); //$NON-NLS-1$
    } else {
      selected = JMeterUtils.getResString("jms_requestreply"); //$NON-NLS-1$
    }
    box.setSelectedItem(selected);

    timeout.setText(String.valueOf(sampler.getTimeout()));
    soapXml.setText(sampler.getContent());
    initialContextFactory.setText(sampler.getInitialContextFactory());
    providerUrl.setText(sampler.getContextProvider());

    jmsPropertiesPanel.configure(sampler.getJMSProperties());
    // (TestElement)
    // el.getProperty(JMSSampler.JMS_PROPERTIES).getObjectValue());

    jndiPropertiesPanel.configure(sampler.getJNDIProperties());
    // (TestElement)
    // el.getProperty(JMSSampler.JNDI_PROPERTIES).getObjectValue());
  }
View Full Code Here

  }

  public TestElement createTestElement() {
    // org.activemq.jndi.ActiveMQInitialContextFactory
    // ConfigTestElement element = new ConfigTestElement();
    JMSSampler sampler = new JMSSampler();
    this.configureTestElement(sampler);
    transfer(sampler);
    return sampler;
  }
View Full Code Here

  /**
   *
   * @param element
   */
  public void modifyTestElement(TestElement element) {
    JMSSampler sampler = (JMSSampler) element;
    this.configureTestElement(sampler);
    transfer(sampler);

    /*
     * element.setProperty( JMSSampler.QUEUE_CONNECTION_FACTORY_JNDI,
View Full Code Here

  /**
   * @param el
   */
  public void configure(TestElement el) {
    super.configure(el);
    JMSSampler sampler = (JMSSampler) el;
    queueuConnectionFactory.setText(sampler.getQueueConnectionFactory());
    sendQueue.setText(sampler.getSendQueue());
    receiveQueue.setText(sampler.getReceiveQueue());

    JComboBox box = (JComboBox) oneWay.getComponentList().get(1);
    String selected = null;
    if (sampler.isOneway()) {
      selected = JMeterUtils.getResString("jms_request"); //$NON-NLS-1$
    } else {
      selected = JMeterUtils.getResString("jms_requestreply"); //$NON-NLS-1$
    }
    box.setSelectedItem(selected);

    useNonPersistentDelivery.setSelected(sampler.isNonPersistent());
   
    timeout.setText(String.valueOf(sampler.getTimeout()));
    soapXml.setText(sampler.getContent());
    initialContextFactory.setText(sampler.getInitialContextFactory());
    providerUrl.setText(sampler.getContextProvider());

    jmsPropertiesPanel.configure(sampler.getJMSProperties());
    // (TestElement)
    // el.getProperty(JMSSampler.JMS_PROPERTIES).getObjectValue());

    jndiPropertiesPanel.configure(sampler.getJNDIProperties());
    // (TestElement)
    // el.getProperty(JMSSampler.JNDI_PROPERTIES).getObjectValue());
  }
View Full Code Here

        jndiPropertiesPanel.clear();
    }

    @Override
    public TestElement createTestElement() {
        JMSSampler sampler = new JMSSampler();
        this.configureTestElement(sampler);
        transfer(sampler);
        return sampler;
    }
View Full Code Here

     */
    @Override
    public void modifyTestElement(TestElement element) {
        this.configureTestElement(element);
        if (!(element instanceof JMSSampler)) return;
        JMSSampler sampler = (JMSSampler) element;
        transfer(sampler);
    }
View Full Code Here

    @Override
    public void configure(TestElement el) {
        super.configure(el);
        if (!(el instanceof JMSSampler)) return;
        JMSSampler sampler = (JMSSampler) el;
        queueConnectionFactory.setText(sampler.getQueueConnectionFactory());
        sendQueue.setText(sampler.getSendQueue());
        receiveQueue.setText(sampler.getReceiveQueue());

        JComboBox box = (JComboBox) oneWay.getComponentList().get(1);
        String selected = null;
        if (sampler.isOneway()) {
            selected = JMeterUtils.getResString("jms_request"); //$NON-NLS-1$
        } else {
            selected = JMeterUtils.getResString("jms_requestreply"); //$NON-NLS-1$
        }
        box.setSelectedItem(selected);

        useNonPersistentDelivery.setSelected(sampler.isNonPersistent());
        useReqMsgIdAsCorrelId.setSelected(sampler.isUseReqMsgIdAsCorrelId());
        useResMsgIdAsCorrelId.setSelected(sampler.isUseResMsgIdAsCorrelId());

        timeout.setText(sampler.getTimeout());
        expiration.setText(sampler.getExpiration());
        priority.setText(sampler.getPriority());
        jmsSelector.setText(sampler.getJMSSelector());
        messageContent.setInitialText(sampler.getContent());
        initialContextFactory.setText(sampler.getInitialContextFactory());
        providerUrl.setText(sampler.getContextProvider());

        jmsPropertiesPanel.configure(sampler.getJMSProperties());
        // (TestElement)
        // el.getProperty(JMSSampler.JMS_PROPERTIES).getObjectValue());

        jndiPropertiesPanel.configure(sampler.getJNDIProperties());
        // (TestElement)
        // el.getProperty(JMSSampler.JNDI_PROPERTIES).getObjectValue());
    }
View Full Code Here

TOP

Related Classes of org.apache.jmeter.protocol.jms.sampler.JMSSampler

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.