org.objectweb.jeremie.services.handler.api
Interface Service
- JRMITSHandler, TSHandler
ServiceContext | getReplyContext(int request_id, Context message_context) - Returns a reply context.
|
ServiceContext | getRequestContext(int request_id, boolean response_expected, byte[] object_key, Context message_context) - Returns a request context.
|
void | handleReplyContext(ServiceContext context, int request_id, Context message_context) - 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 request_id, boolean response_expected, byte[] object_key, Context message_context) - This method is called by the services handler to let the operations
related to the target service be performed on request arrival.
|
getReplyContext
public ServiceContext getReplyContext(int request_id,
Context message_context)
Returns a reply context.
request_id
- the corresponding request id.message_context
- the context of the reply marshaller.
- a service context.
getRequestContext
public ServiceContext getRequestContext(int request_id,
boolean response_expected,
byte[] object_key,
Context message_context)
Returns a request context.
request_id
- the request identifier;response_expected
- indicates whether a response is expected or not;object_key
- the request target object key.message_context
- the context of the request marshaller.
- a service context.
handleReplyContext
public void handleReplyContext(ServiceContext context,
int request_id,
Context message_context)
This method is called by the services handler to let the operations
related to the target service be performed on reply arrival.
context
- the service context of the reply;request_id
- the corresponding request identifier.message_context
- the context of the reply unmarshaller.
handleRequestContext
public void handleRequestContext(ServiceContext context,
int request_id,
boolean response_expected,
byte[] object_key,
Context message_context)
This method is called by the services handler to let the operations
related to the target service be performed on request arrival.
context
- the service context of the request;request_id
- the request identifier;response_expected
- indicates whether a response is expected or not;object_key
- the request target object key.message_context
- the context of the request unmarshaller.