public class JUnicastServerRef
extends sun.rmi.server.UnicastServerRef
JUnicastServerRef
implements the remote reference layer
server-side behavior for remote objects exported with the JUnicastRef
reference type.Modifier and Type | Field and Description |
---|---|
protected JClientRequestInterceptor[] |
cis
ClientRequestInterceptor array
|
protected JServerRequestInterceptor[] |
sis
ServerRequestInterceptor array
|
Constructor and Description |
---|
JUnicastServerRef()
constructor
|
JUnicastServerRef(int port,
JServerRequestInterceptor[] sis,
JClientRequestInterceptor[] cis)
Constructor with interceptor
|
JUnicastServerRef(sun.rmi.transport.LiveRef ref,
JServerRequestInterceptor[] sis,
JClientRequestInterceptor[] cis)
Constructor with interceptor
|
Modifier and Type | Method and Description |
---|---|
void |
dispatch(java.rmi.Remote obj,
java.rmi.server.RemoteCall call)
override dispatch to use a specific thread factory
|
java.rmi.Remote |
exportObject(java.rmi.Remote obj,
java.lang.Object object,
int localId) |
protected java.rmi.server.RemoteRef |
getClientRef()
use a different kind of RemoteRef instance.
|
java.lang.String |
getRefClass(java.io.ObjectOutput out)
get the ref class name
|
protected void |
unmarshalCustomCallData(java.io.ObjectInput in)
override unmarshalCustomCallData to receive and establish contexts sent
by the client
|
clearStackTraces, exportObject, exportObject, getClientHost, oldDispatch, readExternal, setSkeleton, writeExternal
done, getLiveRef, invoke, invoke, marshalCustomCallData, marshalValue, newCall, remoteEquals, remoteHashCode, remoteToString, unmarshalValue
protected JServerRequestInterceptor[] sis
protected JClientRequestInterceptor[] cis
public JUnicastServerRef()
public JUnicastServerRef(sun.rmi.transport.LiveRef ref, JServerRequestInterceptor[] sis, JClientRequestInterceptor[] cis)
ref
- the live referencesis
- the server interceptor arraycis
- the client interceptor arraypublic JUnicastServerRef(int port, JServerRequestInterceptor[] sis, JClientRequestInterceptor[] cis)
port
- the port referencesis
- the server interceptor arraycis
- the client interceptor arraypublic java.lang.String getRefClass(java.io.ObjectOutput out)
getRefClass
in interface java.rmi.server.RemoteRef
getRefClass
in class sun.rmi.server.UnicastServerRef
protected java.rmi.server.RemoteRef getClientRef()
getClientRef
in class sun.rmi.server.UnicastServerRef
public java.rmi.Remote exportObject(java.rmi.Remote obj, java.lang.Object object, int localId) throws java.rmi.RemoteException
obj
- localId
- object
- java.rmi.RemoteException
protected void unmarshalCustomCallData(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
unmarshalCustomCallData
in class sun.rmi.server.UnicastServerRef
in
- the object inputjava.io.IOException
java.lang.ClassNotFoundException
public void dispatch(java.rmi.Remote obj, java.rmi.server.RemoteCall call) throws java.io.IOException
dispatch
in interface sun.rmi.server.Dispatcher
dispatch
in class sun.rmi.server.UnicastServerRef
obj
- the remote objectcall
- the remote call on this objectjava.io.IOException