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

java.lang.Object
  |
  +--org.objectweb.carol.rmi.jrmp.server.JRemoteServerCall
All Implemented Interfaces:
java.rmi.server.RemoteCall

public class JRemoteServerCall
extends java.lang.Object
implements java.rmi.server.RemoteCall

Class JRemoteServerCall is the CAROL JRMP Remote Server call with context propagation

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

Field Summary
protected  JServerRequestInterceptor[] sis
          Array of Interceptor for this Server Ref
 
Constructor Summary
JRemoteServerCall(java.rmi.server.RemoteCall impl, JServerRequestInterceptor[] sis)
          Constructor for server side call
 
Method Summary
 void done()
           
 void executeCall()
           
 java.io.ObjectInput getInputStream()
           
 java.io.ObjectOutput getOutputStream()
           
 java.io.ObjectOutput getResultStream(boolean success)
          override getResultStream to dissociate and pass contexts back to the client.
 void releaseInputStream()
           
 void releaseOutputStream()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sis

protected JServerRequestInterceptor[] sis
Array of Interceptor for this Server Ref

Constructor Detail

JRemoteServerCall

public JRemoteServerCall(java.rmi.server.RemoteCall impl,
                         JServerRequestInterceptor[] sis)
Constructor for server side call

Parameters:
impl - the Remote call
sis - the server interceptor
Method Detail

getResultStream

public java.io.ObjectOutput getResultStream(boolean success)
                                     throws java.io.IOException,
                                            java.io.StreamCorruptedException
override getResultStream to dissociate and pass contexts back to the client. This method might be called several times.

Specified by:
getResultStream in interface java.rmi.server.RemoteCall
Parameters:
success - if success
java.io.IOException
java.io.StreamCorruptedException

getOutputStream

public java.io.ObjectOutput getOutputStream()
                                     throws java.io.IOException
Specified by:
getOutputStream in interface java.rmi.server.RemoteCall
java.io.IOException

releaseOutputStream

public void releaseOutputStream()
                         throws java.io.IOException
Specified by:
releaseOutputStream in interface java.rmi.server.RemoteCall
java.io.IOException

getInputStream

public java.io.ObjectInput getInputStream()
                                   throws java.io.IOException
Specified by:
getInputStream in interface java.rmi.server.RemoteCall
java.io.IOException

releaseInputStream

public void releaseInputStream()
                        throws java.io.IOException
Specified by:
releaseInputStream in interface java.rmi.server.RemoteCall
java.io.IOException

executeCall

public void executeCall()
                 throws java.lang.Exception
Specified by:
executeCall in interface java.rmi.server.RemoteCall
java.lang.Exception

done

public void done()
          throws java.io.IOException
Specified by:
done in interface java.rmi.server.RemoteCall
java.io.IOException