public final class ComputeResourceUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static JobAPI.ComputeResource |
createComputeResource(int index,
double cpu,
int ramMegaBytes,
double diskGigaBytes) |
static long |
getDiskInBytes(JobAPI.ComputeResource computeResource) |
static long |
getRamInBytes(JobAPI.ComputeResource computeResource) |
static java.lang.String |
toString(JobAPI.ComputeResource cr)
covert the given ComputeResource to a one line String for logging output
|
static JobAPI.ComputeResource |
updateComputeResourceIndex(int newIndex,
JobAPI.ComputeResource computeResource) |
public static JobAPI.ComputeResource createComputeResource(int index, double cpu, int ramMegaBytes, double diskGigaBytes)
public static JobAPI.ComputeResource updateComputeResourceIndex(int newIndex, JobAPI.ComputeResource computeResource)
public static long getRamInBytes(JobAPI.ComputeResource computeResource)
public static long getDiskInBytes(JobAPI.ComputeResource computeResource)
public static java.lang.String toString(JobAPI.ComputeResource cr)