hudson.plugins.im.bot
Class QueueCommand
java.lang.Object
hudson.plugins.im.bot.BotCommand
hudson.plugins.im.bot.QueueCommand
- All Implemented Interfaces:
- hudson.ExtensionPoint
@Extension
public class QueueCommand
- extends BotCommand
Queue command for the jabber bot.
- Author:
- Pascal Bleser
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Methods inherited from class hudson.plugins.im.bot.BotCommand |
all |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueueCommand
public QueueCommand()
getCommandNames
public java.util.Collection<java.lang.String> getCommandNames()
- Description copied from class:
BotCommand
- Obtains the name of the command. Single commands can register multiple aliases,
so this method returns a collection.
- Specified by:
getCommandNames in class BotCommand
- Returns:
- Can be empty but never null.
executeCommand
public void executeCommand(Bot bot,
IMChat chat,
IMMessage message,
Sender sender,
java.lang.String[] args)
throws IMException
- Description copied from class:
BotCommand
- Execute a command.
- Specified by:
executeCommand in class BotCommand
- Parameters:
bot - The bot for which this command runs. Never null.chat - the IMChat object, may be used to send reply messagesmessage - the original IMMessagesender - the command senderargs - arguments passed to the command, where args[0] is the command name itself
- Throws:
IMException - if anything goes wrong while communicating with the remote IM server
getHelp
public java.lang.String getHelp()
- Description copied from class:
BotCommand
- Return the command usage text.
- Specified by:
getHelp in class BotCommand
- Returns:
- the command usage text
Copyright © 2010. All Rights Reserved.