Class ResourcePool
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.resource.v1.ResourcePool
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ResourcePoolBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ResourcePool extends Object implements io.fabric8.kubernetes.api.builder.Editable<ResourcePoolBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
ResourcePool describes the pool that ResourceSlices belong to.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourcePool()No args constructor for use in serializationResourcePool(Long generation, String name, Long resourceSliceCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourcePoolBuilderedit()Map<String,Object>getAdditionalProperties()LonggetGeneration()Generation tracks the change in a pool over time.StringgetName()Name is used to identify the pool.LonggetResourceSliceCount()ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetGeneration(Long generation)Generation tracks the change in a pool over time.voidsetName(String name)Name is used to identify the pool.voidsetResourceSliceCount(Long resourceSliceCount)ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number.ResourcePoolBuildertoBuilder()
-
-
-
Method Detail
-
getGeneration
public Long getGeneration()
Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
-
setGeneration
public void setGeneration(Long generation)
Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
-
getName
public String getName()
Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.
-
setName
public void setName(String name)
Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.
-
getResourceSliceCount
public Long getResourceSliceCount()
ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
-
setResourceSliceCount
public void setResourceSliceCount(Long resourceSliceCount)
ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
-
edit
public ResourcePoolBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ResourcePoolBuilder>
-
toBuilder
public ResourcePoolBuilder toBuilder()
-
-