com.devexperts.qd.tools
Class NetTest
java.lang.Object
com.devexperts.qd.tools.AbstractTool
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NetTest
public NetTest()
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)