org.objectweb.carol.rmi.jonathan.jeremie

Class JeremieCarolHandler

Implemented Interfaces:
Service

public class JeremieCarolHandler
extends java.lang.Object
implements 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

ServiceContext
getReplyContext(int id, Context k)
Returns a reply context.
ServiceContext
getRequestContext(int id, boolean r, byte[] key, Context k)
Returns a request context.
void
handleReplyContext(ServiceContext context, int id, 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(ServiceContext context, int id, boolean r, byte[] key, Context k)
This method is called by the services handler to let the operations related to the target service be performed on request arrival.

Constructor Details

JeremieCarolHandler

public JeremieCarolHandler()
            throws JonathanException
Builds a new Jonathan jeremie carol service handler instance.

Method Details

getReplyContext

public ServiceContext getReplyContext(int id,
                                      Context k)
Returns a reply context.

Returns:
always null


getRequestContext

public ServiceContext getRequestContext(int id,
                                        boolean r,
                                        byte[] key,
                                        Context k)
Returns a request context.

Returns:
always null


handleReplyContext

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

Parameters:
context - the service context of the reply;


handleRequestContext

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

Parameters:
context - the service context of the request;