23.157. Class Partition

Namespace: ArmoniK.Core.Common.Injection.Options.Database
Assembly: ArmoniK.Core.Common.dll

Data structure to hold partitions metadata

public record Partition : IEquatable<Partition>

23.157.1. Inheritance

objectPartition

23.157.2. Implements

IEquatable<Partition>

23.157.3. Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

23.157.4. Properties

23.157.4.1. ParentPartitionIds

List of parents up to the first partition

public required IList<string> ParentPartitionIds { get; init; }

23.157.4.1.1. Property Value

IList<string>

23.157.4.2. PartitionId

Unique name of the partition

public required string PartitionId { get; init; }

23.157.4.2.1. Property Value

string

23.157.4.3. PodConfiguration

Configuration for compute plane instances in this Partition

public IDictionary<string, string> PodConfiguration { get; init; }

23.157.4.3.1. Property Value

IDictionary<string, string>

23.157.4.4. PodMax

Max number of pods

public required int PodMax { get; init; }

23.157.4.4.1. Property Value

int

23.157.4.5. PodReserved

Number of reserved pods

public required int PodReserved { get; init; }

23.157.4.5.1. Property Value

int

23.157.4.6. PreemptionPercentage

Percentage of pods that can be preempted

public required int PreemptionPercentage { get; init; }

23.157.4.6.1. Property Value

int

23.157.4.7. Priority

Priority of the partition

public required int Priority { get; init; }

23.157.4.7.1. Property Value

int

23.157.5. Methods

23.157.5.1. Equals(Partition?)

Indicates whether the current object is equal to another object of the same type.

public virtual bool Equals(Partition? other)

23.157.5.1.1. Parameters

other Partition?

An object to compare with this object.

23.157.5.1.2. Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

23.157.5.2. FromJson(string)

Build a Data structure to hold partitions metadata from a JSON Represents text as a sequence of UTF-16 code units.

public static Partition FromJson(string json)

23.157.5.2.1. Parameters

json string

JSON value

23.157.5.2.2. Returns

Partition

built from the provided JSON

23.157.5.3. GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

23.157.5.3.1. Returns

int

A hash code for the current object.

23.157.5.4. ToJson()

Convert Data structure to hold partitions metadata to JSON

public string ToJson()

23.157.5.4.1. Returns

string

representing the JSON object of this instance