Search in sources :

Example 1 with CDH6xDistributionTemplate

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;
}
Also used : CDH6xDistributionTemplate(org.talend.hadoop.distribution.cdh6x.CDH6xDistributionTemplate) IDynamicDistributionTemplate(org.talend.hadoop.distribution.dynamic.template.IDynamicDistributionTemplate) IDynamicPluginConfiguration(org.talend.core.runtime.dynamic.IDynamicPluginConfiguration)

Aggregations

IDynamicPluginConfiguration (org.talend.core.runtime.dynamic.IDynamicPluginConfiguration)1 CDH6xDistributionTemplate (org.talend.hadoop.distribution.cdh6x.CDH6xDistributionTemplate)1 IDynamicDistributionTemplate (org.talend.hadoop.distribution.dynamic.template.IDynamicDistributionTemplate)1