use of com.dtstack.taier.pluginapi.enums.EDeployMode in project Taier by DTStack.
the class PluginWrapper method wrapperPluginInfo.
public Map<String, Object> wrapperPluginInfo(Integer taskType, String taskParam, Integer computeType, String componentVersion, Long tenantId) {
EDeployMode deployMode = EDeployMode.PERJOB;
if (EScheduleJobType.SYNC.getType().equals(taskType)) {
deployMode = TaskParamsUtils.parseDeployTypeByTaskParams(taskParam, computeType);
}
String componentVersionValue = scheduleDictService.convertVersionNameToValue(componentVersion, taskType);
JSONObject pluginInfo = clusterService.pluginInfoJSON(tenantId, taskType, deployMode.getType(), componentVersionValue);
pluginInfo.put(DEPLOY_MODEL, deployMode.getType());
return pluginInfo;
}
Aggregations