org.objectweb.jonas.ha.interceptor
Class HAServerInterceptor

java.lang.Object
  extended by org.objectweb.jonas.ha.interceptor.HAServerInterceptor
All Implemented Interfaces:
org.objectweb.carol.rmi.jrmp.interceptor.JServerRequestInterceptor

public class HAServerInterceptor
extends java.lang.Object
implements org.objectweb.carol.rmi.jrmp.interceptor.JServerRequestInterceptor

This class represents the server side of the interceptor mechanism implemented to transfer replication related information between client and server sides

Author:
Francisco Perez-Sorrosal (fpsorrosal@no-spam@fi.upm.es), Alberto Paz-Jimenez (apaz@no-spam@fi.upm.es)

Constructor Summary
HAServerInterceptor()
          Constructor
 
Method Summary
 void destroy()
           
 java.lang.String name()
          Get the name of this interceptor
 void receive_request_service_contexts(org.omg.PortableInterceptor.ServerRequestInfo ri)
           
 void receive_request(org.objectweb.carol.rmi.jrmp.interceptor.JServerRequestInfo jri)
          Analyzes the HAContext received and constructs the required context on the HA current context (the thread associated class) on the server side.
 void send_exception(org.objectweb.carol.rmi.jrmp.interceptor.JServerRequestInfo jri)
           
 void send_other(org.objectweb.carol.rmi.jrmp.interceptor.JServerRequestInfo jri)
           
 void send_reply(org.objectweb.carol.rmi.jrmp.interceptor.JServerRequestInfo jri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HAServerInterceptor

public HAServerInterceptor()
Constructor

Method Detail

name

public java.lang.String name()
Get the name of this interceptor

Specified by:
name in interface org.objectweb.carol.rmi.jrmp.interceptor.JServerRequestInterceptor
Returns:
name

receive_request

public void receive_request(org.objectweb.carol.rmi.jrmp.interceptor.JServerRequestInfo jri)
                     throws java.io.IOException
Analyzes the HAContext received and constructs the required context on the HA current context (the thread associated class) on the server side.

Specified by:
receive_request in interface org.objectweb.carol.rmi.jrmp.interceptor.JServerRequestInterceptor
Throws:
java.io.IOException

send_reply

public void send_reply(org.objectweb.carol.rmi.jrmp.interceptor.JServerRequestInfo jri)
                throws java.io.IOException
Specified by:
send_reply in interface org.objectweb.carol.rmi.jrmp.interceptor.JServerRequestInterceptor
Throws:
java.io.IOException

destroy

public void destroy()

receive_request_service_contexts

public void receive_request_service_contexts(org.omg.PortableInterceptor.ServerRequestInfo ri)
                                      throws org.omg.PortableInterceptor.ForwardRequest
Throws:
org.omg.PortableInterceptor.ForwardRequest

send_exception

public void send_exception(org.objectweb.carol.rmi.jrmp.interceptor.JServerRequestInfo jri)
                    throws java.io.IOException
Specified by:
send_exception in interface org.objectweb.carol.rmi.jrmp.interceptor.JServerRequestInterceptor
Throws:
java.io.IOException

send_other

public void send_other(org.objectweb.carol.rmi.jrmp.interceptor.JServerRequestInfo jri)
                throws java.io.IOException
Specified by:
send_other in interface org.objectweb.carol.rmi.jrmp.interceptor.JServerRequestInterceptor
Throws:
java.io.IOException