Class Process


  • public final class Process
    extends Object
    Utilities for getting information about the current process.
    Author:
    David M. Lloyd
    • Method Detail

      • getProcessName

        public static String getProcessName()
        Get the name of this process. If the process name is not known, then "<unknown>" is returned. The process name may be overridden by setting the jboss.process.name property.
        Returns:
        the process name (not null)
      • getProcessId

        @Deprecated(since="2.4",
                    forRemoval=true)
        public static long getProcessId()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Use ProcessHandle.pid() instead.
        Get the ID of this process. This is the operating system specific PID.
        Returns:
        the ID of this process
      • getCurrentProcess

        @Deprecated(since="2.4",
                    forRemoval=true)
        public static ProcessInfo getCurrentProcess()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Use ProcessHandle.current() to get the current process information.
        Returns information about the current process
        Returns:
        the current process