Class ProcessInfo

java.lang.Object
io.smallrye.common.os.ProcessInfo

@Deprecated(since="2.4", forRemoval=true) public class ProcessInfo extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Use the ProcessHandle API instead.
Returns information about a Process
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProcessInfo(long id, String command)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Construct a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the process command.
    long
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the process ID.

    Methods inherited from class java.lang.Object

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

    • ProcessInfo

      public ProcessInfo(long id, String command)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Construct a new instance.
      Parameters:
      id - the process ID
      command - the process command
  • Method Details

    • getId

      public long getId()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the process ID.
      Returns:
      the process ID
    • getCommand

      public String getCommand()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the process command.
      Returns:
      the process command