/** * Defines whether or not to include file location information for Log4J * appender messages. File location information includes the method, line * number, class, etc. * * @return If true, will include file location (method, line number, etc) * information in Log4J appender messages. */ public boolean getLocationEnabled() { return "true".equals(get(Log4jSystemConfig.LOCATION_ENABLED, "false")); }
/** * Defines whether or not to include file location information for Log4J * appender messages. File location information includes the method, line * number, class, etc. * * @return If true, will include file location (method, line number, etc) * information in Log4J appender messages. */ public boolean getLocationEnabled() { return "true".equals(get(Log4jSystemConfig.LOCATION_ENABLED, "false")); }
/** * Get the class name according to the serde name. * * @param name serde name * @return serde factory name, or null if there is no factory defined for the * supplied serde name. */ public String getSerdeClass(String name) { return get(String.format(SerializerConfig.SERDE_FACTORY_CLASS(), name), null); }
/** * Get the class name according to the serde name. * * @param name serde name * @return serde factory name, or null if there is no factory defined for the * supplied serde name. */ public String getSerdeClass(String name) { return get(String.format(SerializerConfig.SERDE_FACTORY_CLASS(), name), null); }
/** * Get the log4j system name from the config. * If it's not defined, throw a ConfigException * * @return log4j system name */ public String getSystemName() { String log4jSystem = get(TASK_LOG4J_SYSTEM, null); if (log4jSystem == null) { throw new ConfigException("Missing " + TASK_LOG4J_SYSTEM + " configuration. Can't figure out the system name to use."); } return log4jSystem; }
/** * Get the log4j system name from the config. * If it's not defined, throw a ConfigException * * @return log4j system name */ public String getSystemName() { String log4jSystem = get(TASK_LOG4J_SYSTEM, null); if (log4jSystem == null) { throw new ConfigException("Missing " + TASK_LOG4J_SYSTEM + " configuration. Can't figure out the system name to use."); } return log4jSystem; }
public String getJobId() { return get(JobConfig.JOB_ID(), null); }
public String getJobName() { return get(JobConfig.JOB_NAME(), null); }
public String getJobName() { return get(JobConfig.JOB_NAME(), null); }
public String getJobId() { return get(JobConfig.JOB_ID(), null); }