All Implemented Interfaces:
com.azure.json.JsonSerializable<DistributionConfiguration>

public final class Mpi extends DistributionConfiguration
MPI distribution configuration.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Mpi()
    Creates an instance of Mpi class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the distributionType property: [Required] Specifies the type of distribution framework.
    static Mpi
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of Mpi from the JsonReader.
    Get the processCountPerInstance property: Number of processes per MPI node.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withProcessCountPerInstance(Integer processCountPerInstance)
    Set the processCountPerInstance property: Number of processes per MPI node.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • Mpi

      public Mpi()
      Creates an instance of Mpi class.
  • Method Details

    • distributionType

      public DistributionType distributionType()
      Get the distributionType property: [Required] Specifies the type of distribution framework.
      Overrides:
      distributionType in class DistributionConfiguration
      Returns:
      the distributionType value.
    • processCountPerInstance

      public Integer processCountPerInstance()
      Get the processCountPerInstance property: Number of processes per MPI node.
      Returns:
      the processCountPerInstance value.
    • withProcessCountPerInstance

      public Mpi withProcessCountPerInstance(Integer processCountPerInstance)
      Set the processCountPerInstance property: Number of processes per MPI node.
      Parameters:
      processCountPerInstance - the processCountPerInstance value to set.
      Returns:
      the Mpi object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class DistributionConfiguration
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<DistributionConfiguration>
      Overrides:
      toJson in class DistributionConfiguration
      Throws:
      IOException
    • fromJson

      public static Mpi fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of Mpi from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of Mpi 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 Mpi.