|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rit.pj.job.JobGenerator
edu.rit.pj.job.test.Test01
public class Test01
Class Test01 is a JobGenerator for unit testing. Each job, when run, sleeps for one second, then prints its job number and a message on the standard output. The standard output is redirected to a file named "outi", where i is the job number.
| Constructor Summary | |
|---|---|
Test01(int N)
Construct a new test job generator. |
|
| Method Summary | |
|---|---|
protected Job |
createJob(int theJobNumber)
Create the job with the given job number. |
protected int |
jobCount()
Returns the number of jobs in the job group, N. |
static void |
main(String[] args)
Test01 job main program. |
| Methods inherited from class edu.rit.pj.job.JobGenerator |
|---|
iterator, omit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Test01(int N)
N - Number of jobs.| Method Detail |
|---|
protected int jobCount()
jobCount in class JobGeneratorprotected Job createJob(int theJobNumber)
createJob in class JobGeneratortheJobNumber - Job number (0 .. N−1).
public static void main(String[] args)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||