org.exolab.jmscts.tools.receive
Class Main
java.lang.Object
|
+--org.exolab.jmscts.tools.MessagingCommand
|
+--org.exolab.jmscts.tools.receive.Main
- public class Main
- extends MessagingCommand
Invokes the Receive
tool
- Version:
- $Revision: 1.2 $ $Date: 2004/02/03 21:52:12 $
- Author:
- Tim Anderson
Field Summary |
protected static java.lang.String |
RECEIPT
The short name for the receipt type argument |
protected static java.lang.String |
RECEIPT_LONG
The long name for the receipt type argument |
protected static java.lang.String |
SELECTOR
The short name for the selector argument |
protected static java.lang.String |
SELECTOR_LONG
The long name for the selector argument |
Constructor Summary |
Main()
|
Method Summary |
protected MessagingTool |
create()
Creates the messaging tool |
protected org.apache.commons.cli.Options |
getOptions()
Returns the command line options |
protected java.lang.String |
getUsage()
Returns the command usage |
static void |
main(java.lang.String[] args)
Main line |
protected void |
parse(MessagingTool tool,
org.apache.commons.cli.CommandLine commands)
Parse the command line, populating the tool |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RECEIPT
protected static final java.lang.String RECEIPT
- The short name for the receipt type argument
RECEIPT_LONG
protected static final java.lang.String RECEIPT_LONG
- The long name for the receipt type argument
SELECTOR
protected static final java.lang.String SELECTOR
- The short name for the selector argument
SELECTOR_LONG
protected static final java.lang.String SELECTOR_LONG
- The long name for the selector argument
Main
public Main()
create
protected MessagingTool create()
- Creates the messaging tool
- Overrides:
create
in class MessagingCommand
- Returns:
- the messaging tool
getOptions
protected org.apache.commons.cli.Options getOptions()
- Returns the command line options
- Overrides:
getOptions
in class MessagingCommand
- Returns:
- the command line options
getUsage
protected java.lang.String getUsage()
- Returns the command usage
- Overrides:
getUsage
in class MessagingCommand
- Returns:
- the command usage
parse
protected void parse(MessagingTool tool,
org.apache.commons.cli.CommandLine commands)
throws org.apache.commons.cli.ParseException
- Parse the command line, populating the tool
- Overrides:
parse
in class MessagingCommand
- Parameters:
tool
- the messaging toolcommands
- the command line- Throws:
org.apache.commons.cli.ParseException
- if the command line cannot be parsed
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Main line
- Parameters:
args
- command line arguments- Throws:
java.lang.Exception
- for any error
Copyright © 2001-2004 JMS CTS Team. All Rights Reserved.