public class HttpStressTest
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
protected class |
HttpStressTest.Requestor
Inner class that handles server requests in a background thread.
|
Modifier and Type | Field and Description |
---|---|
protected static java.text.DecimalFormat |
FMT_TIME
The formatter for a request's elapsed time.
|
protected java.lang.String |
ivTestURL
The URL for test requests.
|
private static long |
serialVersionUID
The class' serialization version id.
|
Constructor and Description |
---|
HttpStressTest(java.lang.String testurl)
Constructs a new stress test instance.
|
Modifier and Type | Method and Description |
---|---|
private void |
doRequests(int count)
Performs the given number of server requests.
|
static void |
main(java.lang.String[] args)
The main entry point for when the class is started from a command line.
|
private void |
noSSLVerification()
Disables SSL certificate and host name verification.
|
private static final long serialVersionUID
protected static final java.text.DecimalFormat FMT_TIME
protected java.lang.String ivTestURL
public HttpStressTest(java.lang.String testurl)
testurl
- (String) The URL for test requests. The value
"@config" indicates to use the configured "Site.URL.Nonsecure".private void doRequests(int count) throws java.lang.Exception
count
- (int) The number of requests to make.java.lang.Exception
- - if an error occurs during processing.private void noSSLVerification()
public static void main(java.lang.String[] args)
args
- (String[]) A string array of startup parameters.