Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -254,15 +254,36 @@ public void setJobType(String jobType) {
}

public String getFlinkxDistDir() {
return flinkxDistDir;
String flinkxDistDir = this.flinkxDistDir;
String chunjunDistDir = this.chunjunDistDir;
String distDir;

if (StringUtils.isNotBlank(flinkxDistDir)) {
LOG.warn("Option 'flinkxDistDir' is deprecated, please replace with 'chunjunDistDir'.");
distDir = flinkxDistDir;
} else {
distDir = chunjunDistDir;
}
return distDir;
}

public void setFlinkxDistDir(String flinkxDistDir) {
this.flinkxDistDir = flinkxDistDir;
}

public String getRemoteFlinkxDistDir() {
return remoteFlinkxDistDir;
String remoteFlinkxDistDir = this.remoteFlinkxDistDir;
String remoteChunJunDistDir = this.remoteChunJunDistDir;
String remoteDir;

if (StringUtils.isNotBlank(remoteFlinkxDistDir)) {
LOG.warn(
"Option 'remoteFlinkxDistDir' is deprecated, please replace with 'remoteChunJunDistDir'.");
remoteDir = remoteFlinkxDistDir;
} else {
remoteDir = remoteChunJunDistDir;
}
return remoteDir;
}

public void setRemoteFlinkxDistDir(String remoteFlinkxDistDir) {
Expand Down