org.icenigrid.gridsam.client.cli
Class GridSAMStressTest.SimulatedUser

java.lang.Object
  extended by org.icenigrid.gridsam.client.cli.GridSAMStressTest.SimulatedUser
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
GridSAMStressTest

public static class GridSAMStressTest.SimulatedUser
extends java.lang.Object
implements java.lang.Runnable

class representing a simulated user


Constructor Summary
GridSAMStressTest.SimulatedUser(org.icenigrid.gridsam.core.JobManager pJobmanager, int pNumberOfJobs, GridSAMStressTest.Reporter pReporter, org.icenigrid.schema.jsdl.y2005.m11.JobDefinitionDocument pJSDL, long pPeriod)
          create a simulated user
 
Method Summary
 void delay()
          delay for a period before the next run
 org.icenigrid.schema.jsdl.y2005.m11.JobDefinitionDocument getJSDL()
          get the JSDL to be submitted
 void run()
          When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridSAMStressTest.SimulatedUser

public GridSAMStressTest.SimulatedUser(org.icenigrid.gridsam.core.JobManager pJobmanager,
                                       int pNumberOfJobs,
                                       GridSAMStressTest.Reporter pReporter,
                                       org.icenigrid.schema.jsdl.y2005.m11.JobDefinitionDocument pJSDL,
                                       long pPeriod)
create a simulated user

Parameters:
pJobmanager - the jobmanager to use to submit job
pNumberOfJobs - number of jobs to submit
Method Detail

run

public void run()
When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread.

The general contract of the method run is that it may take any action whatsoever.

Specified by:
run in interface java.lang.Runnable
See Also:
Thread.run()

getJSDL

public org.icenigrid.schema.jsdl.y2005.m11.JobDefinitionDocument getJSDL()
get the JSDL to be submitted

Returns:
String JSDL string

delay

public void delay()
delay for a period before the next run



Copyright © 2009. All Rights Reserved.