Enum Class LocalResourceType
- All Implemented Interfaces:
Serializable,Comparable<LocalResourceType>,Constable
LocalResourceType specifies the type
of a resource localized by the NodeManager.
The type can be one of:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalResourceTypeReturns the enum constant of this class with the specified name.static LocalResourceType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ARCHIVE
Archive, which is automatically unarchived by theNodeManager. -
FILE
Regular file i.e. uninterpreted bytes. -
PATTERN
A hybrid between archive and file. Only part of the file is unarchived, and the original file is left in place, but in the same directory as the unarchived part. The part that is unarchived is determined by pattern in #LocalResource. Currently only jars support pattern, all others will be treated like a #ARCHIVE.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-