Package org.apache.commons.lang3
Class ArchUtils
java.lang.Object
org.apache.commons.lang3.ArchUtils
An utility class for the os.arch System Property. The class defines methods for
identifying the architecture of the current JVM.
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 voidaddProcessor(String key, Processor processor) private static voidaddProcessors(Processor processor, String... keys) Adds the givenProcessorwith the given keys to the map.static ProcessorReturns aProcessorobject of the current JVM.static ProcessorgetProcessor(String value) private static voidinit()private static voidprivate static voidprivate static voidprivate static voidprivate static voidprivate static void
-
Field Details
-
ARCH_TO_PROCESSOR
-
-
Constructor Details
-
ArchUtils
public ArchUtils()
-
-
Method Details
-
init
private static void init() -
init_X86_32Bit
private static void init_X86_32Bit() -
init_X86_64Bit
private static void init_X86_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() -
addProcessor
- Parameters:
key- The key asString.processor- TheProcessorto add.- Throws:
IllegalStateException- If the key already exists.
-
addProcessors
Adds the givenProcessorwith the given keys to the map.- Parameters:
keys- The keys.processor- TheProcessorto add.- Throws:
IllegalStateException- If the key already exists.
-
getProcessor
Returns aProcessorobject of the current JVM.Important: The os.arch System Property returns the architecture used by the JVM not of the operating system.
- Returns:
- A
Processorwhen supported, elsenull.
-
getProcessor
-