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

java.lang.Object
  extended byorg.jmonks.batch.framework.config.JobLoggingConfig
      extended byorg.jmonks.batch.framework.config.db.DBJobLoggingConfig

public class DBJobLoggingConfig
extends JobLoggingConfig

DBJobLoggingConfig reads the job logging configuration from the table job_logging_config. Below is the schema of job_logging_config table.

      
Column NameData TypePurpose
JOB_NAMEVARCHAR2(64)Name of the Job.
JOB_LOGGER_NAMEVARCHAR2(256)Package name of the logger. Values will be like com.mycompany.jobs.myjob
JOB_LOGGER_LEVELVARCHAR2(32)Level of the logger. Values can be TRACE,DEBUG,INFO,WARN,ERROR,FATAL

Since:
1.0
Version:
1.0
Author:
Suresh Pragada

Nested Class Summary
 
Nested classes inherited from class org.jmonks.batch.framework.config.JobLoggingConfig
JobLoggingConfig.JobLoggerConfig
 
Constructor Summary
DBJobLoggingConfig(java.lang.String jobName, java.sql.Connection connection)
          Reads the configuration from the table job_logging_config and add each record as JobLoggerConfig object.
 
Methods inherited from class org.jmonks.batch.framework.config.JobLoggingConfig
addLogger, getLoggers, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBJobLoggingConfig

public DBJobLoggingConfig(java.lang.String jobName,
                          java.sql.Connection connection)
Reads the configuration from the table job_logging_config and add each record as JobLoggerConfig object.

Parameters:
jobName - Name of the job.
connection - Database connection to the defined database.