Class LinuxCPU
java.lang.Object
io.github.alersrt.pod4j.openapi.model.LinuxCPU
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LinuxCPU
extends Object
implements Serializable
LinuxCPU for Linux cgroup 'cpu' resource management
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic LinuxCPUCreate an instance of LinuxCPU given an JSON stringgetBurst()CPU hardcap burst limit (in usecs).getCpus()CPUs to use within the cpuset.getIdle()cgroups are configured with minimum weight, 0: default behavior, 1: SCHED_IDLE.getMems()List of memory nodes in the cpuset.CPU period to be used for hardcapping (in usecs).getQuota()CPU hardcap limit (in usecs).CPU period to be used for realtime scheduling (in usecs).How much time realtime scheduling may use (in usecs).CPU shares (relative weight (ratio) vs.inthashCode()realtimePeriod(Integer realtimePeriod) realtimeRuntime(Long realtimeRuntime) voidvoidvoidvoidvoidvoidvoidsetRealtimePeriod(Integer realtimePeriod) voidsetRealtimeRuntime(Long realtimeRuntime) voidtoJson()Convert an instance of LinuxCPU to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_BURST
- See Also:
-
SERIALIZED_NAME_CPUS
- See Also:
-
SERIALIZED_NAME_IDLE
- See Also:
-
SERIALIZED_NAME_MEMS
- See Also:
-
SERIALIZED_NAME_PERIOD
- See Also:
-
SERIALIZED_NAME_QUOTA
- See Also:
-
SERIALIZED_NAME_REALTIME_PERIOD
- See Also:
-
SERIALIZED_NAME_REALTIME_RUNTIME
- See Also:
-
SERIALIZED_NAME_SHARES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LinuxCPU
public LinuxCPU()
-
-
Method Details
-
burst
-
getBurst
CPU hardcap burst limit (in usecs). Allowed accumulated cpu time additionally for burst in a given period.- Returns:
- burst
-
setBurst
-
cpus
-
getCpus
CPUs to use within the cpuset. Default is to use any CPU available.- Returns:
- cpus
-
setCpus
-
idle
-
getIdle
cgroups are configured with minimum weight, 0: default behavior, 1: SCHED_IDLE.- Returns:
- idle
-
setIdle
-
mems
-
getMems
List of memory nodes in the cpuset. Default is to use any available memory node.- Returns:
- mems
-
setMems
-
period
-
getPeriod
CPU period to be used for hardcapping (in usecs).- Returns:
- period
-
setPeriod
-
quota
-
getQuota
CPU hardcap limit (in usecs). Allowed cpu time in a given period.- Returns:
- quota
-
setQuota
-
realtimePeriod
-
getRealtimePeriod
CPU period to be used for realtime scheduling (in usecs).- Returns:
- realtimePeriod
-
setRealtimePeriod
-
realtimeRuntime
-
getRealtimeRuntime
How much time realtime scheduling may use (in usecs).- Returns:
- realtimeRuntime
-
setRealtimeRuntime
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to LinuxCPU
-
fromJson
Create an instance of LinuxCPU given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LinuxCPU
- Throws:
IOException- if the JSON string is invalid with respect to LinuxCPU
-
toJson
Convert an instance of LinuxCPU to an JSON string- Returns:
- JSON string
-