KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tctest > performance > generate > load > LoadGenerator


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tctest.performance.generate.load;
5
6 import com.tctest.performance.simulate.type.SimulatedType;
7
8 public interface LoadGenerator {
9
10   /**
11    * @param durration - in seconds
12    * @param minLoad - beginning number of objects per second
13    * @param maxLoad - final number of objects per second
14    * @param factory - used to clone new objects
15    * @param percentUnique - 0 to 100 defines uniqueness of cloned object values
16    */

17   void start(int duration, int minLoad, int maxLoad, SimulatedType factory, int percentUnique);
18
19   /**
20    * @return - null to indicate completion
21    */

22   Object JavaDoc getNext() throws InterruptedException JavaDoc, WorkQueueOverflowException;
23
24   Measurement[] getWaitTimes();
25 }
26
Popular Tags