Examples of handleMessage()


Examples of org.apache.helix.messaging.handling.MessageHandler.handleMessage()

    if (handler == null) {
      throw new HelixException("Task message " + taskMessage.getMsgType()
          + " handler not found, task id " + _partitionName);
    }
    // Invoke the internal handler to complete the task
    handler.handleMessage();
    logger.info(_partitionName + " onBecomeCompletedFromOffline completed");
  }

  @Transition(to = "OFFLINE", from = "COMPLETED")
  public void onBecomeOfflineFromCompleted(Message message, NotificationContext context) {
View Full Code Here

Examples of org.apache.servicemix.soap.api.Interceptor.handleMessage()

            while (iterator.hasNext()) {
                Interceptor currentInterceptor = iterator.next();
                if (LOG.isDebugEnabled()) {
                    LOG.debug("Invoking handleMessage on interceptor " + currentInterceptor.getId());
                }
                currentInterceptor.handleMessage(message);
            }
        } catch (RuntimeException ex) {
            if (LOG.isInfoEnabled()) {
                LOG.info("Interceptor has thrown exception, unwinding now", ex);
            }
View Full Code Here

Examples of org.apache.servicemix.soap.api.Interceptor.handleMessage()

        message.put(JbiInInterceptor.OPERATION_MEP, JbiConstants.IN_ONLY);
        message.put(MessageExchangeFactory.class, new MockExchangeFactory());
        message.setContent(Source.class, new StreamSource(new StringReader("<hello/>")));
        message.getTransportHeaders().put("Content-Type", "text/xml");
       
        interceptor.handleMessage(message);
       
        MessageExchange me = message.getContent(MessageExchange.class);
        assertNotNull(me);
        assertTrue(me instanceof InOnly);
        NormalizedMessage nm = me.getMessage("in");
View Full Code Here

Examples of org.aspectj.bridge.CountingMessageHandler.handleMessage()

    }

    String message = parser.getOtherMessages(true);
    if (null != message) {
      IMessage m = new Message(message, IMessage.ERROR, null, location);
      handler.handleMessage(m);
    }

    // always force model generation in AJDE
    config.setGenerateModelMode(true);
    // always be in incremental mode in AJDE
View Full Code Here

Examples of org.aspectj.bridge.IMessageHandler.handleMessage()

    if (deferredAspectAttribute != null) {
      // we can finally process the aspect and its associated perclause...
      perClause = deferredAspectAttribute.reifyFromAtAspectJ(this.getResolvedTypeX());
    }
    if (isAspect() && !Modifier.isAbstract(getModifiers()) && isGeneric()) {
      msgHandler.handleMessage(MessageUtil.error("The generic aspect '" + getResolvedTypeX().getName()
          + "' must be declared abstract", getResolvedTypeX().getSourceLocation()));
    }

  }
View Full Code Here

Examples of org.aspectj.bridge.IMessageHolder.handleMessage()

      run(args, holder);
      long etime = System.currentTimeMillis();
      if (timers) {
        System.out.println("Compiler took " + (etime - stime) + "ms");
      }
      holder.handleMessage(MessageUtil.info("Compiler took " + (etime - stime) + "ms"));
      // uncomment next line to pause at end (keeps jconsole alive!)
      // try { System.in.read(); } catch (Exception e) {}
    } catch (OutOfMemoryError outOfMemory) {
      IMessage outOfMemoryMessage = new Message(OUT_OF_MEMORY_MSG, null, true);
      holder.handleMessage(outOfMemoryMessage);
View Full Code Here

Examples of org.aspectj.bridge.IMessageHolder.handleMessage()

      holder.handleMessage(MessageUtil.info("Compiler took " + (etime - stime) + "ms"));
      // uncomment next line to pause at end (keeps jconsole alive!)
      // try { System.in.read(); } catch (Exception e) {}
    } catch (OutOfMemoryError outOfMemory) {
      IMessage outOfMemoryMessage = new Message(OUT_OF_MEMORY_MSG, null, true);
      holder.handleMessage(outOfMemoryMessage);
      systemExit(holder); // we can't reasonably continue from this point.
    } finally {
      CompilationAndWeavingContext.reset();
      Dump.reset();
    }
View Full Code Here

Examples of org.jboss.jms.client.container.ClientConsumer.handleMessage()

            throw new IllegalStateException(this + " callback handler not found, message arrived after consumer is closed.");
         }

         try
         {
            handler.handleMessage(dr, this);
         }
         catch (Exception e)
         {
            log.error("Failed to handle message", e);
            throw new HandleCallbackException(e.getMessage(), e);
View Full Code Here

Examples of org.jboss.jms.client.container.ClientConsumer.handleMessage()

            throw new IllegalStateException(this + " callback handler not found, message arrived after consumer is closed.");
         }

         try
         {
            handler.handleMessage(dr);
         }
         catch (Exception e)
         {
            log.error("Failed to handle message", e);
            throw new HandleCallbackException(e.getMessage(), e);
View Full Code Here

Examples of org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage()

      BindingExt binding = (BindingExt)bindingProvider.getBinding();
      HandlerChainExecutor executor = new HandlerChainExecutor(epMetaData, binding.getHandlerChain(type), false);
      executorMap.put(type, executor);

      MessageContext msgContext = (MessageContext)MessageContextAssociation.peekMessageContext();
      return executor.handleMessage(msgContext);
   }

   private boolean callResponseHandlerChain(QName portName, HandlerType type)
   {
      MessageContext msgContext = (MessageContext)MessageContextAssociation.peekMessageContext();
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.