Class FlinkJobProfile
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.FlinkJobProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FlinkJobProfile>
public final class FlinkJobProfile
extends Object
implements com.azure.json.JsonSerializable<FlinkJobProfile>
Job specifications for flink clusters in application deployment mode. The specification is immutable even if job
properties are changed by calling the RunJob API, please use the ListJob API to get the latest job information.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionargs()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.static FlinkJobProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FlinkJobProfile from the JsonReader.jarName()Get the jarName property: A string property that represents the name of the job JAR.Get the jobJarDirectory property: A string property that specifies the directory where the job JAR is located.Get the savePointName property: A string property that represents the name of the savepoint for the Flink job.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the upgradeMode property: A string property that indicates the upgrade mode to be performed on the Flink job.voidvalidate()Validates the instance.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.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.withSavePointName(String savePointName) Set the savePointName property: A string property that represents the name of the savepoint for the Flink job.withUpgradeMode(UpgradeMode upgradeMode) Set the upgradeMode property: A string property that indicates the upgrade mode to be performed on 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
-
FlinkJobProfile
public FlinkJobProfile()Creates an instance of FlinkJobProfile class.
-
-
Method Details
-
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 FlinkJobProfile 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 FlinkJobProfile object itself.
-
entryClass
Get the entryClass property: A string property that specifies the entry class for the Flink job. If not specified, the entry point is auto-detected from the flink job jar package.- Returns:
- the entryClass value.
-
withEntryClass
Set the entryClass property: A string property that specifies the entry class for the Flink job. If not specified, the entry point is auto-detected from the flink job jar package.- Parameters:
entryClass- the entryClass value to set.- Returns:
- the FlinkJobProfile 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 FlinkJobProfile 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 FlinkJobProfile object itself.
-
upgradeMode
Get the upgradeMode property: A string property that indicates the upgrade mode to be performed on the Flink job. It can have one of the following enum values => STATELESS_UPDATE, UPDATE, LAST_STATE_UPDATE.- Returns:
- the upgradeMode value.
-
withUpgradeMode
Set the upgradeMode property: A string property that indicates the upgrade mode to be performed on the Flink job. It can have one of the following enum values => STATELESS_UPDATE, UPDATE, LAST_STATE_UPDATE.- Parameters:
upgradeMode- the upgradeMode value to set.- Returns:
- the FlinkJobProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<FlinkJobProfile>- Throws:
IOException
-
fromJson
Reads an instance of FlinkJobProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of FlinkJobProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the FlinkJobProfile.
-