Class AccumulatingBuildScriptLogAndScriptLogLineExecutionLogger
java.lang.Object
com.kingsrook.qqq.backend.core.actions.scripts.logging.BuildScriptLogAndScriptLogLineExecutionLogger
com.kingsrook.qqq.backend.core.actions.scripts.logging.AccumulatingBuildScriptLogAndScriptLogLineExecutionLogger
- All Implemented Interfaces:
QCodeExecutionLoggerInterface
,ScriptExecutionLoggerInterface
,Serializable
public class AccumulatingBuildScriptLogAndScriptLogLineExecutionLogger
extends BuildScriptLogAndScriptLogLineExecutionLogger
implements ScriptExecutionLoggerInterface
- See Also:
-
Field Summary
Fields inherited from class com.kingsrook.qqq.backend.core.actions.scripts.logging.BuildScriptLogAndScriptLogLineExecutionLogger
executeCodeInput
-
Constructor Summary
Constructors -
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.void
setScriptId
(Integer scriptId) void
setScriptRevisionId
(Integer scriptRevisionId) void
Methods inherited from class com.kingsrook.qqq.backend.core.actions.scripts.logging.BuildScriptLogAndScriptLogLineExecutionLogger
acceptLogLine, buildDetailLogRecord, getScriptLog, getScriptLogLines, setScriptLog, setScriptLogLines, 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
-
AccumulatingBuildScriptLogAndScriptLogLineExecutionLogger
public AccumulatingBuildScriptLogAndScriptLogLineExecutionLogger()
-
-
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
-
storeAndClear
public void storeAndClear() -
setScriptId
- Specified by:
setScriptId
in interfaceScriptExecutionLoggerInterface
- Overrides:
setScriptId
in classBuildScriptLogAndScriptLogLineExecutionLogger
-
setScriptRevisionId
- Specified by:
setScriptRevisionId
in interfaceScriptExecutionLoggerInterface
- Overrides:
setScriptRevisionId
in classBuildScriptLogAndScriptLogLineExecutionLogger
-