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

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

public abstract class DBJobControllerConfig
extends JobControllerConfig

DBJobControllerConfig responsible to build the controller specific JobControllerConfig objects from the given database. It looks for the configured controller in job_config.job_controller_class_name column and instantiates the appropriate JobControllerConfig instance and set the controller configuration properties.

Since:
1.0
Version:
1.0
Author:
Suresh Pragada

Field Summary
static java.lang.String JOB_CONTROLLER_CONFIG_FACTORY_CLASS_ATTRIBUTE_NAME
          Identifier used to request the Framework controller configuration for the specific controller config for this factory.
 
Fields inherited from class org.jmonks.batch.framework.config.JobControllerConfig
jobControllerClassName, jobControllerConfigProps
 
Constructor Summary
DBJobControllerConfig()
           
 
Method Summary
static JobControllerConfig getJobControllerConfig(java.lang.String jobName, java.sql.Connection connection)
           Factory method creates and returns the controller specific controller config object from the table job_config and controller specific tables.
 
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, toString, wait, wait, wait
 

Field Detail

JOB_CONTROLLER_CONFIG_FACTORY_CLASS_ATTRIBUTE_NAME

public static final java.lang.String JOB_CONTROLLER_CONFIG_FACTORY_CLASS_ATTRIBUTE_NAME
Identifier used to request the Framework controller configuration for the specific controller config for this factory.

See Also:
Constant Field Values
Constructor Detail

DBJobControllerConfig

public DBJobControllerConfig()
Method Detail

getJobControllerConfig

public static JobControllerConfig getJobControllerConfig(java.lang.String jobName,
                                                         java.sql.Connection connection)

Factory method creates and returns the controller specific controller config object from the table job_config and controller specific tables. This looks for the controller class name in job_config and tries to find specific controller config object for this controller and defined for the DB factory in framework configuration file.

Returns:
Returns the controller specific controller config object.
Throws:
ConfigurationException - If controller config class name is not defined or controller specific config object cannot be found in framework controller configuration.