Class FlinkJobProperties
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ClusterJobProperties
com.azure.resourcemanager.hdinsight.containers.models.FlinkJobProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ClusterJobProperties>
Properties of flink job.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction()Get the action property: A string property that indicates the action to be performed on the Flink job.Get the actionResult property: Action result of job.args()Get the args property: A string property representing additional JVM arguments for the Flink job.Get the entryClass property: A string property that specifies the entry class for the Flink job.Get the flinkConfiguration property: Additional properties used to configure Flink jobs.static FlinkJobPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FlinkJobProperties from the JsonReader.jarName()Get the jarName property: A string property that represents the name of the job JAR.jobId()Get the jobId property: Unique id for identifying a job.Get the jobJarDirectory property: A string property that specifies the directory where the job JAR is located.jobName()Get the jobName property: Name of job.Get the jobOutput property: Output of job.jobType()Get the jobType property: Type of cluster job.Get the lastSavePoint property: The last savepoint.runId()Get the runId property: Run id of job.Get the savePointName property: A string property that represents the name of the savepoint for the Flink job.status()Get the status property: Status of job.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAction(Action action) Set the action property: A string property that indicates the action to be performed on the Flink job.Set the args property: A string property representing additional JVM arguments for the Flink job.withEntryClass(String entryClass) Set the entryClass property: A string property that specifies the entry class for the Flink job.withFlinkConfiguration(Map<String, String> flinkConfiguration) Set the flinkConfiguration property: Additional properties used to configure Flink jobs.withJarName(String jarName) Set the jarName property: A string property that represents the name of the job JAR.withJobJarDirectory(String jobJarDirectory) Set the jobJarDirectory property: A string property that specifies the directory where the job JAR is located.withJobName(String jobName) Set the jobName property: Name of job.Set the runId property: Run id of job.withSavePointName(String savePointName) Set the savePointName property: A string property that represents the name of the savepoint for the Flink job.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
FlinkJobProperties
public FlinkJobProperties()Creates an instance of FlinkJobProperties class.
-
-
Method Details
-
jobType
Get the jobType property: Type of cluster job.- Overrides:
jobTypein classClusterJobProperties- Returns:
- the jobType value.
-
runId
-
withRunId
Set the runId property: Run id of job.- Parameters:
runId- the runId value to set.- Returns:
- the FlinkJobProperties object itself.
-
jobName
-
withJobName
Set the jobName property: Name of job.- Parameters:
jobName- the jobName value to set.- Returns:
- the FlinkJobProperties object itself.
-
jobJarDirectory
Get the jobJarDirectory property: A string property that specifies the directory where the job JAR is located.- Returns:
- the jobJarDirectory value.
-
withJobJarDirectory
Set the jobJarDirectory property: A string property that specifies the directory where the job JAR is located.- Parameters:
jobJarDirectory- the jobJarDirectory value to set.- Returns:
- the FlinkJobProperties object itself.
-
jarName
Get the jarName property: A string property that represents the name of the job JAR.- Returns:
- the jarName value.
-
withJarName
Set the jarName property: A string property that represents the name of the job JAR.- Parameters:
jarName- the jarName value to set.- Returns:
- the FlinkJobProperties object itself.
-
entryClass
Get the entryClass property: A string property that specifies the entry class for the Flink job.- Returns:
- the entryClass value.
-
withEntryClass
Set the entryClass property: A string property that specifies the entry class for the Flink job.- Parameters:
entryClass- the entryClass value to set.- Returns:
- the FlinkJobProperties object itself.
-
args
Get the args property: A string property representing additional JVM arguments for the Flink job. It should be space separated value.- Returns:
- the args value.
-
withArgs
Set the args property: A string property representing additional JVM arguments for the Flink job. It should be space separated value.- Parameters:
args- the args value to set.- Returns:
- the FlinkJobProperties object itself.
-
savePointName
Get the savePointName property: A string property that represents the name of the savepoint for the Flink job.- Returns:
- the savePointName value.
-
withSavePointName
Set the savePointName property: A string property that represents the name of the savepoint for the Flink job.- Parameters:
savePointName- the savePointName value to set.- Returns:
- the FlinkJobProperties object itself.
-
action
Get the action property: A string property that indicates the action to be performed on the Flink job. It can have one of the following enum values => NEW, UPDATE, STATELESS_UPDATE, STOP, START, CANCEL, SAVEPOINT, LIST_SAVEPOINT, or DELETE.- Returns:
- the action value.
-
withAction
Set the action property: A string property that indicates the action to be performed on the Flink job. It can have one of the following enum values => NEW, UPDATE, STATELESS_UPDATE, STOP, START, CANCEL, SAVEPOINT, LIST_SAVEPOINT, or DELETE.- Parameters:
action- the action value to set.- Returns:
- the FlinkJobProperties object itself.
-
flinkConfiguration
Get the flinkConfiguration property: Additional properties used to configure Flink jobs. It allows users to set properties such as parallelism and jobSavePointDirectory. It accepts additional key-value pairs as properties, where the keys are strings and the values are strings as well.- Returns:
- the flinkConfiguration value.
-
withFlinkConfiguration
Set the flinkConfiguration property: Additional properties used to configure Flink jobs. It allows users to set properties such as parallelism and jobSavePointDirectory. It accepts additional key-value pairs as properties, where the keys are strings and the values are strings as well.- Parameters:
flinkConfiguration- the flinkConfiguration value to set.- Returns:
- the FlinkJobProperties object itself.
-
jobId
Get the jobId property: Unique id for identifying a job.- Returns:
- the jobId value.
-
status
-
jobOutput
-
actionResult
Get the actionResult property: Action result of job.- Returns:
- the actionResult value.
-
lastSavePoint
Get the lastSavePoint property: The last savepoint.- Returns:
- the lastSavePoint value.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classClusterJobProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ClusterJobProperties>- Overrides:
toJsonin classClusterJobProperties- Throws:
IOException
-
fromJson
Reads an instance of FlinkJobProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of FlinkJobProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the FlinkJobProperties.
-