|
|||||||||
| Home >> All >> java >> rmi >> [ server overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.rmi.server
Class ObjID

java.lang.Objectjava.rmi.server.ObjID
- All Implemented Interfaces:
- java.io.Serializable
- public final class ObjID
- extends java.lang.Object
- implements java.io.Serializable
- extends java.lang.Object
Represents the object identifier, unique for the host that generated it. The ObjID contains inside the integer object identifier that, if needed, may indicated that this is a reference to one of the well known objects on that host (registry, activator or dgc) and the UID that ensures uniqueness.
| Field Summary | |
static int |
ACTIVATOR_ID
Defines the ID of the activator. |
static int |
DGC_ID
Defines the ID of the distributed garbage collector. |
private static java.lang.Object |
lock
The object to put the lock on when incrementing next 55 |
private static long |
next
The object counter, which value is assigned when creating the ordinary objects without the known object id. |
(package private) long |
objNum
The object Id (either well-known value or the value of the incrementing object counter. |
static int |
REGISTRY_ID
Defines the ID of the naming service. |
(package private) static long |
serialVersionUID
Use serial version uid for interoperability. |
(package private) UID |
space
The object unique identifier, generated individually for each object. |
| Constructor Summary | |
ObjID()
Create the new object id, unique for this host. |
|
ObjID(int id)
Create the new object id defining the well known remotely accessible object, present in this host. |
|
| Method Summary | |
(package private) static boolean |
eq(java.lang.Object a,
java.lang.Object b)
Compare by .equals if both a and b are not null, compare directly if at least one of them is null. |
boolean |
equals(java.lang.Object obj)
Compare for equality. |
int |
hashCode()
Get the hashcode. |
static ObjID |
read(java.io.ObjectInput in)
Read object id (as long), then the object UID. |
java.lang.String |
toString()
Get the string representation. |
void |
write(java.io.ObjectOutput out)
Write object id as long, then the object UID. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
serialVersionUID
static final long serialVersionUID
- Use serial version uid for interoperability.
- See Also:
- Constant Field Values
next
private static long next
- The object counter, which value is assigned when creating the ordinary
objects without the known object id. The counter is incremented each time
the new ObjID is constructed.
lock
private static final java.lang.Object lock
- The object to put the lock on when incrementing
next55
REGISTRY_ID
public static final int REGISTRY_ID
- Defines the ID of the naming service.
- See Also:
- Constant Field Values
ACTIVATOR_ID
public static final int ACTIVATOR_ID
- Defines the ID of the activator.
- See Also:
- Constant Field Values
DGC_ID
public static final int DGC_ID
- Defines the ID of the distributed garbage collector.
- See Also:
- Constant Field Values
objNum
long objNum
- The object Id (either well-known value or the value of the incrementing
object counter.
space
UID space
- The object unique identifier, generated individually for each object.
| Constructor Detail |
ObjID
public ObjID()
- Create the new object id, unique for this host.
ObjID
public ObjID(int id)
- Create the new object id defining the well known remotely accessible
object, present in this host. The well - known objects are:
REGISTRY_ID55 - RMI naming service.ACTIVATOR_ID55 - activatorDGC_ID55 - distributed garbage collector (grants lease durations to keep the object before it is garbage collected.
| Method Detail |
write
public void write(java.io.ObjectOutput out) throws java.io.IOException
- Write object id as long, then the object UID.
read
public static ObjID read(java.io.ObjectInput in) throws java.io.IOException
- Read object id (as long), then the object UID.
hashCode
public int hashCode()
- Get the hashcode.
equals
public boolean equals(java.lang.Object obj)
- Compare for equality.
eq
static final boolean eq(java.lang.Object a, java.lang.Object b)
- Compare by .equals if both a and b are not null, compare directly if at
least one of them is null.
toString
public java.lang.String toString()
- Get the string representation.
|
|||||||||
| Home >> All >> java >> rmi >> [ server overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
java.rmi.server.ObjID