org.objectweb.carol.rmi.jrmp.server
Class JUnicastRef
java.lang.Object
org.objectweb.carol.rmi.jrmp.server.JUnicastRef
public class JUnicastRef
extends java.lang.Object
Class JUnicastRef
is the CAROL JRMP UnicastRef with context
propagation
Version:
- Guillaume Riviere (Guillaume.Riviere@inrialpes.fr)
int | getLocalId()
|
String | getRefClass(ObjectOutput out) - get the ref class always return null
|
Object | invoke(Remote obj, java.lang.reflect.Method method, Object[] params, long opnum) - wrap the call to send the contexts
|
void | invoke(java.rmi.server.RemoteCall call)
|
protected void | marshalCustomCallData(ObjectOutput out) - override marshalCustomCallData to pass and disociate contexts on the
client
|
RemoteCall | newCall(RemoteObject obj, Operation[] ops, int opnum, long hash)
|
void | readExternal(ObjectInput in) - override readExternal to initialise localRef We could actually receive
anything from the server on lookup
|
void | readExternal(ObjectInput in, boolean newFormat) - override readExternal to initialise localRef We could actually receive
anything from the server on lookup
|
void | writeExternal(ObjectOutput out) - override writeExternal to send spaceID We could actually send anything to
the client on lookup
|
void | writeExternal(ObjectOutput out, boolean newFormat) - override writeExternal to send spaceID And the interceptor We could
actually send anything to the client on lookup
|
initializers
protected String[] initializers
Interceptors initialisers for this References
JUnicastRef
public JUnicastRef()
empty constructor
JUnicastRef
public JUnicastRef(Object liveRef)
Constructor without Interceptor
liveRef
- the live reference
JUnicastRef
public JUnicastRef(Object liveRef,
JClientRequestInterceptor[] cis,
String[] initial,
int local)
Constructor with interceptor
liveRef
- the live referencecis
- the client interceptor array
getLocalId
public int getLocalId()
getRefClass
public String getRefClass(ObjectOutput out)
get the ref class always return null
out
- the output stream
invoke
public Object invoke(Remote obj,
java.lang.reflect.Method method,
Object[] params,
long opnum)
throws Exception
wrap the call to send the contexts
obj
- the remote object to invokemethod
- the method to invoqueparams
- the methid paramettersopnum
- the operation number
invoke
public void invoke(java.rmi.server.RemoteCall call)
throws Exception
v1.1 style of Stubs call this invoke
call
- the remote call
marshalCustomCallData
protected void marshalCustomCallData(ObjectOutput out)
throws IOException
override marshalCustomCallData to pass and disociate contexts on the
client
out
- the ObjectOutput for the call marchalling
newCall
public RemoteCall newCall(RemoteObject obj,
Operation[] ops,
int opnum,
long hash)
throws RemoteException
override v1.1 RemoteCall instanciation to wrap the call and send the
context
obj
- the remote objectops
- the operationopnum
- the operation numberhash
- the hash code
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
override readExternal to initialise localRef We could actually receive
anything from the server on lookup
in
- the ObjectInput
readExternal
public void readExternal(ObjectInput in,
boolean newFormat)
throws IOException,
ClassNotFoundException
override readExternal to initialise localRef We could actually receive
anything from the server on lookup
in
- the object inputnewFormat
- the new format boolean
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
override writeExternal to send spaceID We could actually send anything to
the client on lookup
out
- the object output stream
writeExternal
public void writeExternal(ObjectOutput out,
boolean newFormat)
throws IOException
override writeExternal to send spaceID And the interceptor We could
actually send anything to the client on lookup
out
- the object outputnewFormat
- the boolean new format