|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.carol.irmi.Ref
The Ref class implements the RemoteRef
interface for this
RMI implementation. Instances of this class are passed to a Remote
object's RemoteStub
implementation.
These instances then get serialized and sent to the RMI client.
Field Summary |
Fields inherited from interface java.rmi.server.RemoteRef |
packagePrefix, serialVersionUID |
Fields inherited from interface org.objectweb.carol.irmi.Constants |
DGC_PING, METHOD_CALL, METHOD_ERROR, METHOD_RESULT, SYSTEM_ERROR |
Constructor Summary | |
Ref()
Public noargs constructor required for serialization. |
|
Ref(String host,
int port,
ObjID oid,
ClientInterceptor clint)
Constructs a Ref instance. |
Method Summary | |
void |
connect(Ref ref)
Make this Ref instance identical to the given Ref. |
void |
done(RemoteCall call)
Delegates to RemoteCall #done(). |
void |
finalize()
|
String |
getHost()
Returns the remote host pointed to by this Ref. |
ObjID |
getOID()
Returns the oid of this Ref. |
int |
getPort()
Returns the port on the remote host pointed to by this Ref. |
String |
getRefClass(ObjectOutput out)
Returns null. |
void |
invoke(RemoteCall call)
Delegates to RemoteCall.executeCall() . |
Object |
invoke(Remote rem,
Method meth,
Object[] args,
long hash)
|
RemoteCall |
newCall(RemoteObject obj,
Operation[] ops,
int opnum,
long hash)
Returns a new RemoteCall object. |
void |
readExternal(ObjectInput in)
|
boolean |
remoteEquals(RemoteRef obj)
|
int |
remoteHashCode()
|
String |
remoteToString()
|
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Ref()
public Ref(String host, int port, ObjID oid, ClientInterceptor clint)
host
- the remote hostport
- the port on the remote hostoid
- the ObjID of the remote objectclint
- a ClientInterceptor or nullMethod Detail |
public ObjID getOID()
public String getHost()
public int getPort()
public void connect(Ref ref)
ref
- the ref to duplicatepublic Object invoke(Remote rem, Method meth, Object[] args, long hash) throws Exception
invoke
in interface RemoteRef
Exception
public RemoteCall newCall(RemoteObject obj, Operation[] ops, int opnum, long hash)
RemoteCall
object. This is only used for
v1.1 stubs.
newCall
in interface RemoteRef
obj
- the stubops
- the operations contained by the stubopnum
- the opnum to be invokedhash
- the interface hash for this remote object
public void invoke(RemoteCall call) throws Exception
RemoteCall.executeCall()
.
invoke
in interface RemoteRef
call
- the RemoteCall obtained from invoking newCall(RemoteObject, Operation[], int, long)
Exception
public void done(RemoteCall call)
RemoteCall
#done().
done
in interface RemoteRef
call
- the RemoteCall obtained from invoking newCall(RemoteObject, Operation[], int, long)
public String getRefClass(ObjectOutput out)
RemoteObject
implementation that this Ref should be
serialized and sent directly to the client rather than being
replaced with a RemoteRef
implementation from the
client's RMI system.
getRefClass
in interface RemoteRef
out
- this is ignoredpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void finalize()
public boolean remoteEquals(RemoteRef obj)
remoteEquals
in interface RemoteRef
public int remoteHashCode()
remoteHashCode
in interface RemoteRef
public String remoteToString()
remoteToString
in interface RemoteRef
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |