Class Process

java.lang.Object
org.wildfly.common.os.Process

@Deprecated(forRemoval=true) public final class Process extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Use Process instead.
Utilities for getting information about the current process.
Author:
David M. Lloyd
  • Method Summary

    Modifier and Type
    Method
    Description
    static long
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use Process.getProcessId() instead.
    static String
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use Process.getProcessName() instead.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getProcessName

      @Deprecated(forRemoval=true) public static String getProcessName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use Process.getProcessName() instead.
      Get the name of this process. If the process name is not known, then "<unknown>" is returned.
      Returns:
      the process name (not null)
    • getProcessId

      @Deprecated(forRemoval=true) public static long getProcessId()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use Process.getProcessId() instead.
      Get the ID of this process. This is the operating system specific PID. If the PID cannot be determined, -1 is returned.
      Returns:
      the ID of this process, or -1 if it cannot be determined