Examples of send()


Examples of com.sun.jini.test.spec.jeri.mux.util.PingMessage.send()

            e.printStackTrace();
            throw new TestException(e.getMessage(),e);
        }
                //Ping the server
        PingMessage pm = new PingMessage().setCookie((short)0x5544);
        pm.send(os);
        //Receive a ping ack from server and verify that the correct cookie
        //is included
        se = getServerEndpoint();
        service = new TestServiceImpl();
        exporter = new BasicJeriExporter(se,
View Full Code Here

Examples of com.sun.jini.test.spec.jeri.mux.util.ServerConnectionHeader.send()

                e.printStackTrace();
                throw new TestException(e.getMessage(),e);
            }
        //Send a ServerConnectionHeader
        ServerConnectionHeader sHeader = new ServerConnectionHeader();
        sHeader.send(os);
        //Verify that a properly formatted Data message with 100
        //data bytes is received
        DataMessage dm = new DataMessage();
        try {
            //verify that the open and eof flags are set on the data
View Full Code Here

Examples of com.sun.sgs.app.Channel.send()

  txnScheduler.runTask(new TestAbstractKernelRunnable() {
      public void run() {
    Channel channel = getChannel(channelName);
    dataService.removeObject(channel);
    try {
        channel.send(null, ByteBuffer.wrap(testMessage));
        fail("Expected IllegalStateException");
    } catch (IllegalStateException e) {
        System.err.println(e);
    }
      }
View Full Code Here

Examples of com.sun.sgs.app.ClientSession.send()

        ClientSession session = getSession();

        logger.log(Level.INFO, "Message from {0}", sessionName);

        // Echo message back to sender
        session.send(message);
    }

    /**
     * {@inheritDoc}
     * <p>
 
View Full Code Here

Examples of com.sun.sgs.client.ClientChannel.send()

        if (channelName.equalsIgnoreCase("<DIRECT>")) {
            send(text);
        } else {
            ClientChannel channel = channelsByName.get(channelName);
            try {
                channel.send(encodeString(text));
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
View Full Code Here

Examples of com.sun.sgs.client.simple.SimpleClient.send()

      assertFalse(listener.reconnecting);
      assertFalse(listener.reconnected);
      MessageBuffer msg =
    new MessageBuffer(MessageBuffer.getSize("Relocate") + 4);
      msg.putString("Relocate").putInt(newPort);
      client.send(ByteBuffer.wrap(msg.getBuffer()).asReadOnlyBuffer());
      synchronized (client) {
    client.wait(TIMEOUT);
      }
      assertTrue(listener.reconnecting);
      assertTrue(listener.reconnected);
View Full Code Here

Examples of com.taobao.metamorphosis.client.extension.spring.MetaqTemplate.send()

        final String topic = "meta-test";
        MetaqTemplate template = (MetaqTemplate) context.getBean("metaqTemplate");
        int count = 100;
        for (int i = 0; i < count; i++) {
            SendResult result =
                    template.send(MessageBuilder.withTopic(topic).withBody(new Trade(i, "test", i, "test")));
            assertTrue(result.isSuccess());
        }
        TradeMessageListener listener = (TradeMessageListener) context.getBean("messageListener");
        while (listener.counter.get() != count) {
            Thread.sleep(100);
View Full Code Here

Examples of com.typesafe.plugin.MailerAPI.send()

      MailerAPI email = play.Play.application().plugin(MailerPlugin.class).email();
      email.setFrom(mailFrom);
      email.setSubject(subject);
      email.setRecipient(toEmail);
      Logger.debug("Mail.sendMail: Mail will be sent to {}", toEmail);
      email.send(messageText, messageHtml);
    }
    }
}
View Full Code Here

Examples of com.uwyn.drone.core.Bot.send()

    Bot      bot = BotFactory.get(submission.getBot());
    Privmsg    msg = new Privmsg(submission.getTarget(), submission.getMessage());
   
    try
    {
      bot.send(msg);
    }
    catch (CoreException e)
    {
      throw new EngineException(e);
    }
View Full Code Here

Examples of com.uwyn.drone.core.Channel.send()

      {
        return;
      }
     
      // send the CTCP action message to the channel
      channel.send(Ctcp.escapeAction(message));
    }
  }
}
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.