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 address 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
 
Constructor Summary
NetTest()
           
 
Method Summary
protected  void executeImpl(java.lang.String[] args)
          Executes this concrete tool.
protected  Option[] getOptions()
          Returns array with all options used by this tool.
static void main(java.lang.String[] args)
           
 boolean mustWaitForeverAtEnd()
           
 
Methods inherited from class com.devexperts.qd.tools.AbstractTool
closeOnExit, execute, generateHelpSummary, mustWaitWhileActive, 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 Option[] getOptions()
Description copied from class: AbstractTool
Returns array with all options used by this tool.

Overrides:
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 occurred.

mustWaitForeverAtEnd

public boolean mustWaitForeverAtEnd()
Overrides:
mustWaitForeverAtEnd in class AbstractTool

main

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