org.jmonks.batch.framework.config
Class JobConfig

java.lang.Object
  extended byorg.jmonks.batch.framework.config.JobConfig
Direct Known Subclasses:
DBJobConfig, XMLJobConfig

public abstract class JobConfig
extends java.lang.Object

JobConfig represents the configuration needed to execute the job. This provides interface to the different implementations of JobConfig. Each factory will read the configuration from its source and creates JobConfig.

Since:
1.0
Version:
1.0
Author:
Suresh Pragada

Field Summary
protected  JobControllerConfig jobControllerConfig
          Controller configuration of the job.
protected  JobLoggingConfig jobLoggingConfig
          Map holds the logger information.
protected  java.lang.String jobName
          Name of the job this configuration belongs to.
protected  boolean jobStatus
          Variable holds the status of the job.
 
Constructor Summary
JobConfig()
           
 
Method Summary
 JobControllerConfig getJobControllerConfig()
          Returns the Controller configuraiton of the job this JobConfig represents.
 JobLoggingConfig getJobLoggingConfig()
          Returns job logging configuration.
 java.lang.String getJobName()
          Returns the name of the job.
 boolean getJobStatus()
          Returns whether the job is active or not.
 java.lang.String toString()
           Returns the string representation of JobConfig class in the format
{JobConfig [name = value] [status = value] [controllerConfig = value]}
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

jobName

protected java.lang.String jobName
Name of the job this configuration belongs to.


jobStatus

protected boolean jobStatus
Variable holds the status of the job. True stands for active and flase stands inactive.


jobControllerConfig

protected JobControllerConfig jobControllerConfig
Controller configuration of the job.


jobLoggingConfig

protected JobLoggingConfig jobLoggingConfig
Map holds the logger information. This will hold the logger

Constructor Detail

JobConfig

public JobConfig()
Method Detail

getJobControllerConfig

public JobControllerConfig getJobControllerConfig()
Returns the Controller configuraiton of the job this JobConfig represents.

Returns:
Returns controller configuration of this job.

getJobName

public java.lang.String getJobName()
Returns the name of the job.

Returns:
Returns the name of the job.

getJobStatus

public boolean getJobStatus()
Returns whether the job is active or not. This information will be found from the instance varaiable jobStatus. JobStatus of true indicates active and false indicates inactive.

Returns:
Returns true, if job is active, false otherwise.

getJobLoggingConfig

public JobLoggingConfig getJobLoggingConfig()
Returns job logging configuration. Job Loggers can be found by using the getLoggers method of this config object.

Returns:
Returns job logging configuraiton.

toString

public java.lang.String toString()

Returns the string representation of JobConfig class in the format
{JobConfig [name = value] [status = value] [controllerConfig = value]}

Returns:
Returns the string representation of JobConfig.