public static final class ExecJobRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ExecJobRequest.Builder |
appId(String appId)
The job template ID.
|
ExecJobRequest |
build() |
ExecJobRequest.Builder |
command(String command)
The command that is used to start the image.
|
ExecJobRequest.Builder |
commandArgs(String commandArgs)
The parameters of the image startup command.
|
ExecJobRequest.Builder |
envs(String envs)
The environment variables.
|
ExecJobRequest.Builder |
eventId(String eventId)
The event ID.
|
ExecJobRequest.Builder |
jarStartArgs(String jarStartArgs)
The arguments in the JAR package.
|
ExecJobRequest.Builder |
jarStartOptions(String jarStartOptions)
The option settings in the JAR package.
|
ExecJobRequest.Builder |
replicas(String replicas)
The number of concurrent instances.
|
ExecJobRequest.Builder |
time(String time)
The time at which the job is triggered.
|
ExecJobRequest.Builder |
warStartOptions(String warStartOptions)
The startup command of the WAR package.
|
public ExecJobRequest.Builder appId(String appId)
The job template ID.
This parameter is required.
example:ee1a7a07-abcb-4652-a1d3-2d57f415****
public ExecJobRequest.Builder command(String command)
The command that is used to start the image. The command must be an existing executable object in the container. Example:
command:
- echo
- abc
- >
- file0
In this example, the Command parameter is set to Command="echo", CommandArgs=["abc", ">", "file0"].
echo
public ExecJobRequest.Builder commandArgs(String commandArgs)
The parameters of the image startup command. The CommandArgs parameter specifies the parameters that are required for the Command parameter. The name must meet the following format requirements:
["a","b"]
In the preceding example, the CommandArgs parameter is set to CommandArgs=["abc", ">", "file0"]. The data type of ["abc", ">", "file0"] must be an array of strings in the JSON format. This parameter is optional.
["a","b"]
public ExecJobRequest.Builder envs(String envs)
The environment variables. You can configure custom environment variables or reference a ConfigMap. If you want to reference a ConfigMap, you must first create a ConfigMap. For more information, see CreateConfigMap. Valid values:
Configure custom environment variables
Reference ConfigMap
sae-sys-configmap-all-<ConfigMap name>. Example: sae-sys-configmap-all-test1.configMapRef.[{"name":"envtmp","value":"0"}]
public ExecJobRequest.Builder eventId(String eventId)
The event ID. This is a user-defined parameter used for idempotency so that only one job is created for the same event ID.
example:custom
public ExecJobRequest.Builder jarStartArgs(String jarStartArgs)
The arguments in the JAR package. The arguments are used to start the job. The default startup command is $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
custom-args
public ExecJobRequest.Builder jarStartOptions(String jarStartOptions)
The option settings in the JAR package. The settings are used to start the job. The default startup command is $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArg.
-Xms4G -Xmx4G
public ExecJobRequest.Builder replicas(String replicas)
The number of concurrent instances.
example:3
public ExecJobRequest.Builder time(String time)
The time at which the job is triggered. Format: yyyy-MM-dd\"T\"HH:mm:ss\"Z\".
2023-09-14T14:25:02Z
public ExecJobRequest.Builder warStartOptions(String warStartOptions)
The startup command of the WAR package. For information about how to configure the startup command, see Configure a startup command.
example:CATALINA_OPTS="$CATALINA_OPTS $Options" catalina.sh run
public ExecJobRequest build()
Copyright © 2026. All rights reserved.