Class PoolStatus
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.resource.v1alpha3.PoolStatus
-
- All Implemented Interfaces:
Editable<PoolStatusBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class PoolStatus extends Object implements Editable<PoolStatusBuilder>, KubernetesResource
PoolStatus contains status information for a single resource pool.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PoolStatus()No args constructor for use in serializationPoolStatus(Integer allocatedDevices, Integer availableDevices, String driver, Long generation, String nodeName, String poolName, Integer resourceSliceCount, Integer totalDevices, Integer unavailableDevices, String validationError)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PoolStatusBuilderedit()Map<String,Object>getAdditionalProperties()IntegergetAllocatedDevices()AllocatedDevices is the number of devices currently allocated to claims.IntegergetAvailableDevices()AvailableDevices is the number of devices available for allocation.StringgetDriver()Driver is the DRA driver name for this pool.LonggetGeneration()Generation is the pool generation observed across all ResourceSlices in this pool.StringgetNodeName()NodeName is the node this pool is associated with.StringgetPoolName()PoolName is the name of the pool.IntegergetResourceSliceCount()ResourceSliceCount is the number of ResourceSlices that make up this pool.IntegergetTotalDevices()TotalDevices is the total number of devices in the pool across all slices.IntegergetUnavailableDevices()UnavailableDevices is the number of devices that are not available due to taints or other conditions, but are not allocated.StringgetValidationError()ValidationError is set when the pool's data could not be fully validated (e.g., incomplete slice publication).voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAllocatedDevices(Integer allocatedDevices)AllocatedDevices is the number of devices currently allocated to claims.voidsetAvailableDevices(Integer availableDevices)AvailableDevices is the number of devices available for allocation.voidsetDriver(String driver)Driver is the DRA driver name for this pool.voidsetGeneration(Long generation)Generation is the pool generation observed across all ResourceSlices in this pool.voidsetNodeName(String nodeName)NodeName is the node this pool is associated with.voidsetPoolName(String poolName)PoolName is the name of the pool.voidsetResourceSliceCount(Integer resourceSliceCount)ResourceSliceCount is the number of ResourceSlices that make up this pool.voidsetTotalDevices(Integer totalDevices)TotalDevices is the total number of devices in the pool across all slices.voidsetUnavailableDevices(Integer unavailableDevices)UnavailableDevices is the number of devices that are not available due to taints or other conditions, but are not allocated.voidsetValidationError(String validationError)ValidationError is set when the pool's data could not be fully validated (e.g., incomplete slice publication).PoolStatusBuildertoBuilder()
-
-
-
Method Detail
-
getAllocatedDevices
public Integer getAllocatedDevices()
AllocatedDevices is the number of devices currently allocated to claims. A value of 0 means no devices are allocated. May be unset when validationError is set.
-
setAllocatedDevices
public void setAllocatedDevices(Integer allocatedDevices)
AllocatedDevices is the number of devices currently allocated to claims. A value of 0 means no devices are allocated. May be unset when validationError is set.
-
getAvailableDevices
public Integer getAvailableDevices()
AvailableDevices is the number of devices available for allocation. This equals TotalDevices - AllocatedDevices - UnavailableDevices. A value of 0 means no devices are currently available. May be unset when validationError is set.
-
setAvailableDevices
public void setAvailableDevices(Integer availableDevices)
AvailableDevices is the number of devices available for allocation. This equals TotalDevices - AllocatedDevices - UnavailableDevices. A value of 0 means no devices are currently available. May be unset when validationError is set.
-
getDriver
public String getDriver()
Driver is the DRA driver name for this pool. Must be a DNS subdomain (e.g., "gpu.example.com").
-
setDriver
public void setDriver(String driver)
Driver is the DRA driver name for this pool. Must be a DNS subdomain (e.g., "gpu.example.com").
-
getGeneration
public Long getGeneration()
Generation is the pool generation observed across all ResourceSlices in this pool. Only the latest generation is reported. During a generation rollout, if not all slices at the latest generation have been published, the pool is included with a validationError and device counts unset.
-
setGeneration
public void setGeneration(Long generation)
Generation is the pool generation observed across all ResourceSlices in this pool. Only the latest generation is reported. During a generation rollout, if not all slices at the latest generation have been published, the pool is included with a validationError and device counts unset.
-
getNodeName
public String getNodeName()
NodeName is the node this pool is associated with. When omitted, the pool is not associated with a specific node. Must be a valid DNS subdomain name (RFC1123).
-
setNodeName
public void setNodeName(String nodeName)
NodeName is the node this pool is associated with. When omitted, the pool is not associated with a specific node. Must be a valid DNS subdomain name (RFC1123).
-
getPoolName
public String getPoolName()
PoolName is the name of the pool. Must be a valid resource pool name (DNS subdomains separated by "/").
-
setPoolName
public void setPoolName(String poolName)
PoolName is the name of the pool. Must be a valid resource pool name (DNS subdomains separated by "/").
-
getResourceSliceCount
public Integer getResourceSliceCount()
ResourceSliceCount is the number of ResourceSlices that make up this pool. May be unset when validationError is set.
-
setResourceSliceCount
public void setResourceSliceCount(Integer resourceSliceCount)
ResourceSliceCount is the number of ResourceSlices that make up this pool. May be unset when validationError is set.
-
getTotalDevices
public Integer getTotalDevices()
TotalDevices is the total number of devices in the pool across all slices. A value of 0 means the pool has no devices. May be unset when validationError is set.
-
setTotalDevices
public void setTotalDevices(Integer totalDevices)
TotalDevices is the total number of devices in the pool across all slices. A value of 0 means the pool has no devices. May be unset when validationError is set.
-
getUnavailableDevices
public Integer getUnavailableDevices()
UnavailableDevices is the number of devices that are not available due to taints or other conditions, but are not allocated. A value of 0 means all unallocated devices are available. May be unset when validationError is set.
-
setUnavailableDevices
public void setUnavailableDevices(Integer unavailableDevices)
UnavailableDevices is the number of devices that are not available due to taints or other conditions, but are not allocated. A value of 0 means all unallocated devices are available. May be unset when validationError is set.
-
getValidationError
public String getValidationError()
ValidationError is set when the pool's data could not be fully validated (e.g., incomplete slice publication). When set, device count fields and ResourceSliceCount may be unset.
-
setValidationError
public void setValidationError(String validationError)
ValidationError is set when the pool's data could not be fully validated (e.g., incomplete slice publication). When set, device count fields and ResourceSliceCount may be unset.
-
edit
public PoolStatusBuilder edit()
- Specified by:
editin interfaceEditable<PoolStatusBuilder>
-
toBuilder
public PoolStatusBuilder toBuilder()
-
-