Package hudson.tools
Enum Class JDKInstaller.CPU
- All Implemented Interfaces:
Serializable
,Comparable<JDKInstaller.CPU>
,Constable
- Enclosing class:
- JDKInstaller
CPU type.
-
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 TypeMethodDescriptionIn JDK5u3, I see platform like "Linux AMD64", while JDK6u3 refers to "Linux x64", so just use "64" for locating bits.static JDKInstaller.CPU
current()
Determines the CPU of the current JVM.static JDKInstaller.CPU
Determines the CPU of the given node.static JDKInstaller.CPU
Returns the enum constant of this class with the specified name.static JDKInstaller.CPU[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
i386
-
amd64
-
Sparc
-
Itanium
-
-
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
-
accept
In JDK5u3, I see platform like "Linux AMD64", while JDK6u3 refers to "Linux x64", so just use "64" for locating bits. -
of
public static JDKInstaller.CPU of(Node n) throws IOException, InterruptedException, hudson.tools.JDKInstaller.DetectionFailedException Determines the CPU of the given node. -
current
Determines the CPU of the current JVM. http://lopica.sourceforge.net/os.html was useful in writing this code.
-