use of org.talend.hadoop.distribution.cdh6x.CDH6xDistributionTemplate in project tbd-studio-se by Talend.
the class DynamicCDH6xDistribution method initTemplate.
@Override
protected IDynamicDistributionTemplate initTemplate(DynamicPluginAdapter pluginAdapter, IDynamicMonitor monitor) throws Exception {
IDynamicDistributionTemplate dynamicDistributionTemplate = null;
IDynamicPluginConfiguration pluginConfiguration = pluginAdapter.getPluginConfiguration();
String templateId = pluginConfiguration.getTemplateId();
switch(templateId) {
case CDH6xDistributionTemplate.TEMPLATE_ID:
dynamicDistributionTemplate = new CDH6xDistributionTemplate(pluginAdapter);
break;
default:
throw new Exception("Unknown templateId: " + templateId);
}
return dynamicDistributionTemplate;
}
Aggregations