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

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

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

class representing a simulated user


Constructor Summary
GridSAMMultiJSDLStressTest.SimulatedUser(org.icenigrid.gridsam.core.JobManager pJobmanager, int pNumberOfJobs, GridSAMMultiJSDLStressTest.Reporter pReporter, org.icenigrid.schema.jsdl.y2005.m11.JobDefinitionDocument[] pJSDL, org.icenigrid.schema.jsdl.y2005.m11.JobDefinitionDocument[] pWrongJSDL, int pWrongPercentage, 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

GridSAMMultiJSDLStressTest.SimulatedUser

public GridSAMMultiJSDLStressTest.SimulatedUser(org.icenigrid.gridsam.core.JobManager pJobmanager,
                                                int pNumberOfJobs,
                                                GridSAMMultiJSDLStressTest.Reporter pReporter,
                                                org.icenigrid.schema.jsdl.y2005.m11.JobDefinitionDocument[] pJSDL,
                                                org.icenigrid.schema.jsdl.y2005.m11.JobDefinitionDocument[] pWrongJSDL,
                                                int pWrongPercentage,
                                                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.