public class PID extends Object implements Serializable, Cloneable
Currently does not support native access and generates random numbers for the process id.
Modifier and Type | Field and Description |
---|---|
protected int |
id
The int process identifier.
|
Modifier | Constructor and Description |
---|---|
protected |
PID(int id)
Construct a new PID.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Returns a copy of this PID.
|
boolean |
equals(Object obj)
Check if the given object is equal to this PID.
|
int |
getID()
Get the int process identifier.
|
static PID |
getInstance()
Get the PID for the current virtual machine.
|
int |
hashCode()
Return the hash code of this PID.
|
String |
toString()
Return a string representation of this PID.
|
String |
toString(int radix)
Return a string representation of this PID.
|
protected PID(int id)
id
- Process identifier.public final int getID()
public String toString()
public String toString(int radix)
radix
- public int hashCode()
public boolean equals(Object obj)
public Object clone()
public static PID getInstance()
Copyright © 2018 JBoss by Red Hat. All rights reserved.