mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02:00
Add a "loadtest" command to nomulus tool
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=151034721
This commit is contained in:
parent
59ce636bb2
commit
5ffb424682
6 changed files with 268 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue