Class StoreScriptLogAndScriptLogLineExecutionLogger
java.lang.Object
com.kingsrook.qqq.backend.core.actions.scripts.logging.BuildScriptLogAndScriptLogLineExecutionLogger
com.kingsrook.qqq.backend.core.actions.scripts.logging.StoreScriptLogAndScriptLogLineExecutionLogger
- All Implemented Interfaces:
QCodeExecutionLoggerInterface
,ScriptExecutionLoggerInterface
,Serializable
public class StoreScriptLogAndScriptLogLineExecutionLogger
extends BuildScriptLogAndScriptLogLineExecutionLogger
Implementation of a code execution logger that logs into scriptLog and scriptLogLine
tables - e.g., as defined in ScriptMetaDataProvider.
- See Also:
-
Field Summary
Fields inherited from class com.kingsrook.qqq.backend.core.actions.scripts.logging.BuildScriptLogAndScriptLogLineExecutionLogger
executeCodeInput
-
Constructor Summary
ConstructorsConstructorDescriptionStoreScriptLogAndScriptLogLineExecutionLogger
(Serializable scriptId, Serializable scriptRevisionId) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
acceptException
(Exception exception) Called if the script fails with an exception.void
acceptExecutionEnd
(Serializable output) Called if the script completes without exception.void
acceptExecutionStart
(ExecuteCodeInput executeCodeInput) Called when the execution starts - takes the execution's input object.Methods inherited from class com.kingsrook.qqq.backend.core.actions.scripts.logging.BuildScriptLogAndScriptLogLineExecutionLogger
acceptLogLine, buildDetailLogRecord, getScriptLog, getScriptLogLines, setScriptId, setScriptLog, setScriptLogLines, setScriptRevisionId, updateHeaderAtEnd
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.kingsrook.qqq.backend.core.actions.scripts.logging.QCodeExecutionLoggerInterface
log
-
Constructor Details
-
StoreScriptLogAndScriptLogLineExecutionLogger
public StoreScriptLogAndScriptLogLineExecutionLogger(Serializable scriptId, Serializable scriptRevisionId) Constructor
-
-
Method Details
-
acceptExecutionStart
Description copied from interface:QCodeExecutionLoggerInterface
Called when the execution starts - takes the execution's input object.- Specified by:
acceptExecutionStart
in interfaceQCodeExecutionLoggerInterface
- Overrides:
acceptExecutionStart
in classBuildScriptLogAndScriptLogLineExecutionLogger
-
acceptException
Description copied from interface:QCodeExecutionLoggerInterface
Called if the script fails with an exception.- Specified by:
acceptException
in interfaceQCodeExecutionLoggerInterface
- Overrides:
acceptException
in classBuildScriptLogAndScriptLogLineExecutionLogger
-
acceptExecutionEnd
Description copied from interface:QCodeExecutionLoggerInterface
Called if the script completes without exception.- Specified by:
acceptExecutionEnd
in interfaceQCodeExecutionLoggerInterface
- Overrides:
acceptExecutionEnd
in classBuildScriptLogAndScriptLogLineExecutionLogger
-