jenkins.plugins.nodejs.tools
Enum NodeJSInstaller.CPU

java.lang.Object
  extended by java.lang.Enum<NodeJSInstaller.CPU>
      extended by jenkins.plugins.nodejs.tools.NodeJSInstaller.CPU
All Implemented Interfaces:
Serializable, Comparable<NodeJSInstaller.CPU>
Enclosing class:
NodeJSInstaller

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

CPU type.


Enum Constant Summary
amd64
           
i386
           
 
Method Summary
 NodeJSInstaller.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 NodeJSInstaller.CPU current()
          Determines the CPU of the current JVM.
static NodeJSInstaller.CPU of(hudson.model.Node n)
          Determines the CPU of the given node.
static NodeJSInstaller.CPU valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NodeJSInstaller.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 NodeJSInstaller.CPU i386

amd64

public static final NodeJSInstaller.CPU amd64
Method Detail

values

public static NodeJSInstaller.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 (NodeJSInstaller.CPU c : NodeJSInstaller.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 NodeJSInstaller.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 NodeJSInstaller.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 NodeJSInstaller.CPU of(hudson.model.Node n)
                              throws IOException,
                                     InterruptedException,
                                     jenkins.plugins.nodejs.tools.NodeJSInstaller.DetectionFailedException
Determines the CPU of the given node.

Throws:
IOException
InterruptedException
jenkins.plugins.nodejs.tools.NodeJSInstaller.DetectionFailedException

current

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

Throws:
jenkins.plugins.nodejs.tools.NodeJSInstaller.DetectionFailedException


Copyright © 2004-2014. All Rights Reserved.