Package step.core.plugins
Interface ExecutionCallbacks
- All Known Subinterfaces:
ExecutionEnginePlugin
- All Known Implementing Classes:
AbstractExecutionEnginePlugin,BaseArtefactPlugin,BasePlugin,CompositeFunctionTypePlugin,FunctionPlugin,GeneralScriptFunctionPlugin,LocalCompositeFunctionPlugin,LocalFunctionPlugin,LocalRepositoryPlugin,MeasurementPlugin,ParameterManagerPlugin,QuotaManagerPlugin,ThreadManagerPlugin,ThreadPoolPlugin,TimeSeriesExecutionPlugin,ViewPlugin
public interface ExecutionCallbacks
-
Method Summary
Modifier and TypeMethodDescriptionvoidafterExecutionEnd(ExecutionContext context) voidafterFunctionExecution(ExecutionContext context, ReportNode node, Function function, step.functions.io.Output<jakarta.json.JsonObject> output) This hook is called immediately after aFunctionis executed in CallFunctionHandler.voidafterReportNodeExecution(ExecutionContext context, ReportNode node) voidafterReportNodeSkeletonCreation(ExecutionContext context, ReportNode node) voidassociateThread(ExecutionContext context, Thread thread) voidassociateThread(ExecutionContext context, Thread thread, long parentThreadId) voidbeforeExecutionEnd(ExecutionContext context) voidbeforeFunctionExecution(ExecutionContext context, ReportNode node, Function function) voidbeforePlanImport(ExecutionContext context) voidbeforeReportNodeExecution(ExecutionContext context, ReportNode node) voidexecutionStart(ExecutionContext context) voidonErrorContributionRemoval(ExecutionContext context, ReportNode node) voidonReportNodeRemoval(ExecutionContext context, ReportNode node) voidunassociateThread(ExecutionContext context, Thread thread)
-
Method Details
-
beforeFunctionExecution
This hook is called before aFunctionis executed in CallFunctionHandler just after theFunctionhas been resolved The hook is also called in simulation mode- Parameters:
context- theExecutionContextfunction- the resolvedFunctionthat will be executed
-
afterFunctionExecution
void afterFunctionExecution(ExecutionContext context, ReportNode node, Function function, step.functions.io.Output<jakarta.json.JsonObject> output) This hook is called immediately after aFunctionis executed in CallFunctionHandler. TheReportNodeprovided as argument is therefore not reflecting the final status. If you need the final status after CallFunction execution use the hookafterReportNodeExecution(ExecutionContext, ReportNode)instead. The hook is also called in simulation mode.- Parameters:
context- theExecutionContextnode-function- theFunctionthat has been executedoutput- the resultOutputof the execution
-
afterReportNodeSkeletonCreation
-
beforeReportNodeExecution
-
afterReportNodeExecution
-
onReportNodeRemoval
-
onErrorContributionRemoval
-
associateThread
-
associateThread
-
unassociateThread
-
beforePlanImport
-
executionStart
-
beforeExecutionEnd
-
afterExecutionEnd
-