Inheritance diagram for sosc::Job:

Public Methods | |
| Job () | |
| Job (int id, String description, Map args1, Map args2) | |
| int | getId () |
| final void | addToJobQueue (String queue, String description, Map args1) throws Exception |
| void | log (String text) throws Exception |
| abstract void | execute () throws Exception |
Private Attributes | |
| String | description = "No Description" |
| Map | args1 = new HashMap() |
| Map | args2 = new HashMap() |
| int | id = 0 |
Definition at line 32 of file Job.java.
|
|
Empty constructor used by callers who then want to call addToJobQuueue() |
|
||||||||||||||||||||
|
Used by JobTool to instantiate the Job and run it. All Job subclasses must have a constructor with this signature. They must also guarantee that they call super(). Definition at line 56 of file Job.java. References sosc::Job::args1, sosc::Job::args2, sosc::Job::description, and sosc::Job::id. |
|
||||||||||||||||
|
Causes this Job to add itself to the queue. Handy for making a job reschedule itself. Be wary of infinite job loops though. :) Definition at line 75 of file Job.java. References sosc::Job::args1, and sosc::Job::description. |
|
|
Job subclasses must implement this method. Implemented in test::TestJobClass. |
|
|
Returns the ID of this job. Definition at line 66 of file Job.java. References sosc::Job::id. |
|
|
Makes a log entry in the job journal for this job. Ordinarily this would only be called by the job itself, but it is public incase the caller wants to make some post job log statements. Definition at line 84 of file Job.java. References sosc::Job::id. Referenced by test::TestJobClass::execute(). |
|
|
Arguments Definition at line 38 of file Job.java. Referenced by sosc::Job::addToJobQueue(), and sosc::Job::Job(). |
|
|
Arguments Definition at line 41 of file Job.java. Referenced by sosc::Job::Job(). |
|
|
Description Definition at line 35 of file Job.java. Referenced by sosc::Job::addToJobQueue(), and sosc::Job::Job(). |
|
|
The ID of this job (if invoked by the JobTool Definition at line 44 of file Job.java. Referenced by sosc::Job::getId(), sosc::Job::Job(), and sosc::Job::log(). |
1.2.15