class JobMan
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static int |
nEmptyLoops
The number of loops without invoking any executables.
|
private static int |
nExeCalls
The number of executable calls.
|
private static int |
nFinishedThisLoop
The number of finished exec in the current loop.
|
private static int |
nLoops
The number of loop the top job has gone over.
|
private static int |
rosterSize |
private static Task |
topJob |
private static java.lang.String |
topJobName
The topmost job name, default to "all" if not specified.
|
private static Status |
topStatus
The status of the top job.
|
| Modifier | Constructor and Description |
|---|---|
private |
JobMan()
All data and methods are static.
|
| Modifier and Type | Method and Description |
|---|---|
private static void |
checkArgs(java.lang.String[] args)
Parse the arguments to jobman.
|
(package private) static java.lang.String |
debugDump() |
private static void |
end()
Post-run process of the program, which logs and prints out finish message.
|
(package private) static void |
finishOneExec() |
(package private) static int |
getLoops() |
private static void |
kill()
Terminate the whole program.
|
(package private) static void |
kill(java.lang.Exception t)
Kill the jobman program with passed in Exception logged.
|
(package private) static void |
kill(java.lang.String errStr)
Kill this jobman program with the specified error logged.
|
(package private) static void |
kill(java.lang.String s,
java.lang.Exception t)
Try to kill the whole program.
|
(package private) static void |
kill(Task t,
java.lang.Exception e) |
(package private) static void |
kill(Task t,
java.lang.String s) |
(package private) static void |
kill(Task t,
java.lang.String s,
java.lang.Exception e)
Try to kill the whole program.
|
static void |
main(java.lang.String[] args) |
private static void |
runTopJob()
Starting from the top most job, this function runs each job in the job
hierarchy, until all jobs are finished.
|
private static void |
setup()
Load configurations and initiate log system.
|
private static void |
summary()
Summary information including total executable runs, etc.
|
private static void |
work() |
private static java.lang.String topJobName
private static Task topJob
private static Status topStatus
private static int nLoops
private static int nExeCalls
private static int nFinishedThisLoop
private static int nEmptyLoops
private static int rosterSize
private JobMan()
public static void main(java.lang.String[] args)
private static void checkArgs(java.lang.String[] args)
private static void setup()
throws java.lang.Exception
java.lang.Exceptionprivate static void runTopJob()
throws java.lang.Exception
java.lang.Exceptionprivate static void work()
throws java.lang.Exception
java.lang.Exceptionstatic void finishOneExec()
static int getLoops()
private static void summary()
private static void end()
private static void kill()
static void kill(java.lang.String errStr)
errStr - The error string to be logged.static void kill(java.lang.Exception t)
static void kill(java.lang.String s,
java.lang.Exception t)
s - The message to log into the master log file.t - The Exception to be logged in the master log file.static void kill(Task t, java.lang.Exception e)
static void kill(Task t, java.lang.String s)
static void kill(Task t, java.lang.String s, java.lang.Exception e)
t - The Task requesting termination of the program.s - The message to log into the master log file.e - The Exception to be logged in the master log file.static java.lang.String debugDump()
Copyright © 2006-2015 Heng Sun.