java.rmi.activation

Class ActivationID

  • All Implemented Interfaces:
    Serializable

    public class ActivationID
    extends Object
    implements Serializable
    Activation makes use of special identifiers to denote remote objects that can be activated over time. An activation identifier (an instance of the class ActivationID) contains several pieces of information needed for activating an object:
    • a remote reference to the object's activator (a RemoteRef instance), and
    • a unique identifier (a UID instance) for the object.

    An activation identifier for an object can be obtained by registering an object with the activation system. Registration is accomplished in a few ways:

    • via the Activatable.register method
    • via the first Activatable constructor (that takes three arguments and both registers and exports the object, and
    • via the first Activatable.exportObject method that takes the activation descriptor, object and port as arguments; this method both registers and exports the object.
    Since:
    1.2
    See Also:
    Activatable, Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      ActivationID(Activator activator)
      The constructor for ActivationID takes a single argument, activator, that specifies a remote reference to the activator responsible for activating the object associated with this identifier.

        

    • Constructor Detail

      • ActivationID

        public ActivationID(Activator activator)
        The constructor for ActivationID takes a single argument, activator, that specifies a remote reference to the activator responsible for activating the object associated with this identifier. An instance of ActivationID is globally unique.
        Parameters:
        activator - reference to the activator responsible for activating the object
        Since:
        1.2
    • Method Detail

      • hashCode

        public int hashCode()
        Returns a hashcode for the activation id. Two identifiers that refer to the same remote object will have the same hash code.
        Overrides:
        hashCode in class Object
        Returns:
        a hash code value for this object.
        Since:
        1.2
        See Also:
        Hashtable
      • equals

        public boolean equals(Object obj)
        Compares two activation ids for content equality. Returns true if both of the following conditions are true: 1) the unique identifiers equivalent (by content), and 2) the activator specified in each identifier refers to the same remote object.
        Overrides:
        equals in class Object
        Parameters:
        obj - the Object to compare with
        Returns:
        true if these Objects are equal; false otherwise.
        Since:
        1.2
        See Also:
        Hashtable

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Document créé le 30/08/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-java/rmi/activation/activationid.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com, ActivationID

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.

Table des matières Haut