public interface Service
services handler
.Modifier and Type | Method and Description |
---|---|
ServiceContext |
getReplyContext(int request_id,
org.objectweb.jonathan.apis.kernel.Context message_context)
Returns a reply context.
|
ServiceContext |
getRequestContext(int request_id,
boolean response_expected,
byte[] object_key,
org.objectweb.jonathan.apis.kernel.Context message_context)
Returns a request context.
|
void |
handleReplyContext(ServiceContext context,
int request_id,
org.objectweb.jonathan.apis.kernel.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,
org.objectweb.jonathan.apis.kernel.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.
|
ServiceContext getRequestContext(int request_id, boolean response_expected, byte[] object_key, org.objectweb.jonathan.apis.kernel.Context message_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.ServiceContext getReplyContext(int request_id, org.objectweb.jonathan.apis.kernel.Context message_context)
request_id
- the corresponding request id.message_context
- the context of the reply marshaller.void handleRequestContext(ServiceContext context, int request_id, boolean response_expected, byte[] object_key, org.objectweb.jonathan.apis.kernel.Context message_context)
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.void handleReplyContext(ServiceContext context, int request_id, org.objectweb.jonathan.apis.kernel.Context message_context)
context
- the service context of the reply;request_id
- the corresponding request identifier.message_context
- the context of the reply unmarshaller.