Examples of sendMessage()


Examples of net.sourceforge.peers.sip.transport.MessageSender.sendMessage()

            return;
        }
        try {
            MessageSender sender = transportManager.createClientTransport(
                    ack, inetAddress, port, transport);
            sender.sendMessage(ack);
        } catch (IOException e) {
            logger.error("input/output error", e);
        }
       
       
View Full Code Here

Examples of net.sphene.goim.rcp.ui.chat.GOIMChatObject.sendMessage()

        } else {
          GOIMChatObject chat = chatIds.get(jabberId);
          if(chat != null) {
            Message message = chat.createMessage();
            message.setBody(msg);
            chat.sendMessage(message);
          }
        }
      }
    }
  }
View Full Code Here

Examples of net.suberic.pooka.OutgoingMailServer.sendMessage()

                    if (action == SendFailedDialog.S_SESSION_DEFAULT) {
                      profile.setTemporaryMailServer(newServer);
                    } else if (action == SendFailedDialog.S_CHANGE_DEFAULT) {
                      Pooka.setProperty(profile.getUserProperty() + ".mailServer", newServer.getItemID());
                    }
                    newServer.sendMessage(getNewMessageInfo());
                  }
                } else if (sfd.getSaveToOutbox()) {
                  try {
                    mailServer.saveToOutbox(getNewMessageInfo());
                  } catch (OperationCancelledException oce) {
View Full Code Here

Examples of network.NetworkClient.sendMessage()

   
    @Override
    public void run()
    {
        NetworkClient sender = new NetworkClient(message.getReceiverIP(), Constants.PORT_TCP);
        if (!sender.sendMessage(message))
        {
            sendErrorMessage(message);
            StatusManager.updateAnotherHostStatus(Host.findHostByIP(message.getReceiverIP()), false);
        }
    }
View Full Code Here

Examples of org.apache.axis2.clustering.ClusteringAgent.sendMessage()

        ClusteringAgent clusteringAgent = AutoscalerTaskDSHolder.getInstance().getAgent();
        if (clusteringAgent != null) {
            RequestTokenReplicationCommand msg = new RequestTokenReplicationCommand();
            msg.setAppDomainContexts(appDomainContexts);
            try {
                clusteringAgent.sendMessage(msg, true);
                System.setProperty(AutoscaleConstants.IS_TOUCHED, "false");
                log.debug("Request token replication messages sent out successfully!!");

            } catch (ClusteringFault e) {
                log.error("Failed to send the request token replication message.", e);
View Full Code Here

Examples of org.apache.axis2.transport.testkit.axis2.client.AxisAsyncTestClient.sendMessage()

                    AxisMessage message = new AxisMessage();
                    message.setMessageType(SOAP11Constants.SOAP_11_CONTENT_TYPE);
                    SOAPFactory factory = OMAbstractFactory.getSOAP11Factory();
                    SOAPEnvelope envelope = factory.getDefaultEnvelope();
                    message.setEnvelope(envelope);
                    client.sendMessage(options, new ContentType(message.getMessageType()), message);
                }
                if (preloadMessages) {
                    endpointResourceSet.setUp();
                    endpointResourceSets[i] = endpointResourceSet;
                }
View Full Code Here

Examples of org.apache.blur.agent.notifications.Mailer.sendMessage()

    server.start();
   
    Properties props = new Properties();
    props.setProperty("mail.enabled", "false");
    Mailer mailer = new Mailer(props);
    mailer.sendMessage("Test Message Subject", "Test Message Body");
   
    server.stop();
    assertTrue(server.getMessages().size() == 0);
  }
 
View Full Code Here

Examples of org.apache.catalina.tribes.transport.MultiPointSender.sendMessage()

            if (sender == null) {
                ChannelException cx = new ChannelException("Unable to retrieve a data sender, time out error.");
                for (int i = 0; i < destination.length; i++) cx.addFaultyMember(destination[i], new NullPointerException("Unable to retrieve a sender from the sender pool"));
                throw cx;
            } else {
                sender.sendMessage(destination, msg);
            }
            sender.keepalive();
        }finally {
            if ( sender != null ) returnSender(sender);
        }
View Full Code Here

Examples of org.apache.cayenne.remote.ClientConnection.sendMessage()

        inflated.setPersistenceState(PersistenceState.COMMITTED);
        inflated.setObjectId(gid);
        inflated.setGlobalAttribute1("abc");

        ClientConnection connection = mock(ClientConnection.class);
        when(connection.sendMessage((ClientMessage) any())).thenAnswer(
                new Answer<Object>() {

                    public Object answer(InvocationOnMock invocation) {
                        ClientMessage arg = (ClientMessage) invocation.getArguments()[0];
View Full Code Here

Examples of org.apache.cloudstack.engine.subsystem.api.storage.EndPoint.sendMessage()

                    if (ssAhost == null) {
                        s_logger.debug("There is no secondary storage VM for secondary storage host " + store.getName());
                        continue;
                    }
                    long storeId = store.getId();
                    Answer answer = ssAhost.sendMessage(command);
                    if (answer != null && answer.getResult()) {
                        storageStats.put(storeId, (StorageStats)answer);
                        s_logger.trace("HostId: "+storeId+ " Used: " + ((StorageStats)answer).getByteUsed() + " Total Available: " + ((StorageStats)answer).getCapacityBytes());
                    }
                }
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.