|
Public Member Functions |
| | JobMonitor () |
| | JobMonitor (OutputStream out) |
| | JobMonitor (OutputStream out, String jobId) |
| void | setOutput (OutputStream out) |
| synchronized void | setJob (String jobId) |
| void | monitor () |
| void | setOption (String name) |
| void | setOption (String name, String contents) |
| void | setOption (Options opts) |
| boolean | isAlive () |
| void | log (LogEntry le) |
| void | log (LogEntry le, int indent) |
| Job | retrieveJob (String id) |
| void | unmonitor (Job job) |
| void | statusChange (Job job) |
| void | jobLog (Job job, LogEntry le) |
Static Public Member Functions |
| static void | main (String args[]) |
| | Test procedure.
|
Protected Member Functions |
| void | traverse (String id, int indent) |
| void | traverse (String id, int indent, Hashtable traversed) |
| String | jobName (Job job) |
| Job | retrieveFrom (DBConnection db, String id) |
| synchronized void | removeMonitor (String id) |
| synchronized void | removeAll () |
| void | finalize () |
Package Attributes |
| OutputStream | out = null |
| | The stream we send our progress/status reports to.
|
| Hashtable | whereFrom = new Hashtable() |
| | A table that stores for every jobID the location of the respective job ("archive", "cmdqueue", "jobqueue", "scheduler").
|
| Vector | monitoredJobs = new Vector() |
| | A list of IDs currently monitored jobs.
|
| Options | options = new Options() |
| Thread | monitorThread = null |
| String | headId = null |
| boolean | alive = false |
Static Package Attributes |
| static final String | SRC_ARCHIVE = "job archive" |
| static final String | SRC_CMDQUEUE = "command queue" |
| static final String | SRC_JOBQUEUE = "job queue" |
| static final String | SRC_SCHEDULER = "scheduler" |