org.objectweb.jeremie.stub_factories.std

Class DynamicRef

Implemented Interfaces:
JRMIRef, Reference, RemoteRef

public class DynamicRef
extends Object
implements JRMIRef

Provides an implementation of a Jeremie reference to a remote object.

A Jeremie reference contains:

Constructor Summary

DynamicRef(JRMIRef client_ref, DynamicRemote target)

Method Summary

void
done(RemoteCall call)
Deprecated.
Identifier[]
getIdentifiers()
Returns the identifiers contained in this reference.
String
getRefClass(ObjectOutput out)
Not used; left for compatibility with java.rmi.server.RemoteRef
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.
void
invoke(RemoteCall call)
Deprecated.
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(Identifier[] ids)
Sets the identifiers contained in this reference to the given identifiers.
void
writeExternal(ObjectOutput out)
Object
writeReplace()

Constructor Details

DynamicRef

public DynamicRef(JRMIRef client_ref,
                  DynamicRemote target)

Method Details

done

public void done(RemoteCall call)

Deprecated.

Parameters:
call -


getIdentifiers

public Identifier[] getIdentifiers()
Returns the identifiers contained in this reference.

Returns:
a set of identifiers.


getRefClass

public String getRefClass(ObjectOutput out)
Not used; left for compatibility with java.rmi.server.RemoteRef


invoke

public Object invoke(Remote obj,
                     Method method,
                     Object[] params,
                     long opnum)
            throws Exception
Carries out a remote method invocation and either returns the result of the invocation is successful, otherwise an exception.

Parameters:
obj - ignored; left for compatibility with java.rmi.server.RemoteRef;
method - the remote method to be invoked;
params - arguments to the invocation of the remote method;
opnum - ignored; left for compatibility with java.rmi.server.RemoteRef.

Returns:
the result of the remote method invocation, if successful.


invoke

public void invoke(RemoteCall call)

Deprecated.

Parameters:
call -


newCall

public RemoteCall newCall(RemoteObject obj,
                          Operation[] op,
                          int opnum,
                          long hash)

Deprecated.

Parameters:
obj -
op -
opnum -
hash -

Returns:
a remote call


readExternal

public void readExternal(ObjectInput in)


remoteEquals

public boolean remoteEquals(RemoteRef obj)
Tests for object equality (==) of this reference with the given reference.

Parameters:
obj - the remote reference to be compared with.

Returns:
the result of the object equality (==) test.


remoteHashCode

public int remoteHashCode()
Returns a hashcode for this reference.

Returns:
a hashcode.


remoteToString

public String remoteToString()
Provides a string representation of this reference.

Returns:
a string representation of this reference.


setIdentifiers

public void setIdentifiers(Identifier[] ids)
Sets the identifiers contained in this reference to the given identifiers.

Parameters:
ids - a set of identifiers.


writeExternal

public void writeExternal(ObjectOutput out)


writeReplace

public Object writeReplace()