[Batchserver-cvs] batchserver/src/org/jmonks/batchserver/framework Main.java,1.10,1.11
Brought to you by:
suresh_pragada
From: Suresh <sur...@us...> - 2006-05-24 03:17:54
|
Update of /cvsroot/batchserver/batchserver/src/org/jmonks/batchserver/framework In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv22496/org/jmonks/batchserver/framework Modified Files: Main.java Log Message: no message Index: Main.java =================================================================== RCS file: /cvsroot/batchserver/batchserver/src/org/jmonks/batchserver/framework/Main.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** Main.java 23 May 2006 03:21:37 -0000 1.10 --- Main.java 24 May 2006 03:17:40 -0000 1.11 *************** *** 70,84 **** { jobName=(String)configMap.get("job-name"); if(jobName!=null && !"".equals(jobName.trim())) ! { ! logger.debug("Job to be invoked = " + jobName); logger.debug("Retrieving the framework configuration"); FrameworkConfig frameworkConfig=FrameworkConfig.getInstance(); logger.debug("Initializing the framework logging"); LoggingManager.initializeFrameworkLogging(frameworkConfig.getFrameworkLoggingConfig()); ! logger.debug("Retrieving the job config factory"); JobConfigFactory jobConfigFactory=JobConfigFactory.getJobConfigFactory(frameworkConfig.getJobConfigFactoryConfig()); logger.debug("Retrieving the job configuration"); JobConfig jobConfig=jobConfigFactory.getJobConfig(jobName); logger.debug("Initializing the job logging"); LoggingManager.initializeJobLogging(jobName,frameworkConfig.getFrameworkLoggingConfig(), jobConfig.getJobLoggingConfig()); --- 70,94 ---- { jobName=(String)configMap.get("job-name"); + logger.debug("Job to be invoked = " + jobName); if(jobName!=null && !"".equals(jobName.trim())) ! { ! /** ! * Get the framework configuration and initialize the framework logging. ! */ logger.debug("Retrieving the framework configuration"); FrameworkConfig frameworkConfig=FrameworkConfig.getInstance(); logger.debug("Initializing the framework logging"); LoggingManager.initializeFrameworkLogging(frameworkConfig.getFrameworkLoggingConfig()); ! /** ! * Get the job configuration from the configuration factory. ! */ ! logger.debug("Retrieving the configuration factory"); JobConfigFactory jobConfigFactory=JobConfigFactory.getJobConfigFactory(frameworkConfig.getJobConfigFactoryConfig()); logger.debug("Retrieving the job configuration"); JobConfig jobConfig=jobConfigFactory.getJobConfig(jobName); + /** + * Initialize the job logging and kick off the controller after + * registering it to the management agent. + */ logger.debug("Initializing the job logging"); LoggingManager.initializeJobLogging(jobName,frameworkConfig.getFrameworkLoggingConfig(), jobConfig.getJobLoggingConfig()); *************** *** 94,97 **** --- 104,108 ---- * Save the statistics */ + } else *************** *** 170,172 **** --- 181,184 ---- System.exit(errorCode.getCode()); } + } |