Enum CPU

java.lang.Object
java.lang.Enum<CPU>
jenkins.plugins.nodejs.tools.CPU
All Implemented Interfaces:
Serializable, Comparable<CPU>

public enum CPU extends Enum<CPU>
CPU type.
  • Enum Constant Details

    • i386

      public static final CPU i386
    • amd64

      public static final CPU amd64
    • armv7l

      public static final CPU armv7l
    • armv6l

      public static final CPU armv6l
    • arm64

      public static final CPU arm64
    • ppc64

      public static final CPU ppc64
  • Method Details

    • values

      public static CPU[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static 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
    • of

      public static CPU of(@NonNull Node node) throws DetectionFailedException
      Determines the CPU of the given node.
      Parameters:
      node - the computer node
      Returns:
      a CPU value of the architecture of the given node
      Throws:
      DetectionFailedException - when the current CPU node is not supported.
    • current

      public static CPU current() throws DetectionFailedException
      Determines the CPU of the current JVM.
      Returns:
      the current CPU
      Throws:
      DetectionFailedException - when the current platform node is not supported.