Examples of Outcome


Examples of org.apache.qpid.amqp_1_0.type.Outcome

        }

        public boolean process(final DeliveryState state, final Boolean settled)
        {
            Binary transactionId = null;
            Outcome outcome = null;
            // If disposition is settled this overrides the txn?
            if(state instanceof TransactionalState)
            {
                transactionId = ((TransactionalState)state).getTxnId();
                outcome = ((TransactionalState)state).getOutcome();
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.type.Outcome

                queueEntry.release();
                _unsettledMap.remove(deliveryTag);
            }
            else if(initialUnsettledMap.get(deliveryTag) instanceof Outcome)
            {
                Outcome outcome = (Outcome) initialUnsettledMap.get(deliveryTag);

                if(outcome instanceof Accepted)
                {
                    AutoCommitTransaction txn = new AutoCommitTransaction(_vhost.getMessageStore());
                    if(_consumer.acquires())
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.type.Outcome

        if(_resumedMessage)
        {
            if(_unsettledMap.containsKey(_messageDeliveryTag))
            {
                Outcome outcome = _unsettledMap.get(_messageDeliveryTag);
                boolean settled = ReceiverSettleMode.FIRST.equals(getReceivingSettlementMode());
                getEndpoint().updateDisposition(_messageDeliveryTag, (DeliveryState) outcome, settled);
                if(settled)
                {
                    _unsettledMap.remove(_messageDeliveryTag);
                }
            }
            else
            {
                System.err.println("UNEXPECTED!!");
                System.err.println("Delivery Tag: " + _messageDeliveryTag);
                System.err.println("_unsettledMap: " + _unsettledMap);

            }
        }
        else
        {
            MessageMetaData_1_0 mmd = null;
            List<ByteBuffer> immutableSections = new ArrayList<ByteBuffer>(3);
            mmd = new MessageMetaData_1_0(fragments.toArray(new ByteBuffer[fragments.size()]),
                    _sectionDecoder,
                    immutableSections);

            StoredMessage<MessageMetaData_1_0> storedMessage = _vhost.getMessageStore().addMessage(mmd);

            boolean skipping = true;
            int offset = 0;

            for(ByteBuffer bareMessageBuf : immutableSections)
            {
                storedMessage.addContent(offset, bareMessageBuf.duplicate());
                offset += bareMessageBuf.remaining();
            }

            Message_1_0 message = new Message_1_0(storedMessage, fragments, getSession().getConnection().getReference());
            MessageReference<Message_1_0> reference = message.newReference();

            Binary transactionId = null;
            org.apache.qpid.amqp_1_0.type.DeliveryState xfrState = xfr.getState();
            if(xfrState != null)
            {
                if(xfrState instanceof TransactionalState)
                {
                    transactionId = ((TransactionalState)xfrState).getTxnId();
                }
            }

            ServerTransaction transaction = null;
            if(transactionId != null)
            {
                transaction = getSession().getTransaction(transactionId);
            }
            else
            {
                Session_1_0 session = getSession();
                transaction = session != null ? session.getTransaction(null) : new AutoCommitTransaction(_vhost.getMessageStore());
            }

            Outcome outcome = _destination.send(message, transaction);

            DeliveryState resultantState;

            if(transactionId == null)
            {
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.type.Outcome

        synchronized(getLock())
        {
            if(_unsettledMap.containsKey(deliveryTag))
            {
                boolean outcomeUpdate = false;
                Outcome outcome=null;
                if(state instanceof Outcome)
                {
                    outcome = (Outcome)state;
                }
                else if(state instanceof TransactionalState)
                {
                    // TODO? Is this correct
                    outcome = ((TransactionalState)state).getOutcome();
                }

                if(outcome != null)
                {
                    Object oldOutcome = _unsettledMap.put(deliveryTag, outcome);
                    outcomeUpdate = !outcome.equals(oldOutcome);
                }



View Full Code Here

Examples of org.bndtools.core.resolve.ResolutionResult.Outcome

            }
        };
        job.addJobChangeListener(new JobChangeAdapter() {
            @Override
            public void done(IJobChangeEvent event) {
                Outcome outcome = job.getResolutionResult().getOutcome();
                if (outcome != Outcome.Cancelled)
                    parentShell.getDisplay().asyncExec(showResult);
            }
        });
View Full Code Here

Examples of org.eobjects.analyzer.job.Outcome

      for (int i = 0; i < mergeInputs.length; i++) {
        if (i != 0) {
          sb.append(',');
        }
        MergeInput mergeInput = mergeInputs[i];
        Outcome outcome = mergeInput.getOutcome();
        appendRequirement(sb, outcome);
      }
      sb.append(']');
    } else {
      // should not happen
View Full Code Here

Examples of org.eobjects.analyzer.job.Outcome

    updateText();
  }

  @Override
  public void actionPerformed(ActionEvent e) {
    Outcome currentRequirement = _jobBuilder.getRequirement();
    logger.info("Current requirement: {}", currentRequirement);

    JPopupMenu popup = new JPopupMenu();

    JMenuItem noFilterMenuItem = new JMenuItem(NO_FILTER_TEXT);
View Full Code Here

Examples of org.eobjects.analyzer.job.Outcome

    popup.show(this, 0, getHeight());
  }

  public void updateText() {
    logger.info("updateText()");
    Outcome requirement = _jobBuilder.getRequirement();
    if (requirement == null) {
      setText(NO_FILTER_TEXT);
    } else {
      if (requirement instanceof FilterOutcome) {
        FilterOutcome filterOutcome = (FilterOutcome) requirement;
        Enum<?> category = filterOutcome.getCategory();
        if (filterOutcome instanceof LazyFilterOutcome) {
          // if possible, use the builder in stead of the job (getting
          // the job may cause an exception if the builder is not
          // correctly configured yet)
          FilterJobBuilder<?, ?> fjb = ((LazyFilterOutcome) filterOutcome).getFilterJobBuilder();

          String filterLabel = LabelUtils.getLabel(fjb);

          setText(filterLabel + ": " + category);
        } else {
          FilterJob filterJob = filterOutcome.getFilterJob();
          setText(LabelUtils.getLabel(filterJob) + ": " + category);
        }
      } else if (requirement instanceof MergedOutcome) {
        MergedOutcomeJob job = ((MergedOutcome) requirement).getMergedOutcomeJob();
        setText(LabelUtils.getLabel(job));
      } else {
        // Other requirement types not yet supported
        setText(requirement.toString());
      }
    }

    updateParentUI();
  }
View Full Code Here

Examples of org.jbehave.core.annotations.AfterScenario.Outcome

            if (type == scenarioType) {
                if (stage == Stage.BEFORE) {
                    steps.add(createBeforeOrAfterStep(stage, method));
                }
                if (stage == Stage.AFTER) {
                    Outcome scenarioOutcome = scenarioOutcome(method, annotationClass);
                    for (Outcome outcome : outcomes) {
                        if (outcome.equals(scenarioOutcome)) {
                            steps.add(createBeforeOrAfterStep(stage, method, outcome));
                        }
                    }
View Full Code Here

Examples of org.jitterbit.integration.data.test.TestResult.Outcome

        }
        col.decorate(canvas);
    }

    private void layoutSelector(Grid col, JCheckBox cb) {
        Outcome outcome = (Outcome) cb.getClientProperty("outcome");
        KongaLabel label = OutcomeDecorator.createLabel(outcome);
        label.setLabelForButton(cb);
        BoxBuilder row = BoxBuilder.horizontal();
        row.addAllWithSpace(5, cb, label);
        col.add(row);
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.