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 theWorkflowExecutionListener
methods 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)
protected
WorkflowExecutionListenerImpl(WorkflowExecutionListenerImpl delegate, ExecutionLogger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beginExecuteNodeStep(ExecutionContext context, NodeStepExecutionItem item, INodeEntry node)
Begin execution of a node stepvoid
beginWorkflowExecution(StepExecutionContext executionContext, WorkflowExecutionItem item)
void
beginWorkflowItem(int step, StepExecutionItem item)
void
beginWorkflowItemErrorHandler(int step, StepExecutionItem item)
ExecutionListenerOverride
createOverride()
void
event(java.lang.String eventType, java.lang.String message, java.util.Map eventMeta)
void
finishExecuteNodeStep(NodeStepResult result, ExecutionContext context, StepExecutionItem item, INodeEntry node)
Finish execution of a node stepvoid
finishWorkflowExecution(WorkflowExecutionResult result, StepExecutionContext executionContext, WorkflowExecutionItem item)
void
finishWorkflowItem(int step, StepExecutionItem item, StepExecutionResult result)
void
finishWorkflowItemErrorHandler(int step, StepExecutionItem item, StepExecutionResult result)
ExecutionLogger
getLogger()
void
ignoreErrors(boolean value)
Ignore error messages and transform them into standard outputvoid
log(int level, java.lang.String message)
Log a message at a given levelvoid
log(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:ExecutionListener
Ignore error messages and transform them into standard output- Specified by:
ignoreErrors
in interfaceExecutionListener
-
beginExecuteNodeStep
public void beginExecuteNodeStep(ExecutionContext context, NodeStepExecutionItem item, INodeEntry node)
Description copied from interface:WorkflowExecutionListener
Begin execution of a node step- Specified by:
beginExecuteNodeStep
in interfaceWorkflowExecutionListener
- Overrides:
beginExecuteNodeStep
in classExecutionListenerOverrideBase
- Parameters:
context
- contextitem
- stepnode
- node
-
finishExecuteNodeStep
public void finishExecuteNodeStep(NodeStepResult result, ExecutionContext context, StepExecutionItem item, INodeEntry node)
Description copied from interface:WorkflowExecutionListener
Finish execution of a node step- Specified by:
finishExecuteNodeStep
in interfaceWorkflowExecutionListener
- Overrides:
finishExecuteNodeStep
in classExecutionListenerOverrideBase
- Parameters:
result
- resultcontext
- contextitem
- stepnode
- node
-
beginWorkflowExecution
public void beginWorkflowExecution(StepExecutionContext executionContext, WorkflowExecutionItem item)
- Specified by:
beginWorkflowExecution
in interfaceWorkflowExecutionListener
-
finishWorkflowExecution
public void finishWorkflowExecution(WorkflowExecutionResult result, StepExecutionContext executionContext, WorkflowExecutionItem item)
- Specified by:
finishWorkflowExecution
in interfaceWorkflowExecutionListener
-
beginWorkflowItem
public void beginWorkflowItem(int step, StepExecutionItem item)
- Specified by:
beginWorkflowItem
in interfaceWorkflowExecutionListener
-
beginWorkflowItemErrorHandler
public void beginWorkflowItemErrorHandler(int step, StepExecutionItem item)
- Specified by:
beginWorkflowItemErrorHandler
in interfaceWorkflowExecutionListener
-
finishWorkflowItem
public void finishWorkflowItem(int step, StepExecutionItem item, StepExecutionResult result)
- Specified by:
finishWorkflowItem
in interfaceWorkflowExecutionListener
-
finishWorkflowItemErrorHandler
public void finishWorkflowItemErrorHandler(int step, StepExecutionItem item, StepExecutionResult result)
- Specified by:
finishWorkflowItemErrorHandler
in interfaceWorkflowExecutionListener
-
createOverride
public ExecutionListenerOverride createOverride()
- Specified by:
createOverride
in 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.null
messages are not logged, however, zero-length strings are.eventMeta
- metadata
-
log
public void log(int level, java.lang.String message)
Description copied from interface:ExecutionLogger
Log 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.null
messages 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:ExecutionLogger
Log 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.null
messages are not logged, however, zero-length strings are.eventMeta
- metadata
-
getLogger
public ExecutionLogger getLogger()
-
-