|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jeremie.stub_factories.std.DynamicRef
public class 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(RemoteCall call)
Deprecated. |
org.objectweb.jonathan.binding.api.Identifier[] |
getIdentifiers()
Returns the identifiers contained in this reference. |
String |
getRefClass(ObjectOutput out)
Not used; left for compatibility with RemoteRef |
void |
invoke(RemoteCall call)
Deprecated. |
Object |
invoke(Remote obj,
Method method,
Object[] params,
long opnum)
Carries out a remote method invocation and either returns the result of the invocation is successful, otherwise an exception. |
RemoteCall |
newCall(RemoteObject obj,
Operation[] op,
int opnum,
long hash)
Deprecated. |
void |
readExternal(ObjectInput in)
|
boolean |
remoteEquals(RemoteRef obj)
Tests for object equality (==) of this reference with the given reference. |
int |
remoteHashCode()
Returns a hashcode for this reference. |
String |
remoteToString()
Provides a string representation of this reference. |
void |
setIdentifiers(org.objectweb.jonathan.binding.api.Identifier[] ids)
Sets the identifiers contained in this reference to the given identifiers. |
void |
writeExternal(ObjectOutput out)
|
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 Object writeReplace()
public Object invoke(Remote obj, Method method, Object[] params, long opnum) throws Exception
invoke
in interface 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
.
Exception
- any exception thrown either by the remote method
invocation, or if something goes wrong (network error, etc.).public void setIdentifiers(org.objectweb.jonathan.binding.api.Identifier[] ids)
setIdentifiers
in interface org.objectweb.jonathan.binding.api.Reference
ids
- a set of identifiers.public org.objectweb.jonathan.binding.api.Identifier[] getIdentifiers()
getIdentifiers
in interface org.objectweb.jonathan.binding.api.Reference
public String getRefClass(ObjectOutput out)
RemoteRef
getRefClass
in interface RemoteRef
public int remoteHashCode()
remoteHashCode
in interface RemoteRef
public boolean remoteEquals(RemoteRef obj)
remoteEquals
in interface RemoteRef
obj
- the remote reference to be compared with.
public String remoteToString()
remoteToString
in interface RemoteRef
public RemoteCall newCall(RemoteObject obj, Operation[] op, int opnum, long hash)
newCall
in interface RemoteRef
obj
- op
- opnum
- hash
-
public void invoke(RemoteCall call)
invoke
in interface RemoteRef
call
- public void done(RemoteCall call)
done
in interface RemoteRef
call
- public void readExternal(ObjectInput in)
readExternal
in interface Externalizable
public void writeExternal(ObjectOutput out)
writeExternal
in interface Externalizable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |