jgroup.test.performance
Class PerformanceClient

java.lang.Object
  extended by jgroup.test.performance.PerformanceClient

public class PerformanceClient
extends java.lang.Object

Test class for measuring the performance of GMI invocations. This client can run tests with several different servers, but only one at a time.

Since:
Jgroup 1.2
Author:
Hein Meling

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

properties

public static final 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 Detail

PerformanceClient

public PerformanceClient()
Method Detail

main

public static void main(java.lang.String[] argv)
                 throws java.lang.Exception
Throws:
java.lang.Exception

generateTraffic

public static void generateTraffic(int duration)
Generate traffic at a fixed-rate for the given duration.

Parameters:
duration - The duration to generate traffic at a fixed-rate.

getThroughputTimerTask

public 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).


getDelayTimerTask

public static java.util.TimerTask getDelayTimerTask()
Returns a TimerTask that can be scheduled at fixed-rate intervals, as required by the performance measurements.



Copyright © 1998-2006 The Jgroup/ARM development team. All Rights Reserved.