Class LoggingProcessTracer
java.lang.Object
com.kingsrook.qqq.backend.core.processes.tracing.LoggingProcessTracer
- All Implemented Interfaces:
ProcessTracerInterface
Implementation of ProcessTracerInterface that writes messages to the Logger.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleMessage
(RunBackendStepInput runBackendStepInput, ProcessTracerMessage message) Called when the (application, custom) process step code itself decides to trace something.void
handleProcessBreak
(RunProcessInput runProcessInput, RunProcessOutput runProcessOutput, Exception processException) Called when a process break occurs, e.g., between backend and frontend steps (but only if there are no more backend steps in the queue).void
handleProcessFinish
(RunProcessInput runProcessInput, RunProcessOutput runProcessOutput, Exception processException) Called after the last (backend) step of a process.void
handleProcessResume
(RunProcessInput runProcessInput) Called when a process is resumed, e.g., after a "break" occurs between backend steps and frontend steps.void
handleProcessStart
(RunProcessInput runProcessInput) Called when a new process is started.void
handleStepFinish
(RunBackendStepInput runBackendStepInput, RunBackendStepOutput runBackendStepOutput) Called when a (backend) step finishes.void
handleStepStart
(RunBackendStepInput runBackendStepInput) Called when a (backend) step is started.
-
Constructor Details
-
LoggingProcessTracer
public LoggingProcessTracer()
-
-
Method Details
-
handleProcessStart
Description copied from interface:ProcessTracerInterface
Called when a new process is started.- Specified by:
handleProcessStart
in interfaceProcessTracerInterface
-
handleProcessResume
Description copied from interface:ProcessTracerInterface
Called when a process is resumed, e.g., after a "break" occurs between backend steps and frontend steps.- Specified by:
handleProcessResume
in interfaceProcessTracerInterface
-
handleStepStart
Description copied from interface:ProcessTracerInterface
Called when a (backend) step is started.- Specified by:
handleStepStart
in interfaceProcessTracerInterface
-
handleMessage
Description copied from interface:ProcessTracerInterface
Called when the (application, custom) process step code itself decides to trace something. We imagine various subclasses of ProcessTracerMessage to be created, to communicate more specific data for the tracer implementation.- Specified by:
handleMessage
in interfaceProcessTracerInterface
-
handleStepFinish
public void handleStepFinish(RunBackendStepInput runBackendStepInput, RunBackendStepOutput runBackendStepOutput) Description copied from interface:ProcessTracerInterface
Called when a (backend) step finishes.- Specified by:
handleStepFinish
in interfaceProcessTracerInterface
-
handleProcessBreak
public void handleProcessBreak(RunProcessInput runProcessInput, RunProcessOutput runProcessOutput, Exception processException) Description copied from interface:ProcessTracerInterface
Called when a process break occurs, e.g., between backend and frontend steps (but only if there are no more backend steps in the queue).- Specified by:
handleProcessBreak
in interfaceProcessTracerInterface
-
handleProcessFinish
public void handleProcessFinish(RunProcessInput runProcessInput, RunProcessOutput runProcessOutput, Exception processException) Description copied from interface:ProcessTracerInterface
Called after the last (backend) step of a process.- Specified by:
handleProcessFinish
in interfaceProcessTracerInterface
-