FileDocCategorySizeDatePackage
ActivationGroupID.javaAPI DocJava SE 5 API2851Fri Aug 26 14:57:12 BST 2005java.rmi.activation

ActivationGroupID

public class ActivationGroupID extends Object implements Serializable
The identifier for a registered activation group serves several purposes:
  • identifies the group uniquely within the activation system, and
  • contains a reference to the group's activation system so that the group can contact its activation system when necessary.

The ActivationGroupID is returned from the call to ActivationSystem.registerGroup and is used to identify the group within the activation system. This group id is passed as one of the arguments to the activation group's special constructor when an activation group is created/recreated.

author
Ann Wollrath
version
1.15, 12/19/03
see
ActivationGroup
see
ActivationGroupDesc
since
1.2

Fields Summary
private ActivationSystem
system
private UID
uid
private static final long
serialVersionUID
indicate compatibility with the Java 2 SDK v1.2 version of class
Constructors Summary
public ActivationGroupID(ActivationSystem system)
Constructs a unique group id.

param
system the group's activation system
since
1.2


                      
       
	this.system = system;
    
Methods Summary
public booleanequals(java.lang.Object obj)
Compares two group identifiers for content equality. Returns true if both of the following conditions are true: 1) the unique identifiers are equivalent (by content), and 2) the activation system specified in each refers to the same remote object.

param
obj the Object to compare with
return
true if these Objects are equal; false otherwise.
see
java.util.Hashtable
since
1.2

	if (this == obj) {
	    return true;
	} else if (obj instanceof ActivationGroupID) {
	    ActivationGroupID id = (ActivationGroupID)obj;
	    return (uid.equals(id.uid) && system.equals(id.system));
	} else {
	    return false;
	}
    
public java.rmi.activation.ActivationSystemgetSystem()
Returns the group's activation system.

return
the group's activation system
since
1.2

	return system;
    
public inthashCode()
Returns a hashcode for the group's identifier. Two group identifiers that refer to the same remote group will have the same hash code.

see
java.util.Hashtable
since
1.2

	return uid.hashCode();