com.devexperts.qd.tools
Class NetTest

java.lang.Object
  extended by com.devexperts.qd.tools.AbstractTool
      extended by com.devexperts.qd.tools.NetTest

@ToolSummary(info="Tests network throughput.",
             argString=" 
", arguments={" -- either \'p\' (producer) or \'c\' (consumer)","
-- address to connect (see @link{address})"}) public class NetTest
extends AbstractTool

Tool that is used to test network throughput. It works either in producer or in consumer mode. It creates one or more connections to specified adress and transmit randomly generated 'Quote' records over it and counts number of produced/received quotes.

See Also:
NetTestSide

Field Summary
 
Fields inherited from class com.devexperts.qd.tools.AbstractTool
options, useScheme
 
Constructor Summary
NetTest()
           
 
Method Summary
protected  void executeImpl(java.lang.String[] args)
          Executes this concrete tool.
protected  com.devexperts.qd.tools.Option[] getOptions()
          Returns array with all options used by this tool.
static void main(java.lang.String[] args)
           
 
Methods inherited from class com.devexperts.qd.tools.AbstractTool
execute, generateHelpSummary, mustWaitForeverAtEnd, noArguments, wrongNumberOfArguments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetTest

public NetTest()
Method Detail

getOptions

protected com.devexperts.qd.tools.Option[] getOptions()
Description copied from class: AbstractTool
Returns array with all options used by this tool.

Specified by:
getOptions in class AbstractTool
Returns:
array with all options used by this tool.

executeImpl

protected void executeImpl(java.lang.String[] args)
                    throws BadToolParametersException,
                           ToolInitializationException
Description copied from class: AbstractTool
Executes this concrete tool.

Specified by:
executeImpl in class AbstractTool
Parameters:
args - arguments
Throws:
BadToolParametersException - if arguments are invalid.
ToolInitializationException - if some error occured.

main

public static void main(java.lang.String[] args)