org.exolab.jmscts.tools.send
Class Main

java.lang.Object
  |
  +--org.exolab.jmscts.tools.MessagingCommand
        |
        +--org.exolab.jmscts.tools.send.Main

public class Main
extends MessagingCommand

Invokes the Receive tool

Version:
$Revision: 1.2 $ $Date: 2004/02/03 21:52:13 $
Author:
Tim Anderson

Fields inherited from class org.exolab.jmscts.tools.MessagingCommand
CONFIG, CONFIG_LONG, COUNT, COUNT_LONG, DESTINATION, DESTINATION_LONG, FACTORY, FACTORY_LONG, VERBOSE, VERBOSE_LONG
 
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 org.exolab.jmscts.tools.MessagingCommand
getHome, invoke, usage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Main

public Main()
Method Detail

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 tool
commands - 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.