org.objectweb.carol.rmi.jrmp.server
Class JUnicastRefSf

java.lang.Object
  extended bysun.rmi.server.UnicastRef
      extended byorg.objectweb.carol.rmi.jrmp.server.JUnicastRef
          extended byorg.objectweb.carol.rmi.jrmp.server.JUnicastRefSf
All Implemented Interfaces:
java.io.Externalizable, java.rmi.server.RemoteRef, java.io.Serializable

public class JUnicastRefSf
extends JUnicastRef

Class JUnicastRefSf is the CAROL JRMP UnicastRef with context propagation Unicast Reference ensuring context propagation with custom sockets

Version:
1.0, 15/07/2002
Author:
Guillaume Riviere (Guillaume.Riviere@inrialpes.fr)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.carol.rmi.jrmp.server.JUnicastRef
cis, initializers
 
Fields inherited from class sun.rmi.server.UnicastRef
clientCallLog, clientRefLog, ref
 
Fields inherited from interface java.rmi.server.RemoteRef
packagePrefix, serialVersionUID
 
Constructor Summary
JUnicastRefSf()
          Create a new (empty) Unicast remote reference.
JUnicastRefSf(sun.rmi.transport.LiveRef liveRef, JClientRequestInterceptor[] cis, java.lang.String[] initial, int local)
          Create a new Unicast RemoteRef.
 
Method Summary
 void readExternal(java.io.ObjectInput in)
          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
 
Methods inherited from class org.objectweb.carol.rmi.jrmp.server.JUnicastRef
getLocalId, getRefClass, invoke, invoke, marshalCustomCallData, newCall, readExternal, writeExternal
 
Methods inherited from class sun.rmi.server.UnicastRef
done, marshalValue, remoteEquals, remoteHashCode, remoteToString, unmarshalValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUnicastRefSf

public JUnicastRefSf()
Create a new (empty) Unicast remote reference.


JUnicastRefSf

public JUnicastRefSf(sun.rmi.transport.LiveRef liveRef,
                     JClientRequestInterceptor[] cis,
                     java.lang.String[] initial,
                     int local)
Create a new Unicast RemoteRef.

Parameters:
liveRef - the live reference
cis - the client interceptor array
Method Detail

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
override readExternal to initialise localRef We could actually receive anything from the server on lookup

Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class JUnicastRef
Parameters:
in - the object input
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
override writeExternal to send spaceID We could actually send anything to the client on lookup

Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class JUnicastRef
Parameters:
out - the object output stream
Throws:
java.io.IOException