Class ProcessFactory.ForJava9CompatibleVM
- java.lang.Object
-
- co.elastic.apm.agent.impl.payload.ProcessFactory.ForJava9CompatibleVM
-
- All Implemented Interfaces:
ProcessFactory
- Enclosing interface:
- ProcessFactory
@IgnoreJRERequirement public static class ProcessFactory.ForJava9CompatibleVM extends java.lang.Object implements ProcessFactory
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface co.elastic.apm.agent.impl.payload.ProcessFactory
ProcessFactory.ForCurrentVM, ProcessFactory.ForJava9CompatibleVM, ProcessFactory.ForLegacyVM
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcessInfogetProcessInformation()Ideally, this would only reflectively invoke the Java 9 introduced process API.
-
-
-
Method Detail
-
getProcessInformation
public ProcessInfo getProcessInformation()
Ideally, this would only reflectively invoke the Java 9 introduced process API. But this is quite a hassle, especially when handling theOptionalreturn types of the process API. As we are directly referring to APIs introduced in Java 9, this project can only be compiled with a JDK 9+.- Specified by:
getProcessInformationin interfaceProcessFactory- Returns:
- the
ProcessInfoinformation about the current process
-
-