|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.util.id.VMID
An object that uniquely identifies a virtual machine.
The identifier is composed of:
[ address ] - [ process id ] - [ time ] - [ counter ]
|------- UID --------|
Numbers are converted to radix(Character.MAX_RADIX) when converting to strings.
UID,
Serialized Form| Field Summary | |
protected byte[] |
address
The address of the current virtual machine |
protected int |
hashCode
The hash code of this VMID |
protected PID |
pid
The process identifier of the current virtual machine |
protected UID |
uid
A unique identifier to ensure uniqueness across the host machine |
static byte[] |
UNKNOWN_HOST
The address used when conventional methods fail to return the address of the current machine. |
| Constructor Summary | |
protected |
VMID(byte[] address,
PID pid,
UID uid)
Construct a new VMID. |
protected |
VMID(VMID vmid)
Copy a VMID. |
| Method Summary | |
static String |
asString()
Returns a VMID as a string. |
Object |
clone()
Returns a copy of this VMID. |
boolean |
equals(Object obj)
Check if the given object is equal to this VMID. |
byte[] |
getAddress()
Get the address portion of this VMID. |
static VMID |
getInstance()
Get the VMID for the current virtual machine. |
PID |
getProcessID()
Get the process identifier portion of this VMID. |
UID |
getUID()
Get the UID portion of this VMID. |
int |
hashCode()
Return the hash code of this VMID. |
String |
toString()
Return a string representation of this VMID. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected final byte[] address
protected final PID pid
protected final UID uid
protected final int hashCode
public static final byte[] UNKNOWN_HOST
| Constructor Detail |
protected VMID(byte[] address,
PID pid,
UID uid)
address - The address of the current virtual machine.pid - Process identifier.uid - Unique identifier.For getting a VMID instance reference.protected VMID(VMID vmid)
vmid - VMID to copy.| Method Detail |
public final byte[] getAddress()
public final PID getProcessID()
public final UID getUID()
public String toString()
public final int hashCode()
public boolean equals(Object obj)
A VMID is equals to another VMID if the address, process identifer and UID portions are equal.
obj - Object to test equality with.
public Object clone()
public static String asString()
public static VMID getInstance()
NestedError - Failed to create VMID instance.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||