Package com.netflix.genie.common.dto
Class RuntimeResources
java.lang.Object
com.netflix.genie.common.dto.RuntimeResources
- All Implemented Interfaces:
Serializable
A representation of compute resources that a Genie entity (job/command/etc.) may request or use.
- Since:
- 4.3.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for generating immutableRuntimeResources
instances. -
Method Summary
-
Method Details
-
getCpu
Get the number of CPUs.- Returns:
- The amount or
Optional.empty()
-
getGpu
Get the number of GPUs.- Returns:
- The amount or
Optional.empty()
-
getMemoryMb
Get the amount of memory.- Returns:
- The amount or
Optional.empty()
-
getDiskMb
Get the amount of disk space.- Returns:
- The amount or
Optional.empty()
-
getNetworkMbps
Get the network bandwidth size.- Returns:
- The size or
Optional.empty()
-
hashCode
public int hashCode() -
equals
-
toString
-