org.jmonks.batch.framework.config.xml
Class XMLPoolJobControllerConfig

java.lang.Object
  extended byorg.jmonks.batch.framework.config.JobControllerConfig
      extended byorg.jmonks.batch.framework.config.PoolJobControllerConfig
          extended byorg.jmonks.batch.framework.config.xml.XMLPoolJobControllerConfig

public class XMLPoolJobControllerConfig
extends PoolJobControllerConfig

XMLPoolJobControllerConfig loads the controller configuration from XML Job controller configuration. This reads the following XML block and loads the XMLPoolJobControllerConfig.

              <job-controller job-controller-class-name="org.jmonks.batch.framework.controller.pool.PoolJobController">
                  <pool-job-loader pool-job-loader-class-name="com.mycompany.batch.processfileabc.AbcJobLoader">
                      <property key="pool-job-loader-key1">loader-value1</property>
                  </pool-job-loader>
                  <pool-job-processor pool-job-processor-class-name="com.mycompany.batch.processfileabc.AbcJobProcessor" thread-count="1">
                      <property key="pool-job-processor-key1">processor-value1</property>
                  </pool-job-processor>
                  <job-pool job-pool-class-name="org.jmonks.batch.framework.controller.pool.DefaultJobPool">
                      <property key="job-pool-size">50000</property>
                  </job-pool>
                  <property key="pool-job-controller-config1">config-value1</property>
              </job-controller>
  

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
XMLPoolJobControllerConfig(org.w3c.dom.Element controllerConfigElement)
          Loads the XMLPoolJobControllerConfig from XML DOM Element <job-controller>
 
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

XMLPoolJobControllerConfig

public XMLPoolJobControllerConfig(org.w3c.dom.Element controllerConfigElement)
Loads the XMLPoolJobControllerConfig from XML DOM Element <job-controller>

Parameters:
controllerConfigElement - XML DOM Element represents the <job-controller> element.
Throws:
ConfigurationException - If controller class name not defined or required controller properties missing.