-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add java jvm memory spec on crontab trigger type
- Loading branch information
1 parent
96f2d37
commit 9f4b6e3
Showing
2 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,17 +20,21 @@ | |
|
||
|
||
import com.alibaba.fastjson.JSONObject; | ||
import com.qlangtech.tis.job.common.JobParams; | ||
import com.qlangtech.tis.plugin.PluginAndCfgsSnapshotUtils; | ||
|
||
import java.util.Objects; | ||
import java.util.concurrent.atomic.AtomicReference; | ||
|
||
/** | ||
* @author 百岁 ([email protected]) | ||
* @date 2023/12/11 | ||
*/ | ||
public class PowerjobTriggerBuildResult extends TriggerBuildResult { | ||
private String pluginCfgsMetas; | ||
/** | ||
* 用于Crontab任务传递的参数 | ||
*/ | ||
private String javaMemorySpec; | ||
|
||
public PowerjobTriggerBuildResult() { | ||
} | ||
|
@@ -40,9 +44,18 @@ public PowerjobTriggerBuildResult(boolean success, JSONObject instanceParams) { | |
// JSONObject instanceParams = Objects.requireNonNull(instanceParamsRef).get(); | ||
pluginCfgsMetas = Objects.requireNonNull(instanceParams, "instanceParams can not be null") // | ||
.getString(PluginAndCfgsSnapshotUtils.KEY_PLUGIN_CFGS_METAS); | ||
this.javaMemorySpec = instanceParams.getString(JobParams.KEY_JAVA_MEMORY_SPEC); | ||
|
||
} | ||
|
||
public String getJavaMemorySpec() { | ||
return javaMemorySpec; | ||
} | ||
|
||
public void setJavaMemorySpec(String javaMemorySpec) { | ||
this.javaMemorySpec = javaMemorySpec; | ||
} | ||
|
||
public String getPluginCfgsMetas() { | ||
return pluginCfgsMetas; | ||
} | ||
|