Package org.apache.commons.lang3
Class ArchUtils
java.lang.Object
org.apache.commons.lang3.ArchUtils
Provides methods for identifying the architecture of the current JVM based on the
"os.arch"
system property.
Important: The "os.arch"
system property returns the architecture used by the JVM not of the operating system.
- Since:
- 3.6
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
addProcessor
(String key, Processor processor) private static void
addProcessors
(Processor processor, String... keys) Adds the givenProcessor
with the given keys to the map.static Processor
Gets aProcessor
object of the current JVM.static Processor
getProcessor
(String value) private static void
init()
private static void
private static void
private static void
private static void
private static void
private static void
private static void
private static void
private static void
-
Field Details
-
ARCH_TO_PROCESSOR
-
-
Constructor Details
-
ArchUtils
Deprecated.TODO Make private in 4.0.Make private in 4.0.
-
-
Method Details
-
addProcessor
- Parameters:
key
- The key asString
.processor
- TheProcessor
to add.- Throws:
IllegalStateException
- If the key already exists.
-
addProcessors
Adds the givenProcessor
with the given keys to the map.- Parameters:
processor
- TheProcessor
to add.keys
- The keys.- Throws:
IllegalStateException
- If the key already exists.
-
getProcessor
Gets aProcessor
object of the current JVM.Important: The
"os.arch"
system property returns the architecture used by the JVM not of the operating system.- Returns:
- A
Processor
when supported, elsenull
.
-
getProcessor
-
init
private static void init() -
init_Aarch_64Bit
private static void init_Aarch_64Bit() -
init_IA64_32Bit
private static void init_IA64_32Bit() -
init_IA64_64Bit
private static void init_IA64_64Bit() -
init_PPC_32Bit
private static void init_PPC_32Bit() -
init_PPC_64Bit
private static void init_PPC_64Bit() -
init_RISCV_32Bit
private static void init_RISCV_32Bit() -
init_RISCV_64Bit
private static void init_RISCV_64Bit() -
init_X86_32Bit
private static void init_X86_32Bit() -
init_X86_64Bit
private static void init_X86_64Bit()
-