public class JUnicastRef
extends sun.rmi.server.UnicastRef
JUnicastRef
is the CAROL JRMP UnicastRef with context
propagationModifier and Type | Field and Description |
---|---|
protected JClientRequestInterceptor[] |
cis
Client Interceptor for context propagation
|
protected java.lang.String[] |
initializers
Interceptors initialisers for this References
|
Constructor and Description |
---|
JUnicastRef()
empty constructor
|
JUnicastRef(sun.rmi.transport.LiveRef liveRef)
Constructor without Interceptor
|
JUnicastRef(sun.rmi.transport.LiveRef liveRef,
JClientRequestInterceptor[] cis,
java.lang.String[] initial,
int local)
Constructor with interceptor
|
Modifier and Type | Method and Description |
---|---|
int |
getLocalId() |
java.lang.String |
getRefClass(java.io.ObjectOutput out)
get the ref class always return null
|
void |
invoke(java.rmi.server.RemoteCall call)
Deprecated.
|
java.lang.Object |
invoke(java.rmi.Remote obj,
java.lang.reflect.Method method,
java.lang.Object[] params,
long opnum)
wrap the call to send the contexts
|
protected void |
marshalCustomCallData(java.io.ObjectOutput out)
override marshalCustomCallData to pass and disociate contexts on the
client
|
java.rmi.server.RemoteCall |
newCall(java.rmi.server.RemoteObject obj,
java.rmi.server.Operation[] ops,
int opnum,
long hash)
Deprecated.
|
void |
readExternal(java.io.ObjectInput in)
override readExternal to initialise localRef We could actually receive
anything from the server on lookup
|
void |
readExternal(java.io.ObjectInput in,
boolean newFormat)
override readExternal to initialise localRef We could actually receive
anything from the server on lookup
|
void |
writeExternal(java.io.ObjectOutput out)
override writeExternal to send spaceID We could actually send anything to
the client on lookup
|
void |
writeExternal(java.io.ObjectOutput out,
boolean newFormat)
override writeExternal to send spaceID And the interceptor We could
actually send anything to the client on lookup
|
protected transient JClientRequestInterceptor[] cis
protected transient java.lang.String[] initializers
public JUnicastRef()
public JUnicastRef(sun.rmi.transport.LiveRef liveRef)
liveRef
- the live referencepublic JUnicastRef(sun.rmi.transport.LiveRef liveRef, JClientRequestInterceptor[] cis, java.lang.String[] initial, int local)
liveRef
- the live referencecis
- the client interceptor arrayint
- localIdpublic java.lang.String getRefClass(java.io.ObjectOutput out)
getRefClass
in interface java.rmi.server.RemoteRef
getRefClass
in class sun.rmi.server.UnicastRef
out
- the output streampublic java.lang.Object invoke(java.rmi.Remote obj, java.lang.reflect.Method method, java.lang.Object[] params, long opnum) throws java.lang.Exception
invoke
in interface java.rmi.server.RemoteRef
invoke
in class sun.rmi.server.UnicastRef
obj
- the remote object to invokemethod
- the method to invoqueparams
- the methid paramettersopnum
- the operation numberjava.lang.Exception
public void invoke(java.rmi.server.RemoteCall call) throws java.lang.Exception
invoke
in interface java.rmi.server.RemoteRef
invoke
in class sun.rmi.server.UnicastRef
call
- the remote calljava.lang.Exception
public java.rmi.server.RemoteCall newCall(java.rmi.server.RemoteObject obj, java.rmi.server.Operation[] ops, int opnum, long hash) throws java.rmi.RemoteException
newCall
in interface java.rmi.server.RemoteRef
newCall
in class sun.rmi.server.UnicastRef
obj
- the remote objectops
- the operationopnum
- the operation numberhash
- the hash codejava.rmi.RemoteException
protected void marshalCustomCallData(java.io.ObjectOutput out) throws java.io.IOException
marshalCustomCallData
in class sun.rmi.server.UnicastRef
out
- the ObjectOutput for the call marchallingjava.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
readExternal
in class sun.rmi.server.UnicastRef
in
- the ObjectInputjava.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class sun.rmi.server.UnicastRef
out
- the object output streamjava.io.IOException
public void readExternal(java.io.ObjectInput in, boolean newFormat) throws java.io.IOException, java.lang.ClassNotFoundException
in
- the object inputnewFormat
- the new format booleanjava.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out, boolean newFormat) throws java.io.IOException
out
- the object outputnewFormat
- the boolean new formatjava.io.IOException
public int getLocalId()