|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.core.utility.QueueJob
Command line program to queue a job to the job queue. Can be used to trigger scheduled jobs, such as report runs, from cron.
| Constructor Summary | |
QueueJob(String[] args)
Constructor: Arguments are passed in from the main method |
|
| Method Summary | |
static void |
main(String[] args)
Main method Parameters to this program are: dbDriver: Driver object name for JDBC dbURL: URL supplied to driver to connect to database dbConnectFormat: Format of the connect call (1, 2, or 3) dbLogin: Login name for the database dbPassword: Password for the database JobCode: The code for the job to be queued. |
void |
queueJob(Hashtable args)
Actually queue the requested job |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public QueueJob(String[] args)
| Method Detail |
public static void main(String[] args)
Parameters to this program are:
Remainder of parameters are supplied in pairs: the first is a job parameter code, the next is the value for that parameter.
For example, if the job takes a parameter code "ReportNumber", then "ReportNumber 5" would be used to supply the value "5" for this report number.
DBConnection.connect(java.lang.String, java.lang.String)
public void queueJob(Hashtable args)
throws DBException
args - Command line arguments
DBException - If an error occurrs communicating with the database
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||