}
private boolean initialize(String type) {
ClassLoader classLoader = Utilities.getSessionSpecifiedClassLoader();
try {
StatDB statDB = type.startsWith("jdbc") ? StatDB.jdbc : StatDB.valueOf(type);
publisherImplementation = (Class<? extends Serializable>)
Class.forName(statDB.getPublisher(jobConf), true, classLoader);
aggregatorImplementation = (Class<? extends Serializable>)
Class.forName(statDB.getAggregator(jobConf), true, classLoader);
} catch (Exception e) {
LOG.error(type + " Publisher/Aggregator classes cannot be loaded.", e);
return false;
}
return true;