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

java.lang.Object
  extended byorg.jmonks.batch.framework.config.JobControllerConfig
      extended byorg.jmonks.batch.framework.config.PoolJobControllerConfig
          extended byorg.jmonks.batch.framework.config.db.DBPoolJobControllerConfig

public class DBPoolJobControllerConfig
extends PoolJobControllerConfig

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.

      
Column NameData TypePurpose
JOB_NAMEVARCHAR2(64)Name of the Job.
POOL_JOB_PROCESSOR_CLASS_NAMEVARCHAR2(256)Name of the processor class writes the business logic of consumer the data from the pool by implementing the PoolJobProcessor interface.
POOL_JOB_PROCESSOR_THREAD_CNTNUMBERNumber of processor instances (each instance will be run in its own thread) to be created while executing the job.
POOL_JOB_PROCESSOR_PROPSVARCHAR2(1024)Configuration properties required by the job processor.
POOL_JOB_LOADER_CLASS_NAMEVARCHAR2(256)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.
POOL_JOB_LOADER_PROPSVARCHAR2(1024)Configuration properties required by the job loader.
JOB_POOL_CLASS_NAMEVARCHAR2(256)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.
JOB_POOL_PROPSVARCHAR2(1024)Configuration properties required by the job pool.

Since:
1.0
Version:
1.0
Author:
Suresh Pragada

Field Summary
 
Fields inherited from class org.jmonks.batch.framework.config.PoolJobControllerConfig
poolClassName, poolConfigProps, poolJobLoaderClassName, poolJobLoaderConfigProps, poolJobProcessorClassName, poolJobProcessorConfigProps, poolJobProcessorThreadCount
 
Fields inherited from class org.jmonks.batch.framework.config.JobControllerConfig
jobControllerClassName, jobControllerConfigProps
 
Constructor Summary
DBPoolJobControllerConfig(java.lang.String jobName, java.sql.Connection connection)
          Loads the pool job controller configuration from table pool_job_controller_config into DBPoolJobControllerConfig object.
 
Methods inherited from class org.jmonks.batch.framework.config.PoolJobControllerConfig
getPoolClassName, getPoolConfigProperties, getPoolJobLoaderClassName, getPoolJobLoaderConfigProperties, getPoolJobProcessorClassName, getPoolJobProcessorConfigProperties, getPoolJobProcessorThreadCount, 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

DBPoolJobControllerConfig

public DBPoolJobControllerConfig(java.lang.String jobName,
                                 java.sql.Connection connection)
Loads the pool job controller configuration from table pool_job_controller_config into DBPoolJobControllerConfig 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.