Class WorkflowExecutionListenerImpl
- java.lang.Object
-
- com.dtolabs.rundeck.core.execution.ExecutionListenerOverrideBase
-
- com.dtolabs.rundeck.core.execution.workflow.WorkflowExecutionListenerImpl
-
- All Implemented Interfaces:
ExecutionListener,ExecutionListenerOverride,ExecutionLogger,WorkflowExecutionListener,PluginLogger
public class WorkflowExecutionListenerImpl extends ExecutionListenerOverrideBase implements WorkflowExecutionListener, ExecutionListener
WorkflowExecutionListenerImpl uses theWorkflowExecutionListenermethods to maintain workflow execution context data while executing workflows, allowing the ContextLogger to have proper context.
-
-
Constructor Summary
Constructors Modifier Constructor Description WorkflowExecutionListenerImpl(FailedNodesListener failedNodesListener, ExecutionLogger logger)protectedWorkflowExecutionListenerImpl(WorkflowExecutionListenerImpl delegate, ExecutionLogger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeginExecuteNodeStep(ExecutionContext context, NodeStepExecutionItem item, INodeEntry node)Begin execution of a node stepvoidbeginWorkflowExecution(StepExecutionContext executionContext, WorkflowExecutionItem item)voidbeginWorkflowItem(int step, StepExecutionItem item)voidbeginWorkflowItemErrorHandler(int step, StepExecutionItem item)ExecutionListenerOverridecreateOverride()voidevent(java.lang.String eventType, java.lang.String message, java.util.Map eventMeta)voidfinishExecuteNodeStep(NodeStepResult result, ExecutionContext context, StepExecutionItem item, INodeEntry node)Finish execution of a node stepvoidfinishWorkflowExecution(WorkflowExecutionResult result, StepExecutionContext executionContext, WorkflowExecutionItem item)voidfinishWorkflowItem(int step, StepExecutionItem item, StepExecutionResult result)voidfinishWorkflowItemErrorHandler(int step, StepExecutionItem item, StepExecutionResult result)ExecutionLoggergetLogger()voidignoreErrors(boolean value)Ignore error messages and transform them into standard outputvoidlog(int level, java.lang.String message)Log a message at a given levelvoidlog(int level, java.lang.String message, java.util.Map eventMeta)Log a message at a given level, with additional metadata-
Methods inherited from class com.dtolabs.rundeck.core.execution.ExecutionListenerOverrideBase
beginFileCopyFile, beginFileCopyFile, beginFileCopyFileStream, beginFileCopyScriptContent, beginNodeDispatch, beginNodeDispatch, beginNodeExecution, beginStepExecution, finishFileCopy, finishMultiFileCopy, finishNodeDispatch, finishNodeDispatch, finishNodeExecution, finishStepExecution, getFailedNodesListener, setFailedNodesListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.dtolabs.rundeck.core.execution.ExecutionListener
beginFileCopyFile, beginFileCopyFile, beginFileCopyFileStream, beginFileCopyScriptContent, beginNodeDispatch, beginNodeDispatch, beginNodeExecution, finishFileCopy, finishMultiFileCopy, finishNodeDispatch, finishNodeDispatch, finishNodeExecution, getFailedNodesListener
-
Methods inherited from interface com.dtolabs.rundeck.core.execution.ExecutionLogger
event, log, log
-
Methods inherited from interface com.dtolabs.rundeck.core.execution.workflow.WorkflowExecutionListener
beginStepExecution, finishStepExecution
-
-
-
-
Constructor Detail
-
WorkflowExecutionListenerImpl
protected WorkflowExecutionListenerImpl(WorkflowExecutionListenerImpl delegate, ExecutionLogger logger)
-
WorkflowExecutionListenerImpl
public WorkflowExecutionListenerImpl(FailedNodesListener failedNodesListener, ExecutionLogger logger)
-
-
Method Detail
-
ignoreErrors
public void ignoreErrors(boolean value)
Description copied from interface:ExecutionListenerIgnore error messages and transform them into standard output- Specified by:
ignoreErrorsin interfaceExecutionListener
-
beginExecuteNodeStep
public void beginExecuteNodeStep(ExecutionContext context, NodeStepExecutionItem item, INodeEntry node)
Description copied from interface:WorkflowExecutionListenerBegin execution of a node step- Specified by:
beginExecuteNodeStepin interfaceWorkflowExecutionListener- Overrides:
beginExecuteNodeStepin classExecutionListenerOverrideBase- Parameters:
context- contextitem- stepnode- node
-
finishExecuteNodeStep
public void finishExecuteNodeStep(NodeStepResult result, ExecutionContext context, StepExecutionItem item, INodeEntry node)
Description copied from interface:WorkflowExecutionListenerFinish execution of a node step- Specified by:
finishExecuteNodeStepin interfaceWorkflowExecutionListener- Overrides:
finishExecuteNodeStepin classExecutionListenerOverrideBase- Parameters:
result- resultcontext- contextitem- stepnode- node
-
beginWorkflowExecution
public void beginWorkflowExecution(StepExecutionContext executionContext, WorkflowExecutionItem item)
- Specified by:
beginWorkflowExecutionin interfaceWorkflowExecutionListener
-
finishWorkflowExecution
public void finishWorkflowExecution(WorkflowExecutionResult result, StepExecutionContext executionContext, WorkflowExecutionItem item)
- Specified by:
finishWorkflowExecutionin interfaceWorkflowExecutionListener
-
beginWorkflowItem
public void beginWorkflowItem(int step, StepExecutionItem item)- Specified by:
beginWorkflowItemin interfaceWorkflowExecutionListener
-
beginWorkflowItemErrorHandler
public void beginWorkflowItemErrorHandler(int step, StepExecutionItem item)- Specified by:
beginWorkflowItemErrorHandlerin interfaceWorkflowExecutionListener
-
finishWorkflowItem
public void finishWorkflowItem(int step, StepExecutionItem item, StepExecutionResult result)- Specified by:
finishWorkflowItemin interfaceWorkflowExecutionListener
-
finishWorkflowItemErrorHandler
public void finishWorkflowItemErrorHandler(int step, StepExecutionItem item, StepExecutionResult result)- Specified by:
finishWorkflowItemErrorHandlerin interfaceWorkflowExecutionListener
-
createOverride
public ExecutionListenerOverride createOverride()
- Specified by:
createOverridein interfaceExecutionListener- Returns:
- an ExecutionListenerOverride that will delegate to this ExecutionListener, but allows overriding property values.
-
event
public void event(java.lang.String eventType, java.lang.String message, java.util.Map eventMeta)- Parameters:
eventType- event typemessage- Message being logged.nullmessages are not logged, however, zero-length strings are.eventMeta- metadata
-
log
public void log(int level, java.lang.String message)Description copied from interface:ExecutionLoggerLog a message at a given level- Parameters:
level- the log level, from 0 to 4, where 0 is "error" and 4 is "debug"message- Message being logged.nullmessages are not logged, however, zero-length strings are.
-
log
public void log(int level, java.lang.String message, java.util.Map eventMeta)Description copied from interface:ExecutionLoggerLog a message at a given level, with additional metadata- Parameters:
level- the log level, from 0 to 4, where 0 is "error" and 4 is "debug"message- Message being logged.nullmessages are not logged, however, zero-length strings are.eventMeta- metadata
-
getLogger
public ExecutionLogger getLogger()
-
-