public enum CPU extends Enum<CPU>
| Modifier and Type | Method and Description |
|---|---|
static CPU |
current()
Determines the CPU of the current JVM.
|
static CPU |
of(hudson.model.Node node)
Determines the CPU of the given node.
|
static CPU |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CPU[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CPU i386
public static final CPU amd64
public static final CPU armv7l
public static final CPU armv6l
public static final CPU arm64
public static CPU[] values()
for (CPU c : CPU.values()) System.out.println(c);
public static CPU valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static CPU of(@Nonnull hudson.model.Node node) throws IOException, InterruptedException
node - the computer nodeIOException - in case of IO issues with the remote NodeInterruptedException - in case the job is interrupted by userpublic static CPU current() throws DetectionFailedException
DetectionFailedException - when the current platform node is not supported.Copyright © 2016–2017. All rights reserved.