RemoteRef represents the handle for a remote object. A
RemoteStub uses a remote reference to carry out a
remote method invocation to a remote object.
RemoteStub| Field Summary | |
|---|---|
static String |
packagePrefix
Initialize the server package prefix: assumes that the implementation of server ref classes (e.g., UnicastRef, UnicastServerRef) are located in the package defined by the prefix. |
static long |
serialVersionUID
indicate compatibility with JDK 1.1.x version of class. |
| Method Summary | |
|---|---|
void |
done(RemoteCall call)
Deprecated. 1.2 style stubs no longer use this method. Instead of using a sequence of method calls to the remote reference ( newCall, invoke, and done), a
stub uses a single method, invoke(Remote, Method, Object[],
int), on the remote reference to carry out parameter
marshalling, remote method executing and unmarshalling of the return
value. |
String |
getRefClass(ObjectOutput out)
Returns the class name of the ref type to be serialized onto the stream 'out'. |
void |
invoke(RemoteCall call)
Deprecated. 1.2 style stubs no longer use this method. Instead of using a sequence of method calls to the remote reference ( newCall, invoke, and done), a
stub uses a single method, invoke(Remote, Method, Object[],
int), on the remote reference to carry out parameter
marshalling, remote method executing and unmarshalling of the return
value. |
Object |
invoke(Remote obj,
Method method,
Object[] params,
long opnum)
Invoke a method. |
RemoteCall |
newCall(RemoteObject obj,
Operation[] op,
int opnum,
long hash)
Deprecated. 1.2 style stubs no longer use this method. Instead of using a sequence of method calls on the stub's the remote reference ( newCall, invoke, and done), a
stub uses a single method, invoke(Remote, Method, Object[],
int), on the remote reference to carry out parameter
marshalling, remote method executing and unmarshalling of the return
value. |
boolean |
remoteEquals(RemoteRef obj)
Compares two remote objects for equality. |
int |
remoteHashCode()
Returns a hashcode for a remote object. |
String |
remoteToString()
Returns a String that represents the reference of this remote object. |
| Methods inherited from interface java.io.Externalizable |
|---|
readExternal, writeExternal |
| Field Detail |
|---|
static final long serialVersionUID
static final String packagePrefix
| Method Detail |
|---|
Object invoke(Remote obj, Method method, Object[] params, long opnum) throws Exception
obj - the object that contains the RemoteRef (e.g., the
RemoteStub for the object.method - the method to be invokedparams - the parameter listopnum - a hash that may be used to represent the method
Exception - if any exception occurs during remote method
invocation@Deprecated RemoteCall newCall(RemoteObject obj, Operation[] op, int opnum, long hash) throws RemoteException
newCall, invoke, and done), a
stub uses a single method, invoke(Remote, Method, Object[],
int), on the remote reference to carry out parameter
marshalling, remote method executing and unmarshalling of the return
value.
obj - remote stub through which to make callop - array of stub operationsopnum - operation numberhash - stub/skeleton interface hash
RemoteException - if failed to initiate new remote callinvoke(Remote,java.lang.reflect.Method,Object[],long)@Deprecated void invoke(RemoteCall call) throws Exception
newCall, invoke, and done), a
stub uses a single method, invoke(Remote, Method, Object[],
int), on the remote reference to carry out parameter
marshalling, remote method executing and unmarshalling of the return
value.
call - object representing remote call
Exception - if any exception occurs during remote methodinvoke(Remote,java.lang.reflect.Method,Object[],long)@Deprecated void done(RemoteCall call) throws RemoteException
newCall, invoke, and done), a
stub uses a single method, invoke(Remote, Method, Object[],
int), on the remote reference to carry out parameter
marshalling, remote method executing and unmarshalling of the return
value.
call - object representing remote call
RemoteException - if remote error occurs during call cleanupinvoke(Remote,java.lang.reflect.Method,Object[],long)String getRefClass(ObjectOutput out)
out - the output stream to which the reference will be serialized
int remoteHashCode()
Hashtableboolean remoteEquals(RemoteRef obj)
obj - the Object to compare with
HashtableString remoteToString()
Ces 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)