Top Description Fields Constructors Methods
io.smallrye.common.os

public Class ProcessInfo

extends Object
Class Inheritance
Annotations
@Deprecated
since:2.4
forRemoval:true

Deprecated

for removal since 2.4.

Use the ProcessHandle API instead.

Returns information about a Process

Field Summary

Modifier and TypeField and Description
private final String
private final long

Constructor Summary

AccessConstructor and Description
public
ProcessInfo(long
the process ID
id
,
String
the process command
command
)

Construct a new instance.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the process command
getCommand
()

Returns the process command.

public long

Returns:

the process ID
getId
()

Returns the process ID.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

commandback to summary
private final String command
idback to summary
private final long id

Constructor Detail

ProcessInfoback to summary
public ProcessInfo(long id, String command)

Construct a new instance.

Parameters
id:long

the process ID

command:String

the process command

Method Detail

getCommandback to summary
public String getCommand()

Returns the process command.

Returns:String

the process command

getIdback to summary
public long getId()

Returns the process ID.

Returns:long

the process ID