hudson.tools
Enum JDKInstaller.CPU

java.lang.Object
  extended by java.lang.Enum<JDKInstaller.CPU>
      extended by hudson.tools.JDKInstaller.CPU
All Implemented Interfaces:
Serializable, Comparable<JDKInstaller.CPU>
Enclosing class:
JDKInstaller

public static enum JDKInstaller.CPU
extends Enum<JDKInstaller.CPU>

CPU type.


Enum Constant Summary
amd64
           
i386
           
Itanium
           
Sparc
           
 
Method Summary
 JDKInstaller.Preference accept(String line)
          In 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 of(Node n)
          Determines the CPU of the given node.
static JDKInstaller.CPU valueOf(String name)
          Returns the enum constant of this type with the specified name.
static JDKInstaller.CPU[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

i386

public static final JDKInstaller.CPU i386

amd64

public static final JDKInstaller.CPU amd64

Sparc

public static final JDKInstaller.CPU Sparc

Itanium

public static final JDKInstaller.CPU Itanium
Method Detail

values

public static JDKInstaller.CPU[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (JDKInstaller.CPU c : JDKInstaller.CPU.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static JDKInstaller.CPU valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null

accept

public JDKInstaller.Preference accept(String line)
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.

Throws:
IOException
InterruptedException
hudson.tools.JDKInstaller.DetectionFailedException

current

public static JDKInstaller.CPU current()
                                throws hudson.tools.JDKInstaller.DetectionFailedException
Determines the CPU of the current JVM. http://lopica.sourceforge.net/os.html was useful in writing this code.

Throws:
hudson.tools.JDKInstaller.DetectionFailedException


Copyright © 2004-2013. All Rights Reserved.