Expresso 5-6

com.jcorporate.expresso.core.utility
Class QueueJob

java.lang.Object
  extended bycom.jcorporate.expresso.core.utility.QueueJob

public class QueueJob
extends Object

Command line program to queue a job to the job queue. Can be used to trigger scheduled jobs, such as report runs, from cron.

Author:
Michael Nash

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

QueueJob

public QueueJob(String[] args)
Constructor: Arguments are passed in from the main method

Method Detail

main

public static void main(String[] args)
Main method

Parameters to this program are:

  1. dbDriver: Driver object name for JDBC
  2. dbURL: URL supplied to driver to connect to database
  3. dbConnectFormat: Format of the connect call (1, 2, or 3)
  4. dbLogin: Login name for the database
  5. dbPassword: Password for the database
  6. JobCode: The code for the job to be queued. Ordinarily, this is the name of the object to be invoked on the server.

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.

See Also:
DBConnection.connect(java.lang.String, java.lang.String)

queueJob

public void queueJob(Hashtable args)
              throws DBException
Actually queue the requested job

Parameters:
args - Command line arguments
Throws:
DBException - If an error occurrs communicating with the database

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.