Package step.artefacts.handlers
Class SynchronizedHandler
- java.lang.Object
-
- step.core.artefacts.handlers.ArtefactHandler<Synchronized,ReportNode>
-
- step.artefacts.handlers.SynchronizedHandler
-
public class SynchronizedHandler extends ArtefactHandler<Synchronized,ReportNode>
-
-
Field Summary
-
Fields inherited from class step.core.artefacts.handlers.ArtefactHandler
context, FILE_VARIABLE_PREFIX, logger, TEC_EXECUTION_REPORTNODES_PERSISTAFTER, TEC_EXECUTION_REPORTNODES_PERSISTBEFORE, TEC_EXECUTION_REPORTNODES_PERSISTONLYNONPASSED
-
-
Constructor Summary
Constructors Constructor Description SynchronizedHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReportNode
createReportNode_(ReportNode parentNode, Synchronized testArtefact)
Creates theReportNode
corresponding to the provided artefactvoid
createReportSkeleton_(ReportNode node, Synchronized testArtefact)
void
execute_(ReportNode node, Synchronized testArtefact)
Execute the provided artefact and report the execution to the provided report nodeprotected step.artefacts.handlers.SynchronizedHandler.Lock
getLock(Synchronized testArtefact)
void
init(ExecutionContext context)
-
Methods inherited from class step.core.artefacts.handlers.ArtefactHandler
createReportSkeleton, createWorkArtefact, createWorkArtefact, createWorkArtefact, delegateCreateReportSkeleton, delegateCreateReportSkeleton, delegateExecute, delegateExecute, excludePropertyChildren, execute, fail, failWithException, failWithException, failWithException, filterPropertyChildren, getBindings, getChildren, getChildren, initProperties, isInSession, releaseTokens, removeReportNode
-
-
-
-
Method Detail
-
init
public void init(ExecutionContext context)
- Overrides:
init
in classArtefactHandler<Synchronized,ReportNode>
-
createReportSkeleton_
public void createReportSkeleton_(ReportNode node, Synchronized testArtefact)
- Specified by:
createReportSkeleton_
in classArtefactHandler<Synchronized,ReportNode>
-
execute_
public void execute_(ReportNode node, Synchronized testArtefact) throws java.lang.InterruptedException
Description copied from class:ArtefactHandler
Execute the provided artefact and report the execution to the provided report node- Specified by:
execute_
in classArtefactHandler<Synchronized,ReportNode>
- Parameters:
node
- theReportNode
corresponding to the artefacttestArtefact
- theAbstractArtefact
to be executed- Throws:
java.lang.InterruptedException
-
getLock
protected step.artefacts.handlers.SynchronizedHandler.Lock getLock(Synchronized testArtefact)
-
createReportNode_
public ReportNode createReportNode_(ReportNode parentNode, Synchronized testArtefact)
Description copied from class:ArtefactHandler
Creates theReportNode
corresponding to the provided artefact- Specified by:
createReportNode_
in classArtefactHandler<Synchronized,ReportNode>
- Parameters:
parentNode
- the parentReportNode
testArtefact
- the artefact to create the node for- Returns:
-
-