|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmonks.batch.framework.config.JobControllerConfig
org.jmonks.batch.framework.config.PoolJobControllerConfig
org.jmonks.batch.framework.config.db.DBPoolJobControllerConfig
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 Name | Data Type | Purpose |
| JOB_NAME | VARCHAR2(64) | Name of the Job. |
| POOL_JOB_PROCESSOR_CLASS_NAME | VARCHAR2(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_CNT | NUMBER | Number of processor instances (each instance will be run in its own thread) to be created while executing the job. |
| POOL_JOB_PROCESSOR_PROPS | VARCHAR2(1024) | Configuration properties required by the job processor. |
| POOL_JOB_LOADER_CLASS_NAME | VARCHAR2(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_PROPS | VARCHAR2(1024) | Configuration properties required by the job loader. |
| JOB_POOL_CLASS_NAME | VARCHAR2(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_PROPS | VARCHAR2(1024) | Configuration properties required by the job pool. |
| 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 |
public DBPoolJobControllerConfig(java.lang.String jobName,
java.sql.Connection connection)
jobName - Name of the job.connection - Connection to the defined database.
ConfigurationException - If controller class name or job processor name doest not found.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||