public class Bench extends Command
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Bench.BenchData |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.concurrent.ExecutorService |
executor |
protected java.util.concurrent.ScheduledFuture<?> |
timer |
| Constructor and Description |
|---|
Bench() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doRequest(services.moleculer.ServiceBroker broker,
Bench.BenchData data) |
java.lang.String |
getDescription() |
int |
getNumberOfRequiredParameters() |
java.lang.String |
getUsage() |
protected void |
handleResponse(services.moleculer.ServiceBroker broker,
Bench.BenchData data,
long startTime,
java.lang.Throwable cause) |
void |
onCommand(services.moleculer.ServiceBroker broker,
java.io.PrintWriter out,
java.lang.String[] parameters) |
protected void |
printResult(Bench.BenchData data) |
getPayload, getPayload, option, parseFlags, parseFlags, printCharsprotected java.util.concurrent.ScheduledFuture<?> timer
protected java.util.concurrent.ExecutorService executor
public java.lang.String getDescription()
getDescription in class Commandpublic int getNumberOfRequiredParameters()
getNumberOfRequiredParameters in class Commandpublic void onCommand(services.moleculer.ServiceBroker broker,
java.io.PrintWriter out,
java.lang.String[] parameters)
throws java.lang.Exception
protected void doRequest(services.moleculer.ServiceBroker broker,
Bench.BenchData data)
protected void handleResponse(services.moleculer.ServiceBroker broker,
Bench.BenchData data,
long startTime,
java.lang.Throwable cause)
protected void printResult(Bench.BenchData data)