public interface Activator
The Activator facilitates remote object activation. A
"faulting" remote reference calls the activator's
activate method to obtain a "live" reference to a
"activatable" remote object. Upon receiving a request for activation,
the activator looks up the activation descriptor for the activation
identifier, id, determines the group in which the
object should be activated initiates object re-creation via the
group's ActivationInstantiator (via a call to the
newInstance method). The activator initiates the
execution of activation groups as necessary. For example, if an
activation group for a specific group identifier is not already
executing, the activator initiates the execution of a VM for the
group.
The Activator works closely with
ActivationSystem, which provides a means for registering
groups and objects within those groups, and ActivationMonitor,
which recives information about active and inactive objects and inactive
groups.
The activator is responsible for monitoring and detecting when activation groups fail so that it can remove stale remote references to groups and active object's within those groups.
ActivationInstantiator,
ActivationGroupDesc,
ActivationGroupID| Method Summary | |
|---|---|
MarshalledObject |
activate(ActivationID id,
boolean force)
Activate the object associated with the activation identifier, id. |
| Method Detail |
|---|
MarshalledObject activate(ActivationID id, boolean force) throws ActivationException, UnknownObjectException, RemoteException
id. If the activator knows the object to be active
already, and force is false , the stub with a
"live" reference is returned immediately to the caller;
otherwise, if the activator does not know that corresponding
the remote object is active, the activator uses the activation
descriptor information (previously registered) to determine the
group (VM) in which the object should be activated. If an
ActivationInstantiator corresponding to the
object's group descriptor already exists, the activator invokes
the activation group's newInstance method passing
it the object's id and descriptor.
If the activation group for the object's group descriptor does
not yet exist, the activator starts an
ActivationInstantiator executing (by spawning a
child process, for example). When the activator receives the
activation group's call back (via the
ActivationSystem's activeGroup
method) specifying the activation group's reference, the
activator can then invoke that activation instantiator's
newInstance method to forward each pending
activation request to the activation group and return the
result (a marshalled remote object reference, a stub) to the
caller.
Note that the activator receives a "marshalled" object instead of a Remote object so that the activator does not need to load the code for that object, or participate in distributed garbage collection for that object. If the activator kept a strong reference to the remote object, the activator would then prevent the object from being garbage collected under the normal distributed garbage collection mechanism.
id - the activation identifier for the object being activatedforce - if true, the activator contacts the group to obtain
the remote object's reference; if false, returning the cached value
is allowed.
ActivationException - if object activation fails
UnknownObjectException - if object is unknown (not registered)
RemoteException - if remote call failsCes informations proviennent du site de http://java.sun.com
Le contenu de cette page provient du site de Sun, et est généré depuis un cache sur l'infobrol après certains traitements automatisés. La présentation peut donc différer du document original, mais le contenu aussi. Vous pouvez utiliser ce bouton pour afficher la page originale du site de Sun :
Maintenir les pages en cache sur différents sites peut offrir plus de disponibilité.
Chaque page est indexée dans la base de donnée, ce qui permet de retrouver facilement les informations, au moyen des sommaires, du moteur de recherche interne, etc.
Des facilités sont mises en place pour que les membres de l'infobrol puissent effectuer des traductions en français des différents documents. Ceci devrait permettre aux débutants en programmation Java de consulter les API en français s'ils maîtrisent moins bien la langue de Shakespeare. Dans le cas où une traduction a été soumise, elle est disponible au moyen d'un lien en bas de page. Si la traduction a été validée, la page s'affiche par défaut en français, et un lien en bas de page permet d'atteindre la version en anglais.
Le code sur l'infobrol est automatiquement coloré selon la syntaxe, et les différents mots clés sont transformés en liens pour accéder rapidement aux informations.
Vous avez la possibilité de partager vos expériences en proposant vos propres extraits de code en utilisant le bouton "ajouter un commentaire" en bas de page. Si vous visitez simplement l'infobrol, vous avez déjà accès à cette fonction, mais si vous étes membre du brol, vous pouvez en plus utiliser des boutons supplémentaires de mise en forme, dont la coloration automatique de vos extraits de codes.
Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.
7 mots clés dont 0 définis manuellement (plus d'information...).
Avertissement
Cette page ne possède pas encore de mots clés manuels, ceci est donc un exemple automatique (les niveaux de pertinence sont fictifs, mais les liens sont valables). Pour tester le nuage avec une page qui contient des mots définis manuellement, vous pouvez cliquer ici.Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher le nuage de mots clés.
Recherche (afficher)
Utilisateur (masquer)
Navigation (masquer)
Apparence (afficher)
Stats (afficher)
Citation (masquer)