Examples of send()


Examples of com.mossle.api.msg.MsgConnector.send()

    }

    public void sendSiteMessage(UserDTO userDto, String subject, String content) {
        MsgConnector msgConnector = ApplicationContextHelper
                .getBean(MsgConnector.class);
        msgConnector.send(subject, content, userDto.getId(), null);
    }

    public String getInitiator(UserConnector userConnector,
            DelegateTask delegateTask) {
        return userConnector.findById(
View Full Code Here

Examples of com.netflix.suro.client.SuroClient.send()

            clientProperties.setProperty(ClientConfig.CLIENT_TYPE, "sync");

            SuroClient client = new SuroClient(clientProperties);

            for (int i = 0; i < 10; ++i) {
                client.send(new Message("topic1", Integer.toString(i).getBytes()));
            }
            for (int i = 0; i < 5; ++i) {
                client.send(new Message("topic2", Integer.toString(i).getBytes()));
            }
            for (int i = 0; i < 20; ++i) {
View Full Code Here

Examples of com.nokia.dempsy.messagetransport.Sender.send()

         while(keepGoing.get() && !justGetOut)
         {
            try
            {
               Sender sender = senderFactory.getSender(destination);
               sender.send( ("Hello from " + threadInstance).getBytes());
               sentMessageCount.incrementAndGet();
            }
            catch(MessageTransportException e)
            {
               sendFailed.set(true);
View Full Code Here

Examples of com.opengamma.transport.FudgeMessageSender.send()

  private void sendMessage(final RemoteCalcNodeMessage message) {
    final FudgeMessageSender sender = getConnection().getFudgeMessageSender();
    final FudgeSerializer serializer = new FudgeSerializer(sender.getFudgeContext());
    final FudgeMsg msg = FudgeSerializer.addClassHeader(serializer.objectToFudgeMsg(message), message.getClass(), RemoteCalcNodeMessage.class);
    s_logger.debug("Sending message ({} fields) to {}", msg.getNumFields(), _connection);
    sender.send(msg);
  }

  protected void sendCapabilities() {
    final Ready ready = new Ready(getTotalNodeCount(), getHostId());
    // TODO any other capabilities to add
View Full Code Here

Examples of com.opengamma.transport.jms.JmsByteArrayMessageSender.send()

  protected void handleEntityChanged(final ChangeEvent event) {
    final FudgeMsgEnvelope msg = OpenGammaFudgeContext.getInstance().toFudgeMsg(event);
    s_logger.debug("Sending change message {}", msg);
    final byte[] fudgeMsg = OpenGammaFudgeContext.getInstance().toByteArray(msg.getMessage());
    final JmsByteArrayMessageSender messageSender = new JmsByteArrayMessageSender(getJmsConnector().getTopicName(), getJmsConnector().getJmsTemplateTopic());
    messageSender.send(fudgeMsg);
  }

  @Override
  public void onMessage(Message message) {
    try {
View Full Code Here

Examples of com.openmashupos.socket.client.Socket.send()

              Debug.log(1, "hey I received: " + data);
            }
            public void onConnected()
            {
              Debug.log(1, "Connected to 127.0.0.1:100!");
              socketToApp1.send("Hello Mr. 127.0.0.1:100");
            }
            public void onDisconnected(String message)
            {
              Window.alert("Discunnected : "+ message );
            }
View Full Code Here

Examples of com.ourlinc.activity.Mail.send()

    // 发送邮件
    boolean flag = false;
    Mail mail = new Mail(email, password);
    try {
      if ("add".equals(op)) {
        mail.send(
            email,
            toAddresses,
            null,
            "活动通知",
            EmailTemplates.buildAddContent(act.getTime(),
View Full Code Here

Examples of com.ourlinc.helloworld.model.Mail.send()

    // 发送邮件
    boolean flag = false;
    Mail mail = new Mail(email, password);
    try {
      if ("add".equals(op)) {
        mail.send(email, toAddresses, null, "活动通知", EmailTemplates
            .buildAddContent(act.getTime(), act.getTitle(), act
                .getId()));
      } else if ("edit".equals(op)) {
        mail.send(email, toAddresses, null, "活动修改通知", EmailTemplates
            .buildEditContent(act.getTime(), act.getTitle(),
View Full Code Here

Examples of com.peterhi.obsolete.Endpoint.send()

    Endpoint ep = new Endpoint();
    ep.start();
   
    SocketAddress address = new InetSocketAddress(InetAddress.getLocalHost(), 22222);
    byte[] data = "Hello World!".getBytes();
    ep.send(address, data, false);
  }
}
View Full Code Here

Examples of com.peterhi.working.EndpointImpl.send()

  public static void main(String[] args) throws Exception {
    EndpointImpl endpoint = new EndpointImpl(new DatagramSocket());
    SocketAddress address = new InetSocketAddress(InetAddress.getByName("www.peterhi.com"), 22222);
//    SocketAddress address = new InetSocketAddress(InetAddress.getLocalHost(), 22222);
    endpoint.run();
    System.out.println("unreliable sent: " + endpoint.send(address, new byte[512], 0, 512, false));
    long justnow = System.currentTimeMillis();
    System.out.println("reliable sent: " + endpoint.send(address, new byte[507 * 65536], 0, 507 * 65536, true));
    long now = System.currentTimeMillis();
    System.out.println("time = " + (now - justnow));
    System.exit(0);
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.