use of org.talend.core.runtime.dynamic.IDynamicPluginConfiguration in project tbd-studio-se by Talend.
the class DynamicMapReduceModuleGroupTemplate method getNodeModuleGroups.
@Override
public Map<NodeComponentTypeBean, Set<DistributionModuleGroup>> getNodeModuleGroups() throws Exception {
Map<NodeComponentTypeBean, Set<DistributionModuleGroup>> nodeModuleGroups = super.getNodeModuleGroups();
DynamicPluginAdapter pluginAdapter = getPluginAdapter();
IDynamicPluginConfiguration configuration = pluginAdapter.getPluginConfiguration();
String distribution = configuration.getDistribution();
String version = configuration.getId();
buildNodeModuleGroups4MapReduce(pluginAdapter, nodeModuleGroups, distribution, version);
return nodeModuleGroups;
}
use of org.talend.core.runtime.dynamic.IDynamicPluginConfiguration in project tbd-studio-se by Talend.
the class DynamicSparkStreamingModuleGroupTemplate method getNodeModuleGroups.
@Override
public Map<NodeComponentTypeBean, Set<DistributionModuleGroup>> getNodeModuleGroups() throws Exception {
Map<NodeComponentTypeBean, Set<DistributionModuleGroup>> nodeModuleGroups = super.getNodeModuleGroups();
DynamicPluginAdapter pluginAdapter = getPluginAdapter();
IDynamicPluginConfiguration configuration = pluginAdapter.getPluginConfiguration();
String distribution = configuration.getDistribution();
String version = configuration.getId();
buildNodeModuleGroups4SparkStreaming(pluginAdapter, nodeModuleGroups, distribution, version);
return nodeModuleGroups;
}
use of org.talend.core.runtime.dynamic.IDynamicPluginConfiguration in project tbd-studio-se by Talend.
the class AbstractDynamicDistributionTemplate method getSparkVersions.
@Override
public Set<ESparkVersion> getSparkVersions() {
Set<ESparkVersion> version = new HashSet<>();
IDynamicPluginConfiguration pluginConfiguration = pluginAdapter.getPluginConfiguration();
List<String> selectedSparkVersions = (List<String>) pluginConfiguration.getAttribute(DynamicConstants.ATTR_SELECTED_SPARK_VERSIONS);
if (selectedSparkVersions != null) {
List<ESparkVersion> sparkVersions = DynamicDistributionUtils.convert2ESparkVersions(selectedSparkVersions);
version.addAll(sparkVersions);
}
return version;
}
use of org.talend.core.runtime.dynamic.IDynamicPluginConfiguration in project tbd-studio-se by Talend.
the class AbstractModuleGroup method getModuleGroups.
public Set<DistributionModuleGroup> getModuleGroups() throws Exception {
IDynamicPluginConfiguration configuration = getPluginAdapter().getPluginConfiguration();
String distribution = configuration.getDistribution();
String version = configuration.getId();
return getModuleGroups(distribution, version);
}
use of org.talend.core.runtime.dynamic.IDynamicPluginConfiguration in project tbd-studio-se by Talend.
the class DynamicPluginComparator method compare.
@Override
public int compare(IDynamicPlugin o1, IDynamicPlugin o2) {
IDynamicPluginConfiguration config1 = o1.getPluginConfiguration();
IDynamicPluginConfiguration config2 = o2.getPluginConfiguration();
return config1.getName().compareTo(config2.getName());
}
Aggregations