Add a "loadtest" command to nomulus tool

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=151034721
This commit is contained in:
mmuller 2017-03-23 11:56:35 -07:00 committed by Ben McIlwain
parent 59ce636bb2
commit 5ffb424682
6 changed files with 268 additions and 1 deletions

View file

@ -53,7 +53,7 @@ import org.joda.time.DateTime;
* least one must be specified in order for load testing to do anything.
*/
@Action(
path = "/_dr/loadtest",
path = LoadTestAction.PATH,
method = Action.Method.POST,
automaticallyPrintOk = true)
public class LoadTestAction implements Runnable {
@ -71,6 +71,8 @@ public class LoadTestAction implements Runnable {
private static final Random random = new Random();
public static final String PATH = "/_dr/loadtest";
/** The client identifier of the registrar to use for load testing. */
@Inject
@Parameter("loadtestClientId")