|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jeremie.libs.stub_factories.std.DynamicRef
Provides an implementation of a Jeremie reference
to a
remote object.
A Jeremie reference contains:
identifiers
;
marshaller factory
;
session identifier
;
session high object
for sending messages down the protocol stack;
Field Summary |
Fields inherited from interface java.rmi.server.RemoteRef |
packagePrefix, serialVersionUID |
Constructor Summary | |
DynamicRef(JRMIRef client_ref,
DynamicRemote target)
|
Method Summary | |
void |
done(java.rmi.server.RemoteCall call)
Deprecated. |
Identifier[] |
getIdentifiers()
Returns the identifiers contained in this reference. |
java.lang.String |
getRefClass(java.io.ObjectOutput out)
Not used; left for compatibility with RemoteRef |
void |
invoke(java.rmi.server.RemoteCall call)
Deprecated. |
java.lang.Object |
invoke(java.rmi.Remote obj,
java.lang.reflect.Method method,
java.lang.Object[] params,
long opnum)
Carries out a remote method invocation and either returns the result of the invocation is successful, otherwise an exception. |
java.rmi.server.RemoteCall |
newCall(java.rmi.server.RemoteObject obj,
java.rmi.server.Operation[] op,
int opnum,
long hash)
Deprecated. |
void |
readExternal(java.io.ObjectInput in)
|
boolean |
remoteEquals(java.rmi.server.RemoteRef obj)
Tests for object equality (==) of this reference with the given reference. |
int |
remoteHashCode()
Returns a hashcode for this reference. |
java.lang.String |
remoteToString()
Provides a string representation of this reference. |
void |
setIdentifiers(Identifier[] ids)
Sets the identifiers contained in this reference to the given identifiers. |
void |
writeExternal(java.io.ObjectOutput out)
|
java.lang.Object |
writeReplace()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DynamicRef(JRMIRef client_ref, DynamicRemote target)
Method Detail |
public java.lang.Object writeReplace()
public java.lang.Object invoke(java.rmi.Remote obj, java.lang.reflect.Method method, java.lang.Object[] params, long opnum) throws java.lang.Exception
invoke
in interface java.rmi.server.RemoteRef
obj
- ignored; left for compatibility with RemoteRef
;method
- the remote method to be invoked;params
- arguments to the invocation of the remote method;opnum
- ignored; left for compatibility with RemoteRef
.
java.lang.Exception
- any exception thrown either by the remote method
invocation, or if something goes wrong (network error, etc.).public void setIdentifiers(Identifier[] ids)
setIdentifiers
in interface Reference
ids
- a set of identifiers.public Identifier[] getIdentifiers()
getIdentifiers
in interface Reference
public java.lang.String getRefClass(java.io.ObjectOutput out)
RemoteRef
getRefClass
in interface java.rmi.server.RemoteRef
public int remoteHashCode()
remoteHashCode
in interface java.rmi.server.RemoteRef
public boolean remoteEquals(java.rmi.server.RemoteRef obj)
remoteEquals
in interface java.rmi.server.RemoteRef
obj
- the remote reference to be compared with.
public java.lang.String remoteToString()
remoteToString
in interface java.rmi.server.RemoteRef
public java.rmi.server.RemoteCall newCall(java.rmi.server.RemoteObject obj, java.rmi.server.Operation[] op, int opnum, long hash)
newCall
in interface java.rmi.server.RemoteRef
obj
- op
- opnum
- hash
-
public void invoke(java.rmi.server.RemoteCall call)
invoke
in interface java.rmi.server.RemoteRef
call
- public void done(java.rmi.server.RemoteCall call)
done
in interface java.rmi.server.RemoteRef
call
- public void readExternal(java.io.ObjectInput in)
readExternal
in interface java.io.Externalizable
public void writeExternal(java.io.ObjectOutput out)
writeExternal
in interface java.io.Externalizable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |