|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.util.platform.PID
public class PID
Provides access to the process identifier for this virtual machine.
Currently does not support native access and generates random numbers for the process id.
| Field Summary | |
|---|---|
protected int |
id
The int process identifier. |
| Constructor Summary | |
|---|---|
protected |
PID(int id)
Construct a new PID. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final int id
| Constructor Detail |
|---|
protected PID(int id)
id - Process identifier.| Method Detail |
|---|
public final int getID()
public String toString()
toString in class Objectpublic String toString(int radix)
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectobj - Object to test equality with.
public Object clone()
clone in class Objectpublic static PID getInstance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||