Examples of messageReceived()


Examples of com.opengamma.engine.calcnode.stats.FunctionInvocationStatisticsReceiver.messageReceived()

      @Override
      public void send(final FudgeMsg message) {
        messages.incrementAndGet ();
        s_logger.debug ("Received {}", message);
        receiver.messageReceived(getFudgeContext (), new FudgeMsgEnvelope (message));
      }
     
    });
    sender.setUpdatePeriod(Duration.ofSeconds(1));
    long t = System.nanoTime ();
View Full Code Here

Examples of com.opengamma.transport.ByteArrayMessageReceiver.messageReceived()

    }
   
    String correlationId = new String(correlationIdBytes, Charsets.UTF_8);
    ByteArrayMessageReceiver receiver = _correlationId2MessageReceiver.remove(correlationId);
    if (receiver != null) {
      receiver.messageReceived(message.getBody());     
    } else {
      s_logger.warn("No receiver for message: {}", message);     
    }
  }
View Full Code Here

Examples of com.opengamma.transport.FudgeMessageReceiver.messageReceived()

        }
      }

      private void dispatch(final FudgeMessageReceiver receiver, final FudgeMsgEnvelope envelope) {
        try {
          receiver.messageReceived(_fudgeContext, envelope);
        } catch (Exception e) {
          s_logger.warn("Unable to dispatch message to receiver", e);
        }
      }
View Full Code Here

Examples of de.bamberg.ha.api.remote.Connector.messageReceived()

    Connector connector=createConnector();
    JUnitMessageListener l1=new JUnitMessageListener();
    JUnitMessageListener l2=new JUnitMessageListener();
    connector.addMessageListener(l1);
    connector.addMessageListener(l2);
    connector.messageReceived(new MessageEvent(HELLO_WORLD));
    assertEquals(HELLO_WORLD,l1.getMessage());
    assertEquals(HELLO_WORLD,l2.getMessage());
   
  }
 
View Full Code Here

Examples of muduo.rpc.RpcChannel.messageReceived()

        RpcMessage response = RpcMessage.newBuilder()
                .setType(MessageType.RESPONSE)
                .setId(1)
                .setResponse(sudokuResponse.toByteString())
                .build();
        channel.messageReceived(null, new UpstreamMessageEvent(mockChannel, response, null));
        assertEquals(sudokuResponse, gotResponse);
    }

    SudokuRequest gotRequest;
View Full Code Here

Examples of muduo.rpc.RpcChannel.messageReceived()

                .setService(SudokuService.getDescriptor().getFullName())
                .setMethod("Solve")
                .setRequest(sudokuRequest.toByteString())
                .build();

        channel.messageReceived(null, new UpstreamMessageEvent(mockChannel, request, null));
        assertEquals(sudokuRequest, gotRequest);

        RpcMessage response = RpcMessage.newBuilder()
                .setType(MessageType.RESPONSE)
                .setId(2)
View Full Code Here

Examples of org.apache.catalina.cluster.MessageListener.messageReceived()

                for ( int i=0; i<clusterListeners.size(); i++ ) {
                    MessageListener listener = (MessageListener)clusterListeners.elementAt(i);
                    if ( myobj!=null &&
                         myobj instanceof ClusterMessage &&
                         listener.accept((ClusterMessage)myobj) ) {
                        listener.messageReceived((ClusterMessage)myobj);
                    }//end if
                   
                }//for
            }//end if
               
View Full Code Here

Examples of org.apache.catalina.cluster.MessageListener.messageReceived()

        if (message != null) {
            for (Iterator iter = clusterListeners.iterator(); iter.hasNext();) {
                MessageListener listener = (MessageListener) iter.next();
                if (listener.accept(message)) {
                    accepted = true;
                    listener.messageReceived(message);
                }
            }
        }
        if (!accepted && log.isDebugEnabled()) {
            if (notifyLifecycleListenerOnFailure) {
View Full Code Here

Examples of org.apache.catalina.cluster.MessageListener.messageReceived()

                for (int i = 0; i < clusterListeners.size(); i++) {
                    MessageListener listener = (MessageListener) clusterListeners
                            .elementAt(i);
                    if (myobj != null && myobj instanceof ClusterMessage
                            && listener.accept((ClusterMessage) myobj)) {
                      listener.messageReceived((ClusterMessage) myobj);
                    } else
                        if(log.isDebugEnabled())
                            log.debug("Message " + myobj.toString()
                                    + " from type " + myobj.getClass().getName()
                                    + " transfered but no listener registered");
View Full Code Here

Examples of org.apache.catalina.ha.ClusterListener.messageReceived()

            for (Iterator<ClusterListener> iter = clusterListeners.iterator();
                    iter.hasNext();) {
                ClusterListener listener = iter.next();
                if (listener.accept(message)) {
                    accepted = true;
                    listener.messageReceived(message);
                }
            }
            if (!accepted && notifyLifecycleListenerOnFailure) {
                Member dest = message.getAddress();
                // Notify our interested LifecycleListeners
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.