public enum RequirementElemPath extends java.lang.Enum<RequirementElemPath>
The Requirement
elements are expressed by declaring the path of
the GHN profile to use as constrain key.
All the possible accessible nodes are here declared.
Samples:
// Requires an operating system different from OSX new Requirement(RequirementElemPath.OS , RequirementRelationType.NOT_EQUAL, "OSX"); // At least 3Gb of available memory new Requirement(RequirementElemPath.MEM_RAM_SIZE, RequirementRelationType.GREATER, "3000"); // In the profile environment must be defined the key "ANT_HOME" and the value must be "/usr/share/ant" new Requirement(RequirementElemPath.RUNTIME_ENV_STRING, "ANT_HOME", RequirementRelationType.EQUAL, "/usr/share/ant") // Custom xquery: allows to access custom paths of the service profile. new Requirement(RequirementElemPath.CUSTOM_REQUIREMENT, "/GHNDescription/Architecture[@PlatformType = 'i386']"); // The same result is obtained by a pre-defined query new Requirement(RequirementElemPath.PLATFORM, RequirementRelationType.EQUAL, "i386");
Enum Constant and Description |
---|
CUSTOM_REQUIREMENT |
DISK_SPACE |
HOST |
LOAD15MIN |
LOAD1MIN |
LOAD5MIN |
MEM_RAM_AVAILABLE |
MEM_RAM_SIZE |
MEM_VIRTUAL_AVAILABLE |
MEM_VIRTUAL_SIZE |
OS |
PLATFORM |
PROCESSOR_BOGOMIPS |
PROCESSOR_NUM |
RUNTIME_ENV_NUMBER |
RUNTIME_ENV_STRING |
SITE_COUNTRY |
SITE_DOMAIN |
SITE_LOCATION |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPath() |
RequirementElemType |
getValueType() |
static RequirementElemPath |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RequirementElemPath[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RequirementElemPath MEM_RAM_AVAILABLE
public static final RequirementElemPath MEM_RAM_SIZE
public static final RequirementElemPath MEM_VIRTUAL_AVAILABLE
public static final RequirementElemPath MEM_VIRTUAL_SIZE
public static final RequirementElemPath HOST
public static final RequirementElemPath OS
public static final RequirementElemPath DISK_SPACE
public static final RequirementElemPath LOAD1MIN
public static final RequirementElemPath LOAD5MIN
public static final RequirementElemPath LOAD15MIN
public static final RequirementElemPath PLATFORM
public static final RequirementElemPath PROCESSOR_NUM
public static final RequirementElemPath PROCESSOR_BOGOMIPS
public static final RequirementElemPath SITE_LOCATION
public static final RequirementElemPath SITE_COUNTRY
public static final RequirementElemPath SITE_DOMAIN
public static final RequirementElemPath CUSTOM_REQUIREMENT
public static final RequirementElemPath RUNTIME_ENV_STRING
public static final RequirementElemPath RUNTIME_ENV_NUMBER
public static RequirementElemPath[] values()
for (RequirementElemPath c : RequirementElemPath.values()) System.out.println(c);
public static RequirementElemPath valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getPath()
public RequirementElemType getValueType()