|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hd.d.pg2k.svrCore.vars.InstanceID
public final class InstanceID
Immutable globally-unique instance ID for a JVM participating in a set of SystemVariables. This is the key to a globalmap variable, and each participating system should have just one such value, probably generated by a data pipeline endpoint.
Internally, this is a randomly-generated (non-negative) long value.
| Field Summary | |
|---|---|
private long |
ID
Unique (positive) long ID from a cryptographically-good random-number source. |
private static long |
serialVersionUID
Unique Serialisation class ID generated by http://random.hd.org/. |
| Constructor Summary | |
|---|---|
private |
InstanceID()
Create a new instance with a new/unique ID from a cryptographically-good random-number source. |
| Method Summary | |
|---|---|
int |
compareTo(InstanceID other)
Comparable ordering is on ID value alone in numeric ID order. |
static InstanceID |
createInstanceID()
Create a new, unique instance ID; never null. |
boolean |
equals(java.lang.Object obj)
Equality is based on the whole ID. |
int |
hashCode()
The hash is derived from the ID. |
long |
longValue()
Long representation of ID; non-negative. |
protected java.lang.Object |
readResolve()
Deserialise: validate and eliminate duplicates coming off the wire. |
java.lang.String |
toString()
String representation of ID as a non-negative base-36 number. |
void |
validateObject()
Check for legal state. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final long ID
private static final long serialVersionUID
| Constructor Detail |
|---|
private InstanceID()
| Method Detail |
|---|
public static InstanceID createInstanceID()
public long longValue()
public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(InstanceID other)
compareTo in interface java.lang.Comparable<InstanceID>public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
protected java.lang.Object readResolve()
throws java.io.ObjectStreamException
java.io.ObjectStreamException
public void validateObject()
throws java.io.InvalidObjectException
validateObject in interface java.io.ObjectInputValidationjava.io.InvalidObjectException
|
DHD Multimedia Gallery V1.57.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||