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

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

public class GridSAMMultiJSDLStressTest.XMLReporter
extends java.lang.Object
implements GridSAMMultiJSDLStressTest.Reporter

a reporter that generates a XML report


Field Summary
protected  java.io.PrintWriter oWriter
           
 
Constructor Summary
GridSAMMultiJSDLStressTest.XMLReporter(java.io.Writer pWriter)
          create an XMLReporter
 
Method Summary
 void end()
          the test is ended
 void errorSubmitJob(GridSAMMultiJSDLStressTest.SimulatedUser pUser, int pJobNo, java.lang.Exception pError)
          report error after submitJob is invoked
 java.util.Set getSubmittedJobIDs()
          get the list of submitted jobs
 void postJobTerminal(org.icenigrid.gridsam.core.JobInstance pCompleted)
          a job is marked as terminal
 void postSubmitJob(GridSAMMultiJSDLStressTest.SimulatedUser pUser, int pJobNo, java.lang.String pJobID)
          report after submitJob is invoked
 void preSubmitJob(GridSAMMultiJSDLStressTest.SimulatedUser pUser, int pJobNo)
          report before submitJob is invoked
 void start(int pConcurrentUsers, int pJobs)
          the test is started
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

oWriter

protected java.io.PrintWriter oWriter
Constructor Detail

GridSAMMultiJSDLStressTest.XMLReporter

public GridSAMMultiJSDLStressTest.XMLReporter(java.io.Writer pWriter)
create an XMLReporter

Parameters:
pWriter - the writer to write the report to
Method Detail

getSubmittedJobIDs

public java.util.Set getSubmittedJobIDs()
get the list of submitted jobs

Returns:
List of job id

start

public void start(int pConcurrentUsers,
                  int pJobs)
the test is started

Specified by:
start in interface GridSAMMultiJSDLStressTest.Reporter
Parameters:
pConcurrentUsers - number of users
pJobs - number of jobs per user

end

public void end()
the test is ended

Specified by:
end in interface GridSAMMultiJSDLStressTest.Reporter

preSubmitJob

public void preSubmitJob(GridSAMMultiJSDLStressTest.SimulatedUser pUser,
                         int pJobNo)
report before submitJob is invoked

Specified by:
preSubmitJob in interface GridSAMMultiJSDLStressTest.Reporter
Parameters:
pUser - the user submitted the job
pJobNo - the job number

errorSubmitJob

public void errorSubmitJob(GridSAMMultiJSDLStressTest.SimulatedUser pUser,
                           int pJobNo,
                           java.lang.Exception pError)
report error after submitJob is invoked

Specified by:
errorSubmitJob in interface GridSAMMultiJSDLStressTest.Reporter
Parameters:
pUser - the user submitted the job
pJobNo - the job number
pError - the error

postSubmitJob

public void postSubmitJob(GridSAMMultiJSDLStressTest.SimulatedUser pUser,
                          int pJobNo,
                          java.lang.String pJobID)
report after submitJob is invoked

Specified by:
postSubmitJob in interface GridSAMMultiJSDLStressTest.Reporter
Parameters:
pUser - the user submitted the job
pJobNo - the job number
pJobID - the job identifier

postJobTerminal

public void postJobTerminal(org.icenigrid.gridsam.core.JobInstance pCompleted)
a job is marked as terminal

Specified by:
postJobTerminal in interface GridSAMMultiJSDLStressTest.Reporter
Parameters:
pCompleted - the completed job


Copyright © 2009. All Rights Reserved.