java.lang.Object | |
↳ | sun.rmi.server.UnicastRef |
![]() |
![]() |
NOTE: There is a JDK-internal dependency on the existence of this class's getLiveRef method (as it is inherited by UnicastRef2) in the implementation of javax.management.remote.rmi.RMIConnector.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
clientCallLog | Client-side call log. | ||||||||||
clientRefLog | Client-side transport log. | ||||||||||
ref |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new (empty) Unicast remote reference.
| |||||||||||
Create a new Unicast RemoteRef.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Done should only be called if the invoke returns successfully
(non-exceptionally) to the stub.
| |||||||||||
Returns the current value of this UnicastRef's underlying
LiveRef.
| |||||||||||
Returns the class of the ref type to be serialized
| |||||||||||
Invoke makes the remote call present in the RemoteCall object.
| |||||||||||
Invoke a method.
| |||||||||||
Create an appropriate call object for a new call on this object.
| |||||||||||
Read in external representation for remote ref.
| |||||||||||
default implementation of equals for remote objects
| |||||||||||
default implementation of hashCode for remote objects
| |||||||||||
Method from object, forward from RemoteObject
| |||||||||||
Write out external representation for remote ref.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Marshal value to an ObjectOutput sink using RMI's serialization
format for parameters or return values.
| |||||||||||
Unmarshal value from an ObjectInput source using RMI's serialization
format for parameters or return values.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Create a new (empty) Unicast remote reference.
Done should only be called if the invoke returns successfully (non-exceptionally) to the stub. It allows the remote reference to clean up (or reuse) the connection.
call | object representing remote call |
---|
RemoteException |
---|
Returns the current value of this UnicastRef's underlying LiveRef. NOTE: There is a JDK-internal dependency on the existence of this method (as it is inherited by UnicastRef) in the implementation of javax.management.remote.rmi.RMIConnector.
Returns the class of the ref type to be serialized
out | the output stream to which the reference will be serialized |
---|
Invoke makes the remote call present in the RemoteCall object. Invoke will raise any "user" exceptions which should pass through and not be caught by the stub. If any exception is raised during the remote invocation, invoke should take care of cleaning up the connection before raising the "user" or remote exception.
call | object representing remote call |
---|
Exception |
---|
Invoke a method. This form of delegating method invocation to the reference allows the reference to take care of setting up the connection to the remote host, marshalling some representation for the method and parameters, then communicating the method invocation to the remote host. This method either returns the result of a method invocation on the remote object which resides on the remote host or throws a RemoteException if the call failed or an application-level exception if the remote invocation throws an exception.
obj | the proxy for the remote object |
---|---|
method | the method to be invoked |
params | the parameter list |
opnum | a hash that may be used to represent the method |
Exception |
---|
Create an appropriate call object for a new call on this object. Passing operation array and index, allows the stubs generator to assign the operation indexes and interpret them. The RemoteRef may need the operation to encode in for the call.
obj | remote stub through which to make call |
---|---|
ops | array of stub operations |
opnum | operation number |
hash | stub/skeleton interface hash |
RemoteException |
---|
Read in external representation for remote ref.
in | the stream to read data from in order to restore the object |
---|
ClassNotFoundException | If the class for an object being restored cannot be found. |
---|---|
IOException |
default implementation of equals for remote objects
sub | the Object to compare with |
---|
default implementation of hashCode for remote objects
Method from object, forward from RemoteObject
Write out external representation for remote ref.
out | the stream to write the object to |
---|
IOException |
---|
Marshal value to an ObjectOutput sink using RMI's serialization format for parameters or return values.
IOException |
---|
Unmarshal value from an ObjectInput source using RMI's serialization format for parameters or return values.