|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjgroup.test.performance.PerformanceClient
public class PerformanceClient
Test class for measuring the performance of GMI invocations. This client can run tests with several different servers, but only one at a time.
Field Summary | |
---|---|
static java.lang.String[] |
properties
Supported properties: Note that if additional properties are to be added here, recall to also add them to the dev-build.xml file; the 'perfclient' target. |
Constructor Summary | |
---|---|
PerformanceClient()
|
Method Summary | |
---|---|
static void |
generateTraffic(int duration)
Generate traffic at a fixed-rate for the given duration. |
static java.util.TimerTask |
getDelayTimerTask()
Returns a TimerTask that can be scheduled at
fixed-rate intervals, as required by the performance
measurements. |
static java.util.TimerTask |
getThroughputTimerTask()
Returns a TimerTask that should be scheduled only once,
as the run method of the timer task will perform repeated invocations
and measure the duration, and count the number of invocations to
determine the throughput measure (Inovcations / Second). |
static void |
main(java.lang.String[] argv)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String[] properties
Constructor Detail |
---|
public PerformanceClient()
Method Detail |
---|
public static void main(java.lang.String[] argv) throws java.lang.Exception
java.lang.Exception
public static void generateTraffic(int duration)
duration
- The duration to generate traffic at a fixed-rate.public static java.util.TimerTask getThroughputTimerTask()
TimerTask
that should be scheduled only once,
as the run method of the timer task will perform repeated invocations
and measure the duration, and count the number of invocations to
determine the throughput measure (Inovcations / Second).
public static java.util.TimerTask getDelayTimerTask()
TimerTask
that can be scheduled at
fixed-rate intervals, as required by the performance
measurements.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |