org.objectweb.proactive.core.UniqueID Class Reference

List of all members.

Public Member Functions

 UniqueID ()
 Creates a new UniqueID.
java.rmi.dgc.VMID getVMID ()
 Returns the VMID of this UniqueID.
java.rmi.server.UID getUID ()
 Returns the UID part of this UniqueID.
String toString ()
 Returns a string representation of this UniqueID.
int hashCode ()
 Overrides hashCode to take into account the two part of this UniqueID.
boolean equals (Object o)
 Overrides equals to take into account the two part of this UniqueID.
void echo ()
 for debug purpose

Static Public Member Functions

static java.rmi.dgc.VMID getCurrentVMID ()
 Returns the VMID of the current VM in which this class has been loaded.

Static Protected Attributes

static Logger logger = ProActiveLogger.getLogger(Loggers.CORE)

Detailed Description

UniqueID is a unique object identifier across all jvm. It is made of a unique VMID combined with a unique UID on that VM.

The UniqueID is used to identify object globally, even in case of migration.

Author:
ProActive Team
Version:
1.0, 2001/10/23
Since:
ProActive 0.9

Definition at line 50 of file UniqueID.java.


Member Function Documentation

static java.rmi.dgc.VMID org.objectweb.proactive.core.UniqueID.getCurrentVMID (  )  [static]

Returns the VMID of the current VM in which this class has been loaded.

Returns:
the VMID of the current VM

Definition at line 78 of file UniqueID.java.

java.rmi.dgc.VMID org.objectweb.proactive.core.UniqueID.getVMID (  ) 

Returns the VMID of this UniqueID.

Note that the VMID of one UniqueID may differ from the local VMID (that one can get using getCurrentVMID() in case this UniqueID is attached to an object that has migrated.

Returns:
the VMID part of this UniqueID

Definition at line 92 of file UniqueID.java.

java.rmi.server.UID org.objectweb.proactive.core.UniqueID.getUID (  ) 

Returns the UID part of this UniqueID.

Returns:
the UID part of this UniqueID

Definition at line 100 of file UniqueID.java.

String org.objectweb.proactive.core.UniqueID.toString (  ) 

Returns a string representation of this UniqueID.

Returns:
a string representation of this UniqueID

Definition at line 108 of file UniqueID.java.

References org.objectweb.proactive.core.UniqueID.logger.

Referenced by org.objectweb.proactive.core.body.migration.MixedLocationServer.runActivity().

int org.objectweb.proactive.core.UniqueID.hashCode (  ) 

Overrides hashCode to take into account the two part of this UniqueID.

Returns:
the hashcode of this object

Definition at line 122 of file UniqueID.java.

Referenced by org.objectweb.proactive.core.component.representative.ItfID.hashCode(), and org.objectweb.proactive.core.body.BodyAdapterForwarder.hashCode().

boolean org.objectweb.proactive.core.UniqueID.equals ( Object  o  ) 

Overrides equals to take into account the two part of this UniqueID.

Returns:
the true if and only if o is an UniqueID equals to this UniqueID

Definition at line 130 of file UniqueID.java.

Referenced by org.objectweb.proactive.core.component.representative.ItfID.equals().


The documentation for this class was generated from the following file:
Generated on Mon Jan 22 15:16:15 2007 for ProActive by  doxygen 1.5.1