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

java.lang.Object
  extended byorg.jmonks.batch.framework.config.JobConfig
      extended byorg.jmonks.batch.framework.config.xml.XMLJobConfig

public class XMLJobConfig
extends JobConfig

XMLJobConfig provides the implementation of JobConfig by reading the job configuration from XML DOM element <job-config> configured in the job configuration file. This reads and represents the following piece of XML block from job configuration file.

      <job-config job-name="process_file_xyz">
       <job-controller job-controller-class-name="org.jmonks.batch.framework.controller.basic.BasicJobController">
           <basic-job-processor basic-job-processor-class-name="com.mycompany.batch.processfilexyz.XyzProcessor" thread-count="1">
               <property key="basic-job-processor-config1">processor-value1</property>
           </basic-job-processor>
           <property key="basic-job-controller-config1">config-value1</property>
       </job-controller>
       <job-logging-config>
          <logger-config logger-name="com.mycompany.batch" logger-level="ERROR"/>
       </job-logging-config>
      </job-config>
 

Since:
1.0
Version:
1.0
Author:
Suresh Pragada

Field Summary
static java.lang.String JOB_CONFIG_ELEMENT_NAME
          Element name that identifies the job configuration which is job-config.
static java.lang.String JOB_NAME_ATTRIBUTE_NAME
          Attribute name that identifies the job name which is job-name.
static java.lang.String JOB_STATUS_ATTRIBUTE_NAME
          Attribute name that identifies the job status which is job-status.
 
Fields inherited from class org.jmonks.batch.framework.config.JobConfig
jobControllerConfig, jobLoggingConfig, jobName, jobStatus
 
Methods inherited from class org.jmonks.batch.framework.config.JobConfig
getJobControllerConfig, getJobLoggingConfig, getJobName, getJobStatus, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

JOB_CONFIG_ELEMENT_NAME

public static final java.lang.String JOB_CONFIG_ELEMENT_NAME
Element name that identifies the job configuration which is job-config.

See Also:
Constant Field Values

JOB_NAME_ATTRIBUTE_NAME

public static final java.lang.String JOB_NAME_ATTRIBUTE_NAME
Attribute name that identifies the job name which is job-name.

See Also:
Constant Field Values

JOB_STATUS_ATTRIBUTE_NAME

public static final java.lang.String JOB_STATUS_ATTRIBUTE_NAME
Attribute name that identifies the job status which is job-status.

See Also:
Constant Field Values