Examples of message()


Examples of kyotocabinet.Error.message()

  logger.debug("Using kyoto path {}", kyotoPath);
        if (!db.open(kyotoPath, DB.OWRITER | DB.OCREATE)) {
            // error occurred while opening, throw error
      Error error = db.error();
            db = null;
            throw new DataStoreFatalException("Unable to open " + toString() + " @ " + path + " {code=" + error.code() + ", message=" + error.message() + "}");
        }

        if (this.synchronizeInterval < 0) {
            logger.debug("Automatic sync disabled {synchronizeInterval < 0} for " + toString());
        } else if (this.synchronizeInterval == 0) {
View Full Code Here

Examples of net.canarymod.api.entity.living.humanoid.Player.message()

    private void player(Player player, String[] args) {
        if (args.length == 2) {
            Player target = Canary.getServer().matchPlayer(args[1]);
            if (target != null) {
                target.setHome(player.getLocation());
                target.message(Colors.YELLOW + "Your home has been set by " + player.getName());
                player.message(Colors.YELLOW + target.getName() + "'s  home has been set.");
            }
            else {
                player.notice(Translator.translateAndFormat("unknown player", args[1]));
            }
View Full Code Here

Examples of net.tomp2p.message.Decoder.message()

    Decoder d = new Decoder(signatureFactory);
    final int readerBefore = buf.buffer().readerIndex();
    d.decodeHeader(buf.buffer(), recipient, sender);
    final boolean donePayload = d.decodePayload(buf.buffer());
    d.decodeSignature(buf.buffer(), readerBefore, donePayload);
    return d.message();
  }
 
  /**
   * Calculates the size of the message
   */
 
View Full Code Here

Examples of nl.clockwork.mule.ebms.service.EbMSPortType.message()

      //get transportreceiver CPAUtils.
     
      String url = "http://localhost:63081/greeter";
      ((BindingProvider)ebMS).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,url);

      ebMS.message(msg.getMessageHeader(),msg.getSyncReply(),msg.getMessageOrder(),msg.getAckRequested(),msg.getManifest());
    }
    return message;
  }

  public void setEbMSDAO(EbMSDAO ebMSDAO)
View Full Code Here

Examples of nu.fw.jeti.events.MessageListener.message()

  private void message(Message message)
  {
    MessageListener messageListener = backend.getMessageListener(message.getFrom());
    if(messageListener != null)
    {
      messageListener.message(message);
       return;
    }
   
    if (message.getBody() != null || message.getType().equals("groupchat"))
    {
View Full Code Here

Examples of org.apache.camel.component.mock.MockEndpoint.message()

    public void testForwardingAMessageAcrossJMSKeepingCustomJMSHeaders() throws Exception {
        MockEndpoint resultEndpoint = resolveMandatoryEndpoint("mock:result", MockEndpoint.class);

        resultEndpoint.expectedBodiesReceived(expectedBody);
        AssertionClause firstMessageExpectations = resultEndpoint.message(0);
        firstMessageExpectations.header("cheese").isEqualTo(123);
        firstMessageExpectations.header("JMSReplyTo").isEqualTo(replyQueue);
        firstMessageExpectations.header("JMSCorrelationID").isEqualTo(correlationID);
        firstMessageExpectations.header("JMSType").isEqualTo(messageType);
View Full Code Here

Examples of org.apache.camel.component.mock.MockEndpoint.message()

    public void testMarshalAndUnmarshalAgeView() throws Exception {
        TestPojoView in = new TestPojoView();

        MockEndpoint mock = getMockEndpoint("mock:reverseAgeView");
        mock.expectedMessageCount(1);
        mock.message(0).body().isInstanceOf(TestPojoView.class);
        mock.message(0).body().equals(in);

        Object marshalled = template.requestBody("direct:inAgeView", in);
        String marshalledAsString = context.getTypeConverter().convertTo(String.class, marshalled);
        assertEquals("{\"age\":30,\"height\":190}", marshalledAsString);
View Full Code Here

Examples of org.apache.camel.component.mock.MockEndpoint.message()

        TestPojoView in = new TestPojoView();

        MockEndpoint mock = getMockEndpoint("mock:reverseAgeView");
        mock.expectedMessageCount(1);
        mock.message(0).body().isInstanceOf(TestPojoView.class);
        mock.message(0).body().equals(in);

        Object marshalled = template.requestBody("direct:inAgeView", in);
        String marshalledAsString = context.getTypeConverter().convertTo(String.class, marshalled);
        assertEquals("{\"age\":30,\"height\":190}", marshalledAsString);
View Full Code Here

Examples of org.apache.etch.bindings.java.support.Mailbox.message()

      //Log.report( "MailboxManager.recv", "msg", msg, "mb", mb );
      if (mb != null)
      {
        try
        {
          return mb.message( sender, msg );
        }
        catch ( InterruptedException e )
        {
          // timeout or mailbox closed - fall through
        }
View Full Code Here

Examples of org.apache.helix.PropertyKey.Builder.message()

      // TODO: removeProperty returns boolean
      accessor.removeProperty(keyBuilder.controllerMessage(message.getMsgId()));
    }
    else
    {
      accessor.removeProperty(keyBuilder.message(_manager.getInstanceName(),
                                                 message.getMsgId()));
    }
  }

  private void sendReply(HelixDataAccessor accessor,
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.