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 TypeMethodDescriptionvoidacceptException(Exception exception) Called if the script fails with an exception.voidacceptExecutionEnd(Serializable output) Called if the script completes without exception.voidacceptExecutionStart(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, updateHeaderAtEndMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:QCodeExecutionLoggerInterfaceCalled when the execution starts - takes the execution's input object.- Specified by:
acceptExecutionStartin interfaceQCodeExecutionLoggerInterface- Overrides:
acceptExecutionStartin classBuildScriptLogAndScriptLogLineExecutionLogger
-
acceptException
Description copied from interface:QCodeExecutionLoggerInterfaceCalled if the script fails with an exception.- Specified by:
acceptExceptionin interfaceQCodeExecutionLoggerInterface- Overrides:
acceptExceptionin classBuildScriptLogAndScriptLogLineExecutionLogger
-
acceptExecutionEnd
Description copied from interface:QCodeExecutionLoggerInterfaceCalled if the script completes without exception.- Specified by:
acceptExecutionEndin interfaceQCodeExecutionLoggerInterface- Overrides:
acceptExecutionEndin classBuildScriptLogAndScriptLogLineExecutionLogger
-