Class LogRecord

java.lang.Object
org.chenile.core.context.LogRecord

public class LogRecord extends Object
This is the version of the GenericResponse for asynchronous processing.
In case, the medium of invocation is asynchronous and the output cannot be captured then this record must be logged in a file or queue or topic somewhere so that a retry mechanism can be implemented using a workflow.
  • Field Details

    • success

      public boolean success
    • responseMessages

      public List<ResponseMessage> responseMessages
    • serviceName

      public String serviceName
    • operationName

      public String operationName
    • moduleName

      public String moduleName
    • headers

      public Map<String,Object> headers
    • request

      public Object request
    • response

      public GenericResponse<?> response
    • originalSource

      public String originalSource
      Indicates what is the original Source of this request. This will be the same as the entry point of this request.
    • originalSourceReference

      public String originalSourceReference
      Indicates what is the reference in the original source. This is required for tracing the request back to where it originally got created. (for example file1: line 23 or topic name etc.)
    • exception

      public ErrorNumException exception
    • direction

      public LogRecord.Direction direction
    • external

      public boolean external
    • externalSystem

      public String externalSystem
    • externalOperation

      public String externalOperation
    • protocol

      public String protocol
    • target

      public String target
    • httpMethod

      public String httpMethod
    • httpStatusCode

      public Integer httpStatusCode
    • durationMillis

      public Long durationMillis
    • timestamp

      public Long timestamp
    • requestId

      public String requestId
    • correlationId

      public String correlationId
    • requestPayload

      public String requestPayload
    • responsePayload

      public String responsePayload
    • errorCode

      public String errorCode
    • errorMessage

      public String errorMessage
  • Constructor Details

    • LogRecord

      public LogRecord()