org.objectweb.carol.rmi.jonathan.jeremie
Class JeremieCarolHandler

java.lang.Object
  extended byorg.objectweb.carol.rmi.jonathan.jeremie.JeremieCarolHandler
All Implemented Interfaces:
org.objectweb.jeremie.services.handler.api.Service

public class JeremieCarolHandler
extends java.lang.Object
implements org.objectweb.jeremie.services.handler.api.Service

Class CarolHandler is the CAROL Handler for Jonathan server interception

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

Constructor Summary
JeremieCarolHandler()
          Builds a new Jonathan jeremie carol service handler instance.
 
Method Summary
 org.omg.IOP.ServiceContext getReplyContext(int id, org.objectweb.jonathan.apis.kernel.Context k)
          Returns a reply context.
 org.omg.IOP.ServiceContext getRequestContext(int id, boolean r, byte[] key, org.objectweb.jonathan.apis.kernel.Context k)
          Returns a request context.
 void handleReplyContext(org.omg.IOP.ServiceContext context, int id, org.objectweb.jonathan.apis.kernel.Context k)
          This method is called by the services handler to let the operations related to the target service be performed on reply arrival.
 void handleRequestContext(org.omg.IOP.ServiceContext context, int id, boolean r, byte[] key, org.objectweb.jonathan.apis.kernel.Context k)
          This method is called by the services handler to let the operations related to the target service be performed on request arrival.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JeremieCarolHandler

public JeremieCarolHandler()
                    throws org.objectweb.jonathan.apis.kernel.JonathanException
Builds a new Jonathan jeremie carol service handler instance.

Throws:
org.objectweb.jonathan.apis.kernel.JonathanException - if something goes wrong.
Method Detail

getRequestContext

public org.omg.IOP.ServiceContext getRequestContext(int id,
                                                    boolean r,
                                                    byte[] key,
                                                    org.objectweb.jonathan.apis.kernel.Context k)
Returns a request context.

Specified by:
getRequestContext in interface org.objectweb.jeremie.services.handler.api.Service
Returns:
always null

getReplyContext

public org.omg.IOP.ServiceContext getReplyContext(int id,
                                                  org.objectweb.jonathan.apis.kernel.Context k)
Returns a reply context.

Specified by:
getReplyContext in interface org.objectweb.jeremie.services.handler.api.Service
Returns:
always null

handleRequestContext

public void handleRequestContext(org.omg.IOP.ServiceContext context,
                                 int id,
                                 boolean r,
                                 byte[] key,
                                 org.objectweb.jonathan.apis.kernel.Context k)
This method is called by the services handler to let the operations related to the target service be performed on request arrival.

Specified by:
handleRequestContext in interface org.objectweb.jeremie.services.handler.api.Service
Parameters:
context - the service context of the request;

handleReplyContext

public void handleReplyContext(org.omg.IOP.ServiceContext context,
                               int id,
                               org.objectweb.jonathan.apis.kernel.Context k)
This method is called by the services handler to let the operations related to the target service be performed on reply arrival.

Specified by:
handleReplyContext in interface org.objectweb.jeremie.services.handler.api.Service
Parameters:
context - the service context of the reply;