[Batchserver-cvs] batchserver/src/org/jmonks/batchserver/framework/config/db DBBasicJobControllerC
Brought to you by:
suresh_pragada
From: Suresh <sur...@us...> - 2006-09-14 23:04:28
|
Update of /cvsroot/batchserver/batchserver/src/org/jmonks/batchserver/framework/config/db In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv10191/config/db Modified Files: DBBasicJobControllerConfig.java DBJobConfig.java DBJobConfigFactory.java DBJobControllerConfig.java DBJobLoggingConfig.java DBPoolJobControllerConfig.java Log Message: no message Index: DBJobConfigFactory.java =================================================================== RCS file: /cvsroot/batchserver/batchserver/src/org/jmonks/batchserver/framework/config/db/DBJobConfigFactory.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** DBJobConfigFactory.java 10 Sep 2006 17:58:07 -0000 1.10 --- DBJobConfigFactory.java 14 Sep 2006 23:04:23 -0000 1.11 *************** *** 27,41 **** * DBJobConfigFactory reads the job configuration from defined database to create the * configuration objects needed by the job. This factory looks for few properties ! * in the config properties map to identify the database it needs to connect to. This ! * factory looks for the job configuration in the table <b>job-config</b> in the database. * Controller configuration will be defined in a seperate tables, and DBJobControllerConfig * is responsible to read the job controller configuration from the database. * </p> * <p> * This factory looks for the properties "jdbc-driver-class-name","jdbc-url", * "username" and "password" in job config factory config in framework configuration to ! * establish the connection to read the job configuration. If anyone of the properties * are missing, it throws ConfigurationException. Following example shows, how it can ! * be configured. * <br><br> * <pre> --- 27,42 ---- * DBJobConfigFactory reads the job configuration from defined database to create the * configuration objects needed by the job. This factory looks for few properties ! * in the factory config properties map to identify the database it needs to connect to. This ! * factory looks for the job configuration in the <b>job-config</b> table in the database. * Controller configuration will be defined in a seperate tables, and DBJobControllerConfig * is responsible to read the job controller configuration from the database. * </p> + * * <p> * This factory looks for the properties "jdbc-driver-class-name","jdbc-url", * "username" and "password" in job config factory config in framework configuration to ! * establish the connection to read the job configuration. If any one of the properties * are missing, it throws ConfigurationException. Following example shows, how it can ! * be configured for Oracle database. * <br><br> * <pre> Index: DBJobConfig.java =================================================================== RCS file: /cvsroot/batchserver/batchserver/src/org/jmonks/batchserver/framework/config/db/DBJobConfig.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** DBJobConfig.java 14 Mar 2006 23:04:09 -0000 1.5 --- DBJobConfig.java 14 Sep 2006 23:04:23 -0000 1.6 *************** *** 23,35 **** * DBJobConfig provides the implementation of JobConfig by reading the * job configuration from given connection. This reads the job configuration ! * from table "job_config". Following is the schema of that table. * <br><br> * <pre> * <table> ! * <tr><td><b>Column Name</b></td><td><b>Data Type</b></td></tr> ! * <tr><td>JOB_NAME</td><td>VARCHAR2(64)</td></tr> ! * <tr><td>JOB_STATUS</td><td>NUMBER</td></tr> ! * <tr><td>JOB_CONTROLLER_CLASS_NAME</td><td>VARCHAR2(256)</td></tr> ! * <tr><td>JOB_CONTROLLER_PROPS</td><td>VARCHAR2(1024)</td></tr> * </table> * </pre> --- 23,35 ---- * DBJobConfig provides the implementation of JobConfig by reading the * job configuration from given connection. This reads the job configuration ! * from table <b>job_config</b>. Following is the schema of that table. * <br><br> * <pre> * <table> ! * <tr><td><b>Column Name</b></td><td><b>Data Type</b></td><td><b>Purpose</b></td></tr> ! * <tr><td>JOB_NAME</td><td>VARCHAR2(64)</td><td>Name of the Job.</td></tr> ! * <tr><td>JOB_STATUS</td><td>NUMBER</td><td>Status of the job. 1 - Active, 0 - Inactive</td></tr> ! * <tr><td>JOB_CONTROLLER_CLASS_NAME</td><td>VARCHAR2(256)</td><td>Controller to be used for this job. For pool job controller "<code>org.jmonks.batchserver.framework.controller.pool.PoolJobController</code> and for basic job controller <code>org.jmonks.batchserver.framework.controller.basic.BasicJobController</code></td></tr> ! * <tr><td>JOB_CONTROLLER_PROPS</td><td>VARCHAR2(1024)</td><td>Configuration properties for the controller. See the schema column comments for the format.</td></tr> * </table> * </pre> Index: DBPoolJobControllerConfig.java =================================================================== RCS file: /cvsroot/batchserver/batchserver/src/org/jmonks/batchserver/framework/config/db/DBPoolJobControllerConfig.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** DBPoolJobControllerConfig.java 29 Aug 2006 02:01:32 -0000 1.9 --- DBPoolJobControllerConfig.java 14 Sep 2006 23:04:23 -0000 1.10 *************** *** 23,41 **** * <p> * DBPoolJobControllerConfig loads the job controller configuration from the defined ! * database. This loads the pool controller configuration from the table "pool_job_controller_config". * Following is the schema of that table defined in the database. * <br><br> * <pre> * <table> ! * <tr><td><b>Column Name</b></td><td><b>Data Type</b></td></tr> ! * <tr><td>JOB_NAME</td><td>VARCHAR2(64)</td></tr> ! * <tr><td>POOL_JOB_PROCESSOR_CLASS_NAME</td><td>VARCHAR2(256)</td></tr> ! * <tr><td>POOL_JOB_PROCESSOR_THREAD_CNT</td><td>NUMBER</td></tr> ! * <tr><td>POOL_JOB_PROCESSOR_PROPS</td><td>VARCHAR2(1024)</td></tr> ! * <tr><td>POOL_JOB_LOADER_CLASS_NAME</td><td>VARCHAR2(256)</td></tr> ! * <tr><td>POOL_JOB_LOADER_PROPS</td><td>VARCHAR2(1024)</td></tr> ! * <tr><td>JOB_POOL_CLASS_NAME</td><td>VARCHAR2(256)</td></tr> ! * <tr><td>JOB_POOL_PROPS</td><td>VARCHAR2(1024)</td></tr> ! * * </table> * </pre> --- 23,40 ---- * <p> * DBPoolJobControllerConfig loads the job controller configuration from the defined ! * database. This loads the pool controller configuration from the table <b>pool_job_controller_config</b>. * Following is the schema of that table defined in the database. * <br><br> * <pre> * <table> ! * <tr><td><b>Column Name</b></td><td><b>Data Type</b></td><td><b>Purpose</b></td></tr> ! * <tr><td>JOB_NAME</td><td>VARCHAR2(64)</td><td>Name of the Job.</td></tr> ! * <tr><td>POOL_JOB_PROCESSOR_CLASS_NAME</td><td>VARCHAR2(256)</td><td>Name of the processor class writes the business logic of consumer the data from the pool by implementing the PoolJobProcessor interface.</td></tr> ! * <tr><td>POOL_JOB_PROCESSOR_THREAD_CNT</td><td>NUMBER</td><td>Number of processor instances (each instance will be run in its own thread) to be created while executing the job.</td></tr> ! * <tr><td>POOL_JOB_PROCESSOR_PROPS</td><td>VARCHAR2(1024)</td><td>Configuration properties required by the job processor.</td></tr> ! * <tr><td>POOL_JOB_LOADER_CLASS_NAME</td><td>VARCHAR2(256)</td><td>Name of the loader class writes the business logic of loading the jobs into the pool by implemention the PoolJobLoader interface. This will be run in its own thread.</td></tr> ! * <tr><td>POOL_JOB_LOADER_PROPS</td><td>VARCHAR2(1024)</td><td>Configuration properties required by the job loader.</td></tr> ! * <tr><td>JOB_POOL_CLASS_NAME</td><td>VARCHAR2(256)</td><td>Name of the class act as pool/channel/pipe between the loader and multiple processors. Multiple implementations will be available and can be chosen based on the need.</td></tr> ! * <tr><td>JOB_POOL_PROPS</td><td>VARCHAR2(1024)</td><td>Configuration properties required by the job pool.</td></tr> * </table> * </pre> Index: DBJobControllerConfig.java =================================================================== RCS file: /cvsroot/batchserver/batchserver/src/org/jmonks/batchserver/framework/config/db/DBJobControllerConfig.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** DBJobControllerConfig.java 14 Mar 2006 23:04:09 -0000 1.6 --- DBJobControllerConfig.java 14 Sep 2006 23:04:23 -0000 1.7 *************** *** 23,29 **** /** * DBJobControllerConfig responsible to build the controller specific ! * JobControllerConfig objects from the given database. ! * * @author Suresh Pragada * @version 1.0 --- 23,34 ---- /** + * <p> * DBJobControllerConfig responsible to build the controller specific ! * JobControllerConfig objects from the given database. It looks for the ! * configured controller in <b>job_config.job_controller_class_name</b> column ! * and instantiates the appropriate JobControllerConfig instance and set the ! * controller configuration properties. ! * </p> ! * * @author Suresh Pragada * @version 1.0 Index: DBBasicJobControllerConfig.java =================================================================== RCS file: /cvsroot/batchserver/batchserver/src/org/jmonks/batchserver/framework/config/db/DBBasicJobControllerConfig.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** DBBasicJobControllerConfig.java 29 Aug 2006 02:01:32 -0000 1.9 --- DBBasicJobControllerConfig.java 14 Sep 2006 23:04:23 -0000 1.10 *************** *** 23,36 **** * <p> * DBBasicJobControllerConfig loads the job controller configuration from the defined ! * database. This loads the basic controller configuration from the table "basic_job_controller_config". * Following is the schema of that table defined in the database. * <br><br> * <pre> * <table> ! * <tr><td><b>Column Name</b></td><td><b>Data Type</b></td></tr> ! * <tr><td>JOB_NAME</td><td>VARCHAR2(64)</td></tr> ! * <tr><td>BASIC_JOB_PROCESSOR_CLASS_NAME</td><td>VARCHAR2(256)</td></tr> ! * <tr><td>BASIC_JOB_PROCESSOR_THREAD_CNT</td><td>NUMBER</td></tr> ! * <tr><td>BASIC_JOB_PROCESSOR_PROPS</td><td>VARCHAR2(1024)</td></tr> * </table> * </pre> --- 23,36 ---- * <p> * DBBasicJobControllerConfig loads the job controller configuration from the defined ! * database. This loads the basic controller configuration from the table <b>basic_job_controller_config</b>. * Following is the schema of that table defined in the database. * <br><br> * <pre> * <table> ! * <tr><td><b>Column Name</b></td><td><b>Data Type</b></td><td><b>Purpose</b></td></tr> ! * <tr><td>JOB_NAME</td><td>VARCHAR2(64)</td><td>Name of the Job.</td></tr> ! * <tr><td>BASIC_JOB_PROCESSOR_CLASS_NAME</td><td>VARCHAR2(256)</td><td>Name of the processor class implements the business logic by extending the BasicJobProcessor class.</td></tr> ! * <tr><td>BASIC_JOB_PROCESSOR_THREAD_CNT</td><td>NUMBER</td><td>Number of processor instances(each instance will be executed in its own thread) to be created while executing the job.</td></tr> ! * <tr><td>BASIC_JOB_PROCESSOR_PROPS</td><td>VARCHAR2(1024)</td><td>Configuration properties required by the processor. These can be accessed through JobContext reference.</td></tr> * </table> * </pre> Index: DBJobLoggingConfig.java =================================================================== RCS file: /cvsroot/batchserver/batchserver/src/org/jmonks/batchserver/framework/config/db/DBJobLoggingConfig.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** DBJobLoggingConfig.java 14 Mar 2006 05:47:15 -0000 1.1 --- DBJobLoggingConfig.java 14 Sep 2006 23:04:23 -0000 1.2 *************** *** 21,33 **** /** * <p> ! * DBJobLoggingConfig reads the job logging configuration from the table "job_logging_config". ! * Below is the schema of job_logging_config table. * <br><br> * <pre> * <table> ! * <tr><td><b>Column Name</b></td><td><b>Data Type</b></td></tr> ! * <tr><td>JOB_NAME</td><td>VARCHAR2(64)</td></tr> ! * <tr><td>JOB_LOGGER_NAME</td><td>VARCHAR2(256)</td></tr> ! * <tr><td>JOB_LOGGER_LEVEL</td><td>VARCHAR2(32)</td></tr> * </table> * </pre> --- 21,33 ---- /** * <p> ! * DBJobLoggingConfig reads the job logging configuration from the table <b>job_logging_config</b>. ! * Below is the schema of <b>job_logging_config</b> table. * <br><br> * <pre> * <table> ! * <tr><td><b>Column Name</b></td><td><b>Data Type</b></td><td><b>Purpose</b></td></tr> ! * <tr><td>JOB_NAME</td><td>VARCHAR2(64)</td><td>Name of the Job.</td></tr> ! * <tr><td>JOB_LOGGER_NAME</td><td>VARCHAR2(256)</td><td>Package name of the logger. Values will be like <code>com.mycompany.jobs.myjob</code></td></tr> ! * <tr><td>JOB_LOGGER_LEVEL</td><td>VARCHAR2(32)</td><td>Level of the logger. Values can be TRACE,DEBUG,INFO,WARN,ERROR,FATAL</td></tr> * </table> * </pre> *************** *** 44,48 **** /** ! * Reads the configuration from the table job_logging_config and add * each record as JobLoggerConfig object. * --- 44,48 ---- /** ! * Reads the configuration from the table <b>job_logging_config</b> and add * each record as JobLoggerConfig object. * |