java.rmi.activation
public class: ActivationGroupID [javadoc |
source]
java.lang.Object
java.rmi.activation.ActivationGroupID
All Implemented Interfaces:
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.
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from java.rmi.activation.ActivationGroupID Detail: |
public boolean equals(Object obj) {
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;
}
}
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. |
public ActivationSystem getSystem() {
return system;
}
Returns the group's activation system. |
public int hashCode() {
return uid.hashCode();
}
Returns a hashcode for the group's identifier. Two group
identifiers that refer to the same remote group will have the
same hash code. |