|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.emory.mathcs.rmix.ObjGUID
Represents globally unique object identifier. The identifier consists of
three 64-bit elements: host ID, Virtual Machine ID, and object ID. Host ID
is derived from the host IP address using SHA algorithm. Virtual Machine
ID is calculated out of the current time in milliseconds and either the
value of the PID system property or a random number if
the PID property is not set.
Object ID is a sequence-generated 64-bit value. If the
rmix.server.randomIDs property is set to true,
the GUID contains additional, fourth 64-bit component being a secure random
number generated using a default system source of randomness.
| Field Summary | |
static ObjGUID |
LOCAL_VM
|
static ObjGUID |
LOCALHOST
|
static ObjGUID |
NULL
|
static ObjGUID |
UNKNOWN
|
| Constructor Summary | |
ObjGUID()
Creates a new ObjGUID. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
|
static ObjGUID |
fromString(java.lang.String guid)
Reconstructs the ObjGUID from the string representation. |
long |
getHostID()
|
long |
getObjID()
|
long |
getVMID()
|
int |
hashCode()
|
boolean |
isAtLocalHost()
Checks if the guid has been created on the local host (that is, the host on which this check is performed). |
boolean |
isAtLocalVM()
Checks if the guid has been created on the local Virtual Machine (that is, the VM on which this check is performed). |
static ObjGUID |
read(java.io.DataInput in)
Reads a new ObjGUID from the data input stream. |
java.lang.String |
toString()
Returns the string representation of this ObjGUID. |
void |
write(java.io.DataOutput out)
Writes the value of this ObjGUID to the data output stream. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final ObjGUID NULL
public static final ObjGUID UNKNOWN
public static final ObjGUID LOCALHOST
public static final ObjGUID LOCAL_VM
| Constructor Detail |
public ObjGUID()
| Method Detail |
public long getHostID()
public long getVMID()
public long getObjID()
public boolean isAtLocalHost()
true if the guid has been created on the local
host, false otherwise.public boolean isAtLocalVM()
true if the guid has been created on the local
Virtual Machine, false otherwise.public boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.String toString()
fromString.
fromString(java.lang.String)public static ObjGUID fromString(java.lang.String guid)
guid - the string representation.
guidtoString()
public void write(java.io.DataOutput out)
throws java.io.IOException
out - the output stream.
java.io.IOException - if write fails.
public static ObjGUID read(java.io.DataInput in)
throws java.io.IOException
in - the input stream.
java.io.IOException - if read fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||