public class VmValidationUtils extends Object
Constructor and Description |
---|
VmValidationUtils() |
Modifier and Type | Method and Description |
---|---|
static Integer |
getMaxMemorySizeInMb(VmOsType osType,
String clsuter_version)
Get the configured maximum VM memory size for this OS type.
|
static Integer |
getMinMemorySizeInMb()
Get the configured minimum VM memory size allowed.
|
static boolean |
isMemorySizeLegal(VmOsType osType,
int memSizeInMB,
String clsuter_version)
Check if the memory size is within the correct limits (as per the configuration), taking into account the
OS type.
|
public static boolean isMemorySizeLegal(VmOsType osType, int memSizeInMB, String clsuter_version)
osType
- The OS type.memSizeInMB
- The memory size to validate.public static Integer getMinMemorySizeInMb()
public static Integer getMaxMemorySizeInMb(VmOsType osType, String clsuter_version)
osType
- The type of OS to get the maximum memory for.Copyright © 2012. All Rights Reserved.