init(services.getConf());
}
private void init(Configuration conf) throws ServiceException {
Class<?> defaultClass = conf.getClass(CACHE_MANAGER_IMPL, null);
dependencyCache = (defaultClass == null) ? new SimpleHCatDependencyCache()
: (HCatDependencyCache) ReflectionUtils.newInstance(defaultClass, null);
dependencyCache.init(conf);
LOG.info("PartitionDependencyManagerService initialized. Dependency cache is {0} ", dependencyCache.getClass()
.getName());
purgeEnabled = Services.get().get(JobsConcurrencyService.class).isHighlyAvailableMode();