Package org.apache.flink.util
Enum ProcessorArchitecture
- java.lang.Object
-
- java.lang.Enum<ProcessorArchitecture>
-
- org.apache.flink.util.ProcessorArchitecture
-
- All Implemented Interfaces:
Serializable
,Comparable<ProcessorArchitecture>
public enum ProcessorArchitecture extends Enum<ProcessorArchitecture>
The processor architecture of the this system.Note that the memory address size might be different than the actual hardware architecture, due to the installed OS (32bit OS) or when installing a 32 bit JRE in a 64 bit OS.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProcessorArchitecture.MemoryAddressSize
The memory address size of the processor.
-
Enum Constant Summary
Enum Constants Enum Constant Description AARCH64
The 64 bit ARM processor architecture.AMD64
The AMD 64 bit processor architecture.ARMv7
The ARM 32 bit processor architecture.PPC64_LE
The little-endian mode of the 64 bit Power-PC architecture.UNKNOWN
Unknown architecture, could not be determined.X86
The Intel x86 processor architecture.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcessorArchitecture.MemoryAddressSize
getAddressSize()
Gets the address size of the memory (32 bit, 64 bit).List<String>
getAlternativeNames()
Gets the alternative names for the processor architecture.String
getArchitectureName()
Gets the primary name of the processor architecture.static ProcessorArchitecture.MemoryAddressSize
getMemoryAddressSize()
Gets the MemorySize of the ProcessorArchitecture of this process.static ProcessorArchitecture
getProcessorArchitecture()
Gets the ProcessorArchitecture of the system running this process.static ProcessorArchitecture
valueOf(String name)
Returns the enum constant of this type with the specified name.static ProcessorArchitecture[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
X86
public static final ProcessorArchitecture X86
The Intel x86 processor architecture.
-
AMD64
public static final ProcessorArchitecture AMD64
The AMD 64 bit processor architecture.
-
ARMv7
public static final ProcessorArchitecture ARMv7
The ARM 32 bit processor architecture.
-
AARCH64
public static final ProcessorArchitecture AARCH64
The 64 bit ARM processor architecture.
-
PPC64_LE
public static final ProcessorArchitecture PPC64_LE
The little-endian mode of the 64 bit Power-PC architecture.
-
UNKNOWN
public static final ProcessorArchitecture UNKNOWN
Unknown architecture, could not be determined. This one conservatively assumes 32 bit, because 64 bit platforms typically support 32 bit memory spaces.
-
-
Method Detail
-
values
public static ProcessorArchitecture[] 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 (ProcessorArchitecture c : ProcessorArchitecture.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProcessorArchitecture 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 nameNullPointerException
- if the argument is null
-
getAddressSize
public ProcessorArchitecture.MemoryAddressSize getAddressSize()
Gets the address size of the memory (32 bit, 64 bit).
-
getArchitectureName
public String getArchitectureName()
Gets the primary name of the processor architecture. The primary name would for example be "x86" or "amd64".
-
getAlternativeNames
public List<String> getAlternativeNames()
Gets the alternative names for the processor architecture. Alternative names are for example "i586" for "x86", or "x86_64" for "amd64".
-
getProcessorArchitecture
public static ProcessorArchitecture getProcessorArchitecture()
Gets the ProcessorArchitecture of the system running this process.
-
getMemoryAddressSize
public static ProcessorArchitecture.MemoryAddressSize getMemoryAddressSize()
Gets the MemorySize of the ProcessorArchitecture of this process.Note that the memory address size might be different than the actual hardware architecture, due to the installed OS (32bit OS) or when installing a 32 bit JRE in a 64 bit OS.
-
-