Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Request Message (Down)DescriptionResponse Message (up)Description
MessageBytesCollector

Collect Message bytes

  1. read message header, find payload size
  2. read payload
  3. pass byte buffer to next handler
MessageSenderSend the message to the client
MetadataCollector
  1. Extract metadata from byte buffer
  2. Set metdata in context
  3. pass byte buffer to next handler
  
MessageDecoder

Construct Message.

  1. Look apiId and decode message
  2. create Request, ApiInvoker
  3. And pass to next handler
ResponseEncoderSerialize the resposneresponse if there is no Exception
DecorateKeyValue

Update key value based on metadata

  1. if metadata indicates it is JSON string then
    convert that to pdx
  2. pass to next handler

 

ResponseMetadataHandleradd any metadata in resposneresponse
  DecorateKeyValueDecorate key value based on metadata
  ExceptionHandlerif Exception is set in context, then generate Exception Message
AuthenticateHandler
  1. verify whether connection is authenticated or not
  2. if fail then generate AuthRequired error
ResponseAuthorizationHandler

authorize response

  1. if fail then set generate AuthFailed exception

 

RequestAuthorizationHandlerAuthorize the requestResponseHandler

1. Request object will generate AuthContext

2. And Call authCallback

3. if fail then generate AuthFailed error

StatsHandlerUpdate the stats based on response or error codeConstruct Response Message
StatsHandlerUpdate the geode stats for requestStatsHandlerResponseHandlerConstruct Response Message from request 
ApiExecutionHandler (execute the api); if there is no error then call Request.ApiInvoker() for synchronous request or call Request.AsyncApiInvoker