|
||||||||||
| PREV CLASS (src) 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 (src) ,
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 (src) |
pid
The process identifier of the current virtual machine |
protected UID (src) |
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 (src) pid,
UID (src) uid)
Construct a new VMID. |
protected |
VMID(VMID (src) vmid)
Copy a VMID. |
| Method Summary | |
static java.lang.String |
asString()
Returns a VMID as a string. |
java.lang.Object |
clone()
Returns a copy of this VMID. |
boolean |
equals(java.lang.Object obj)
Check if the given object is equal to this VMID. |
byte[] |
getAddress()
Get the address portion of this VMID. |
static VMID (src) |
getInstance()
Get the VMID for the current virtual machine. |
PID (src) |
getProcessID()
Get the process identifier portion of this VMID. |
UID (src) |
getUID()
Get the UID portion of this VMID. |
int |
hashCode()
Return the hash code of this VMID. |
java.lang.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 (src) pid
protected final UID (src) uid
protected final int hashCode
public static final byte[] UNKNOWN_HOST
| Constructor Detail |
protected VMID(byte[] address,
PID (src) pid,
UID (src) uid)
address - The address of the current virtual machine.pid - Process identifier.uid - Unique identifier.For getting a VMID instance reference.protected VMID(VMID (src) vmid)
vmid - VMID to copy.| Method Detail |
public final byte[] getAddress()
public final PID (src) getProcessID()
public final UID (src) getUID()
public java.lang.String toString()
public final int hashCode()
public boolean equals(java.lang.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 java.lang.Object clone()
public static java.lang.String asString()
public static VMID (src) getInstance()
NestedError - Failed to create VMID instance.
|
||||||||||
| PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||