done
public void done(RemoteCall call)
call
-
finalize
protected void finalize()
getIdentifiers
public Identifier[] getIdentifiers()
Returns the identifiers contained in this reference.
- a set of identifiers.
getRefClass
public String getRefClass(ObjectOutput out)
Not used; left for compatibility with java.rmi.server.RemoteRef
invoke
public void invoke(Marshaller marshaller)
throws MarshalException
Sends the marshaller with the invocation data down the protocol stack.
- invoke in interface JRMIOptRef
marshaller
- a marshaller with the invocation data;
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.
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
.
- the result of the remote method invocation, if successful.
invoke
public void invoke(RemoteCall call)
call
-
newCall
public RemoteCall newCall(RemoteObject obj,
Operation[] op,
int opnum,
long hash)
obj
- op
- opnum
- hash
-
- a remote call
prepareInvocation
public ReplyInterface prepareInvocation(Marshaller marshaller)
throws MarshalException
Prepares the marshaller prior to marshalling invocation data. This
preparation is protocol-specific and typically consists of adding headers
to the marshaller. In line with Java method invocation semantics, a reply
is expected after the remote invocation is executed; a reply interface
is thus returned in order to listen for the reply.
- prepareInvocation in interface JRMIOptRef
marshaller
- a marshaller to be used for the invocation data;
- a reply interface for listening for the reply;
readExternal
public void readExternal(ObjectInput stream)
throws ClassNotFoundException,
IOException
Reads an external representation of this reference from an underlying
object input stream.
stream
- the underlying object input stream.
remoteEquals
public boolean remoteEquals(RemoteRef obj)
Tests for object equality (==) of this reference with the given reference.
obj
- the remote reference to be compared with.
- the result of the object equality (==) test.
remoteHashCode
public int remoteHashCode()
Returns a hashcode for this reference.
- a hashcode.
remoteToString
public String remoteToString()
Provides a string representation of this reference.
- a string representation of this reference.
request
public Marshaller request()
throws MarshalException
Obtains a marshaller for marshalling invocation data.
- request in interface JRMIOptRef
- a marshaller for marshalling invocation data;
setIdentifiers
public void setIdentifiers(Identifier[] ids)
Sets the identifiers contained in this reference to the given identifiers.
ids
- a set of identifiers.
toString
public String toString()
writeExternal
public void writeExternal(ObjectOutput stream)
throws IOException
Writes an external representation of this reference to an underlying
object output stream.
stream
- the underlying object output stream.