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.
Modifier and Type | Field and Description |
---|---|
public static final Log | clientCallLog
Client-side call log. |
public static final Log | clientRefLog
Client-side transport log. |
protected LiveRef | |
private static final long |
Access | Constructor and Description |
---|---|
public | |
public |
Modifier and Type | Method and Description |
---|---|
public void | done(RemoteCall
object representing remote call call)Implements java.
References Deprecated
RemoteCall is deprecated or references (maybe indirectly) at least one deprecated element.
Done should only be called if the invoke returns successfully (non-exceptionally) to the stub. |
private void | free(RemoteCall call, boolean reuse)
References Deprecated
RemoteCall is deprecated or references (maybe indirectly) at least one deprecated element.
Private method to free a connection. |
public LiveRef | |
public String | getRefClass(ObjectOutput
the output stream to which the reference will be serialized out)Implements java. Returns the class of the ref type to be serialized |
public Object | invoke(Remote
the proxy for the remote object obj, Method the method to be invoked method, Object[] the parameter list params, long a hash that may be used to represent the method opnum)Implements java. Invoke a method. |
public void | invoke(RemoteCall
object representing remote call call)Implements java.
References Deprecated
RemoteCall is deprecated or references (maybe indirectly) at least one deprecated element.
Invoke makes the remote call present in the RemoteCall object. |
pack-priv void | |
protected void | |
protected static void | marshalValue(Class<?> type, Object value, ObjectOutput out)
Marshal value to an ObjectOutput sink using RMI's serialization format for parameters or return values. |
public RemoteCall | newCall(RemoteObject
remote stub through which to make call obj, Operation[] array of stub operations ops, int operation number opnum, long stub/skeleton interface hash hash)Implements java.
References Deprecated
Operation and RemoteCall are deprecated or reference (maybe indirectly) at least one deprecated element.
Create an appropriate call object for a new call on this object. |
public void | readExternal(ObjectInput
the stream to read data from in order to restore the object in)Implements java. Read in external representation for remote ref. |
public boolean | remoteEquals(RemoteRef
the Object to compare with sub)Implements java. default implementation of equals for remote objects |
public int | remoteHashCode()
Implements java. default implementation of hashCode for remote objects |
public String | remoteToString()
Implements java. Method from object, forward from RemoteObject |
protected static Object | unmarshalValue(Class<?> type, ObjectInput in)
Unmarshal value from an ObjectInput source using RMI's serialization format for parameters or return values. |
public void | writeExternal(ObjectOutput
the stream to write the object to out)Implements java. Write out external representation for remote ref. |
clientCallLog | back to summary |
---|---|
public static final Log clientCallLog Client-side call log.
|
clientRefLog | back to summary |
---|---|
public static final Log clientRefLog Client-side transport log. |
ref | back to summary |
---|---|
protected LiveRef ref
|
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID |
UnicastRef | back to summary |
---|---|
public UnicastRef() Create a new (empty) Unicast remote reference. |
UnicastRef | back to summary |
---|---|
public UnicastRef(LiveRef liveRef) Create a new Unicast RemoteRef. |
done | back to summary |
---|---|
public void done(RemoteCall call) throws RemoteException Implements java. References Deprecated
See corresponding docs for further information. 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.
|
free | back to summary |
---|---|
private void free(RemoteCall call, boolean reuse) throws RemoteException
References Deprecated
See corresponding docs for further information. Private method to free a connection. |
getLiveRef | back to summary |
---|---|
public LiveRef getLiveRef() 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. |
getRefClass | back to summary |
---|---|
public String getRefClass(ObjectOutput out) Implements java. Returns the class of the ref type to be serialized
|
invoke | back to summary |
---|---|
public Object invoke(Remote obj, Method method, Object[] params, long opnum) throws Exception Implements java. 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.
|
invoke | back to summary |
---|---|
public void invoke(RemoteCall call) throws Exception Implements java. References Deprecated
See corresponding docs for further information. 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.
|
logClientCall | back to summary |
---|---|
pack-priv void logClientCall(Object obj, Object method) Log the details of an outgoing call. The method parameter is either of type java.lang.reflect.Method or java.rmi.server.Operation. |
marshalCustomCallData | back to summary |
---|---|
protected void marshalCustomCallData(ObjectOutput out) throws IOException |
marshalValue | back to summary |
---|---|
protected static void marshalValue(Class<?> type, Object value, ObjectOutput out) throws IOException Marshal value to an ObjectOutput sink using RMI's serialization format for parameters or return values. |
newCall | back to summary |
---|---|
public RemoteCall newCall(RemoteObject obj, Operation[] ops, int opnum, long hash) throws RemoteException Implements java. References Deprecated
See corresponding docs for further information. 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.
|
readExternal | back to summary |
---|---|
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException Implements java. Read in external representation for remote ref.
|
remoteEquals | back to summary |
---|---|
public boolean remoteEquals(RemoteRef sub) Implements java. default implementation of equals for remote objects
|
remoteHashCode | back to summary |
---|---|
public int remoteHashCode() Implements java. default implementation of hashCode for remote objects
|
remoteToString | back to summary |
---|---|
public String remoteToString() Implements java. Method from object, forward from RemoteObject
|
unmarshalValue | back to summary |
---|---|
protected static Object unmarshalValue(Class<?> type, ObjectInput in) throws IOException, ClassNotFoundException Unmarshal value from an ObjectInput source using RMI's serialization format for parameters or return values. |
writeExternal | back to summary |
---|---|
public void writeExternal(ObjectOutput out) throws IOException Implements java. Write out external representation for remote ref.
|