|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.util.platform.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()
public String toString(int radix)
public int hashCode()
public boolean equals(Object obj)
obj
- Object to test equality with.
public Object clone()
public static PID getInstance()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |