|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<RequirementElemPath>
org.gcube.vremanagement.resourcebroker.utils.serialization.types.requirements.RequirementElemPath
public 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");
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
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 name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String getPath()
public RequirementElemType getValueType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |