Examples of sendMessage()


Examples of org.beangle.notification.Notifier.sendMessage()

  @Test
  public void testSendMessage() throws Exception {
    Notifier notifier = new ConsoleNotifier();
    SimpleMessage context = new SimpleMessage();
    context.setText("hello world");
    notifier.sendMessage(context);
  }
}
View Full Code Here

Examples of org.bukkit.command.CommandSender.sendMessage()

        else return false;
    }
   
    public static void sendMessage(String message) {
        CommandSender sender = CommandManager.getSender();
        sender.sendMessage(message);
    }
}
View Full Code Here

Examples of org.bukkit.command.ConsoleCommandSender.sendMessage()

            if (commandName.equals("bb")) {
                ConsoleCommandSender console = (ConsoleCommandSender) sender;
                if (args.length == 0) {
                    return false;
                } else if (args[0].equalsIgnoreCase("version")) {
                    console.sendMessage("You're running: " + ChatColor.AQUA.toString() + BigBrother.name + " " + BigBrother.version);
                } else if (args[0].equalsIgnoreCase("update")) {
                    Updatr.updateAvailable(console);
                }
                return true;
            }
View Full Code Here

Examples of org.bukkit.entity.Player.sendMessage()

   
    @EventHandler
    public void onPlayerJoin(PlayerJoinEvent e){
      Player player = e.getPlayer();
      if (result.equals(UpdateResult.UPDATE_AVAILABLE) && player.hasPermission("cex.update.alert")){
        player.sendMessage(ChatColor.AQUA + "A new version of CommandsEX is available!");
          //player.sendMessage(ChatColor.AQUA + getLatestVersionString());
          player.sendMessage(ChatColor.AQUA + "http://http://dev.bukkit.org/server-mods/commandsex/");
      }
    }
   
View Full Code Here

Examples of org.codehaus.activemq.itest.ejb.MessengerObject.sendMessage()

        InitialContext ctx = createInitialContext();
        MessengerHome home = (MessengerHome) ctx.lookup(MESSENGERBEAN_JNDI);
        MessengerObject messenger = home.create();

        String msg1 = "Hello World";
        messenger.sendMessage(msg1, REPS);
        int received = messenger.receiveMessage(10000, REPS);
        assertEquals(REPS, received);

    }
View Full Code Here

Examples of org.cspoker.server.embedded.chat.room.TableChatRoom.sendMessage()

    serverChatRoom.sendMessage(player, message);
  }

  public void sendTableMessage(long tableId,Player player, String message) {
    TableChatRoom chatroom = tables.get(new TableId(tableId));
    chatroom.sendMessage(player, message);
  }
  public TableChatRoom addTableChatRoom(PokerTable table){
    return tables.put(table.getTableId(),new TableChatRoom(table));
  }
  public TableChatRoom getTableChatRoom(TableId tableId){
View Full Code Here

Examples of org.dmd.dmp.server.DmpPipeIF.sendMessage()

    {
      logger.trace("Sending message...");
     
        DmpPipeIF pipe = pipeRef.get();
        if (pipe == null) return;
        pipe.sendMessage(msg);
    }

  ///////////////////////////////////////////////////////////////////////////
  // DmpEventHandlerIF implementation
View Full Code Here

Examples of org.drools.grid.io.Conversation.sendMessage()

                                                                       8000 ),
                                                                       "r1" );

        BlockingMessageResponseHandler blockHandler = new BlockingMessageResponseHandler();

        cv.sendMessage( "hello",
                        blockHandler );

        Message msg = blockHandler.getMessage(100, 5000 );
        System.out.println( msg.getBody() );
View Full Code Here

Examples of org.eclipse.ecf.core.sharedobject.ISharedObjectContext.sendMessage()

     
      subscribers.remove(requestorID);
      if (subscribers.isEmpty()) {
        ISharedObjectContext ctx = config.getContext();
        try {
          ctx.sendMessage(config.getHomeContainerID(), new UnsubscribeMessage());
        } catch (IOException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        }
       
View Full Code Here

Examples of org.eclipse.ecf.datashare.IChannel.sendMessage()

  }

  public void testSendMessage() throws Exception {
    final IChannel ch0 = getChannelContainer(0).getChannel(channelID);
    ID target1 = getClient(1).getConnectedID();
    ch0.sendMessage(target1, new String("hello").getBytes());
    sleep(SLEEPTIME);
  }

  public void testBiSendMessage() throws Exception {
    final IChannel ch0 = getChannelContainer(0).getChannel(channelID);
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.