![]() Throws ConfigurationException Configures basic run parameters. ![]() Public void configureRun( String iterations, Override to clean up any resources allocated in Throws Exception This method is invoked by execute() after all spawned threads Parsed from the config file should be created in this method. Need to be created and passed to client threads using configuration info Throws Exception This method is invoked by execute() after configure()Īnd digester parse, just before client threads are created. Protected abstract ClientThread makeClientThread(long iterations, Init() to prepare data to pass to makeClientThread,Īnd cleanUp() to clean up after all threads terminate. MakeClientThread(long, long, long, double,, long, long, long,, ,, .Statistics) and may override configure() and Subclasses should not need to override this method, but must implement Terminate and then logs accumulated statistics, using Then spawns andĮxecutes numClients ClientThreads using makeClientThread(long, long, long, double,, long, long, long,, ,, .Statistics) Then init() to initialize configuration members. Protected String configFile Constructor Detail Protected static final Logger logger logger ObjectĬlone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait This method is invoked by execute() after configure()Īnd digester parse, just before client threads are created. Invokes configure() to load digester rules, then digster.parse, *this onto the stack and loading rules to configure basic "run" Starts preparing Digester to parse the configuration file, pushing This method is invoked by execute() after all spawned threads That example also illustrates how initĬan be used to set up resources or data structures required by the client The "run" section is required by the base Sections of the config file should be parsed and loaded in the overriddenĬonfigure method. Sample configuration file for an example. #Sigma client loading codeSetup code that needs to be executed before any client threads are Property to a valid URI or filespec (suitable argument for Digester's parse This method should also set the configFile Should start with a super() call so that the base configuration Subclasses will also in general override configure to loadĪdditional configuration parameters and pass them on to the client in Subclasses must implement makeClientThread toĬreate client thread instances to be kicked off by execute. ![]() Uses Commons Digester to parse and load configuration and spawnsĬlientThread instances to generate load and gather statistics. Public abstract class LoadGenerator extends Objectīase class for load / peformance test runners. SUMMARY: NESTED | FIELD | CONSTR | METHODĬlass LoadGenerator .LoadGenerator Direct Known Subclasses: DBCPSoak, HttpSoak, PoolSoak LoadGenerator (Commons Performance (Sandbox) 0.1-SNAPSHOT API) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |