org.jmonks.batch.framework.config.db
Class DBBasicJobControllerConfig

java.lang.Object
  extended byorg.jmonks.batch.framework.config.JobControllerConfig
      extended byorg.jmonks.batch.framework.config.BasicJobControllerConfig
          extended byorg.jmonks.batch.framework.config.db.DBBasicJobControllerConfig

public class DBBasicJobControllerConfig
extends BasicJobControllerConfig

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.

      
Column NameData TypePurpose
JOB_NAMEVARCHAR2(64)Name of the Job.
BASIC_JOB_PROCESSOR_CLASS_NAMEVARCHAR2(256)Name of the processor class implements the business logic by extending the BasicJobProcessor class.
BASIC_JOB_PROCESSOR_THREAD_CNTNUMBERNumber of processor instances(each instance will be executed in its own thread) to be created while executing the job.
BASIC_JOB_PROCESSOR_PROPSVARCHAR2(1024)Configuration properties required by the processor. These can be accessed through JobContext reference.

Since:
1.0
Version:
1.0
Author:
Suresh Pragada

Field Summary
 
Fields inherited from class org.jmonks.batch.framework.config.BasicJobControllerConfig
basicJobProcessorClassName, basicJobProcessorConfigProps, basicJobProcessorThreadCount
 
Fields inherited from class org.jmonks.batch.framework.config.JobControllerConfig
jobControllerClassName, jobControllerConfigProps
 
Constructor Summary
DBBasicJobControllerConfig(java.lang.String jobName, java.sql.Connection connection)
          Loads the basic job controller configuration from table basic_job_controller_config into DBBasicJobControllerConfig object.
 
Methods inherited from class org.jmonks.batch.framework.config.BasicJobControllerConfig
getBasicJobProcessorClassName, getBasicJobProcessorConfigProperties, getBasicJobProcessThreadCount, toString
 
Methods inherited from class org.jmonks.batch.framework.config.JobControllerConfig
getJobControllerClasName, getJobControllerConfigProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBBasicJobControllerConfig

public DBBasicJobControllerConfig(java.lang.String jobName,
                                  java.sql.Connection connection)
Loads the basic job controller configuration from table basic_job_controller_config into DBBasicJobControllerConfig object.

Parameters:
jobName - Name of the job.
connection - Connection to the defined database.
Throws:
ConfigurationException - If controller class name or job processor name doest not found.