Class TrinoCoordinator
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.TrinoCoordinator
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TrinoCoordinator>
public final class TrinoCoordinator
extends Object
implements com.azure.json.JsonSerializable<TrinoCoordinator>
Trino Coordinator.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondebug()Get the debug property: Trino debug configuration.static TrinoCoordinatorfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TrinoCoordinator from the JsonReader.Get the highAvailabilityEnabled property: The flag that if enable coordinator HA, uses multiple coordinator replicas with auto failover, one per each head node.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDebug(TrinoDebugConfig debug) Set the debug property: Trino debug configuration.withHighAvailabilityEnabled(Boolean highAvailabilityEnabled) Set the highAvailabilityEnabled property: The flag that if enable coordinator HA, uses multiple coordinator replicas with auto failover, one per each head node.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
-
TrinoCoordinator
public TrinoCoordinator()Creates an instance of TrinoCoordinator class.
-
-
Method Details
-
debug
Get the debug property: Trino debug configuration.- Returns:
- the debug value.
-
withDebug
Set the debug property: Trino debug configuration.- Parameters:
debug- the debug value to set.- Returns:
- the TrinoCoordinator object itself.
-
highAvailabilityEnabled
Get the highAvailabilityEnabled property: The flag that if enable coordinator HA, uses multiple coordinator replicas with auto failover, one per each head node. Default: true.- Returns:
- the highAvailabilityEnabled value.
-
withHighAvailabilityEnabled
Set the highAvailabilityEnabled property: The flag that if enable coordinator HA, uses multiple coordinator replicas with auto failover, one per each head node. Default: true.- Parameters:
highAvailabilityEnabled- the highAvailabilityEnabled value to set.- Returns:
- the TrinoCoordinator 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<TrinoCoordinator>- Throws:
IOException
-
fromJson
Reads an instance of TrinoCoordinator from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TrinoCoordinator 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 TrinoCoordinator.
-