public class DynamicRef extends Object implements JRMIRef
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;
packagePrefix, serialVersionUID
Constructor and Description |
---|
DynamicRef(JRMIRef client_ref,
DynamicRemote target) |
Modifier and Type | Method and Description |
---|---|
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() |
public DynamicRef(JRMIRef client_ref, DynamicRemote target)
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)
public void invoke(RemoteCall call)
public void done(RemoteCall call)
public void readExternal(ObjectInput in)
readExternal
in interface Externalizable
public void writeExternal(ObjectOutput out)
writeExternal
in interface Externalizable