[Batchserver-cvs] batchserver/src/org/jmonks/batchserver/framework/common ErrorCode.java,1.10,1.11 F
Brought to you by:
suresh_pragada
From: Suresh <sur...@us...> - 2006-03-13 14:32:45
|
Update of /cvsroot/batchserver/batchserver/src/org/jmonks/batchserver/framework/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19442/common Modified Files: ErrorCode.java FrameworkUtil.java Log Message: no message Index: FrameworkUtil.java =================================================================== RCS file: /cvsroot/batchserver/batchserver/src/org/jmonks/batchserver/framework/common/FrameworkUtil.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** FrameworkUtil.java 10 Mar 2006 08:14:21 -0000 1.6 --- FrameworkUtil.java 13 Mar 2006 14:32:37 -0000 1.7 *************** *** 3,6 **** --- 3,7 ---- import java.util.Map; import java.util.StringTokenizer; + import java.util.logging.Logger; import org.w3c.dom.Element; import org.w3c.dom.Node; *************** *** 24,27 **** --- 25,29 ---- public final class FrameworkUtil { + private static Logger logger=Logger.getLogger(FrameworkUtil.class.getName()); /** * Private constructor to make sure it will not be instantiated. *************** *** 53,56 **** --- 55,59 ---- public static void loadPropertiesFromElementToMap(Element configElement,Map propertyMap) { + logger.entering(FrameworkUtil.class.getName(),"loadPropertiesFromElementToMap"); if(configElement==null) throw new IllegalArgumentException("Input configuration element configElement cannot be null"); *************** *** 78,81 **** --- 81,85 ---- propertyMap.put(key,value); } + logger.exiting(FrameworkUtil.class.getName(),"loadPropertiesFromElementToMap"); } *************** *** 99,102 **** --- 103,107 ---- public static void loadPropertiesFromStringToMap(String propertiesString,Map propertyMap) { + logger.entering(FrameworkUtil.class.getName(),"loadPropertiesFromStringToMap"); if(propertiesString==null) throw new IllegalArgumentException("Input properties string cannot be null"); *************** *** 114,117 **** --- 119,123 ---- propertyMap.put(key,value); } + logger.exiting(FrameworkUtil.class.getName(),"loadPropertiesFromStringToMap"); } Index: ErrorCode.java =================================================================== RCS file: /cvsroot/batchserver/batchserver/src/org/jmonks/batchserver/framework/common/ErrorCode.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** ErrorCode.java 11 Mar 2006 18:36:20 -0000 1.10 --- ErrorCode.java 13 Mar 2006 14:32:37 -0000 1.11 *************** *** 79,127 **** /** ! * Framework Configuration Error Codes. ! */ ! public static final ErrorCode JOBNAME_KEY_NOT_FOUND = new ErrorCode(1001,"job-name key not found in the startup properties"); ! public static final ErrorCode FRAMEWORK_CONFIG_FILE_NOT_FOUND = new ErrorCode(1002,"framework configuration file framework-config.xml is not found in the classpath"); ! public static final ErrorCode NONE_OR_MULITPLE_JOB_CONFIG_FACTORY_CONFIG_TAGS = new ErrorCode(1003,"None or multiple job-config-factory-config tag(s) in framework configuration"); ! public static final ErrorCode NONE_OR_MULITPLE_LOGGING_CONFIG_TAGS = new ErrorCode(1004,"None or multiple logging-config tag(s) in framework configuration"); ! public static final ErrorCode NONE_OR_MULITPLE_MGMT_MNTR_CONFIG_TAGS = new ErrorCode(1005,"None or multiple mgmt-mntr-config tag(s) in framework configuration"); ! public static final ErrorCode NONE_OR_MULITPLE_REPOSITORY_CONFIG_TAGS = new ErrorCode(1006,"None or multiple repository-config tag(s) in framework configuration"); ! public static final ErrorCode JOB_CONFIG_FACTORY_CLASS_NAME_ATTRIB_NOT_FOUND = new ErrorCode(1007,"Attribute job-config-factory-class-name not found in job-config-factory-config element"); ! public static final ErrorCode LOGGING_DIRECTORY_NOT_DEFINED = new ErrorCode(1008,"Logging directory is not defined in the logging-config"); ! public static final ErrorCode MGMT_MNTR_CLASS_NAME_ATTRIB_NOT_FOUND = new ErrorCode(1009,"Attribute mgmt-mntr-class-name not found in mgmt-mntr-config element"); ! public static final ErrorCode REPOSITORY_CLASS_NAME_ATTRIB_NOT_FOUND = new ErrorCode(1010,"Attribute repository-class-name not found in repository-config element"); ! public static final ErrorCode CONTROLLER_CLASS_NAME_ATTRIB_NOT_FOUND = new ErrorCode(1011,"Attribute controller-class-name not found in job-controller element"); ! public static final ErrorCode NONE_OR_MULITPLE_JOB_CONTROLLER_CONFIG_TAGS = new ErrorCode(1012,"None or multiple job-controller-config elements found in framework configuration"); ! ! /** ! * Job Configuration Error Codes. */ ! public static final ErrorCode JOB_NOT_CONFIGURED = new ErrorCode(2001,"job is not configured in the job configuration source"); ! public static final ErrorCode JOB_CONFIG_FACTORY_CLASS_NOT_VALID = new ErrorCode(2002,"defined configuration factory class is not assignable to the JobConfigFactory super class or cannot be instantiated because of illegal access to constructor or exception in constructor"); ! public static final ErrorCode JOB_CONFIG_FACTORY_CLASS_NOT_FOUND = new ErrorCode(2003,"defined configuration factory class could not be found on the classpath"); ! public static final ErrorCode JOB_CONFIG_FACTORY_CLASS_CONSTRUCTOR_NOT_FOUND = new ErrorCode(2004,"constructor takes map as parameter not found in defined config factory class"); ! public static final ErrorCode XML_JOB_CONFIG_FACTORY_PROPERTIES_MISSING = new ErrorCode(2005,"required properties for XMLJobConfigFactory are missing"); ! public static final ErrorCode XML_JOB_CONFIG_FACTORY_INVALID_ABS_LOCATION = new ErrorCode(2006,"defined absolute file path for the XML Job Configuration file is not valid"); ! public static final ErrorCode XML_JOB_CONFIG_FACTORY_INVALID_CLASSPATH_LOCATION = new ErrorCode(2006,"defined classpath location for the XML Job Configiguation file is not valid"); ! public static final ErrorCode NO_BATCH_CONFIG_ELEMENT_IN_XML_JOB_CONFIGURATION = new ErrorCode(2008,"could not load the batch-config element from the defined XML job configuration file"); ! public static final ErrorCode NONE_OR_MULTIPLE_JOB_CONTROLLER_CONFIGS = new ErrorCode(2009,"None or multiple job-controller configurations found in job-config element"); ! public static final ErrorCode JOB_CONTROLLER_CLASS_NOT_DEFINED = new ErrorCode(2010,"job-controller-class-name is not defined in job-controller"); ! public static final ErrorCode JOB_CONTROLLER_CONFIG_CLASS_NOT_DEFINED = new ErrorCode(2011,"job controller config class is not defined in framework configuration"); ! public static final ErrorCode JOB_CONTROLLER_CONFIG_CLASS_NOT_VALID = new ErrorCode(2012,"job controller config class is not a valid"); ! public static final ErrorCode NONE_OR_MULTIPLE_BASIC_JOB_PROCESSOR_ELEMENTS_FOUND = new ErrorCode(2013,"None or multiple basic job processor elements found in job controller"); ! public static final ErrorCode BASIC_JOB_PROCESSOR_CLASS_NAME_NOT_DEFINED = new ErrorCode(2014,"basic-job-processor-class-name is not defined in basic-job-processor element."); ! ! public static final ErrorCode NONE_OR_MULTIPLE_POOL_JOB_PROCESSOR_ELEMENTS_FOUND = new ErrorCode(2015,"None or multiple pool job processor elements found in job controller"); ! public static final ErrorCode POOL_JOB_PROCESSOR_CLASS_NAME_NOT_DEFINED = new ErrorCode(2016,"pool-job-processor-class-name is not defined in pool-job-processor element."); ! public static final ErrorCode NONE_OR_MULTIPLE_POOL_JOB_LOADER_ELEMENTS_FOUND = new ErrorCode(2017,"None or multiple pool job loader elements found in job controller"); ! public static final ErrorCode POOL_JOB_LOADER_CLASS_NAME_NOT_DEFINED = new ErrorCode(2018,"pool-job-loader-class-name is not defined in pool-job-loader element."); ! public static final ErrorCode NONE_OR_MULTIPLE_JOB_POOL_ELEMENTS_FOUND = new ErrorCode(2019,"None or multiple job pool elements found in job controller"); ! public static final ErrorCode POOL_JOB_POOL_CLASS_NAME_NOT_DEFINED = new ErrorCode(2020,"job-pool-class-name is not defined in job-pool element."); - public static final ErrorCode DB_JOB_CONFIG_FACTORY_PROPERTIES_INVALID = new ErrorCode(2021,"required properties to create db job config factory are missing or values are not valid"); - public static final ErrorCode CANNOT_CREATE_DB_JOB_CONFIG = new ErrorCode(2022,"Cannot create JobConfig due sql exception"); - public static final ErrorCode BASIC_JOB_CONTROLLER_CONFIG_NOT_FOUND = new ErrorCode(2023,"basic job controller cofiguration not defined"); - public static final ErrorCode POOL_JOB_CONTROLLER_CONFIG_NOT_FOUND = new ErrorCode(2024,"pool job controller cofiguration not defined"); - public static final ErrorCode DB_CONNECTIVITY_ERROR = new ErrorCode(2025,"SQLException while doing the database activity"); - } --- 79,89 ---- /** ! * Configuration Error Codes. */ ! public static final ErrorCode FRAMEWORK_CONFIGURATION_ERROR = new ErrorCode(1001,"Error while accessing or parsing the framework configuration file."); ! public static final ErrorCode JOB_CONFIG_FACTORY_CONFIGURATION_ERROR = new ErrorCode(1002,"Job configuration factory cannot be created by the given factory configuration."); ! public static final ErrorCode JOB_CONFIGURATION_ERROR = new ErrorCode(1003,"Error while loading the job configuration from the defined factory."); ! public static final ErrorCode JOB_IS_NOT_CONFIGURED = new ErrorCode(1004,"Job is not configured"); ! public static final ErrorCode JOB_CONTROLLER_CONFIGURATION_ERROR = new ErrorCode(1005,"Job controller configuration is not defined properly."); } |