|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dtolabs.rundeck.core.execution.ExecutionListenerOverrideBase com.dtolabs.rundeck.core.execution.workflow.WorkflowExecutionListenerImpl
public class WorkflowExecutionListenerImpl
WorkflowExecutionListenerImpl uses the WorkflowExecutionListener
methods to maintain workflow execution
context data while executing workflows, allowing the ContextLogger to have proper context.
Constructor Summary | |
---|---|
|
WorkflowExecutionListenerImpl(FailedNodesListener failedNodesListener,
ContextLogger logger,
boolean terse,
java.lang.String logFormat)
|
protected |
WorkflowExecutionListenerImpl(WorkflowExecutionListenerImpl delegate)
|
Method Summary | |
---|---|
void |
beginExecuteNodeStep(ExecutionContext context,
NodeStepExecutionItem item,
INodeEntry node)
Begin execution of a node step |
void |
beginWorkflowExecution(StepExecutionContext executionContext,
WorkflowExecutionItem item)
|
void |
beginWorkflowItem(int step,
StepExecutionItem item)
|
ExecutionListenerOverride |
createOverride()
Return an ExecutionListenerOverride that will delegate to this ExecutionListener, but allows overriding property values. |
void |
finishExecuteNodeStep(NodeStepResult result,
ExecutionContext context,
StepExecutionItem item,
INodeEntry node)
Finish execution of a node step |
void |
finishWorkflowExecution(WorkflowExecutionResult result,
StepExecutionContext executionContext,
WorkflowExecutionItem item)
|
void |
finishWorkflowItem(int step,
StepExecutionItem item)
|
java.util.Map<java.lang.String,java.lang.String> |
getContext()
Return the current context, or null. |
java.util.Map<java.lang.String,java.lang.String> |
getLoggingContext()
Method should be overridden to return appropriate logging context data |
void |
log(int level,
java.lang.String message)
Log a message |
void |
log(int level,
java.lang.String message,
java.util.Map<java.lang.String,java.lang.String> data)
|
Methods inherited from class com.dtolabs.rundeck.core.execution.ExecutionListenerOverrideBase |
---|
beginFileCopyFile, beginFileCopyFileStream, beginFileCopyScriptContent, beginNodeDispatch, beginNodeDispatch, beginNodeExecution, beginStepExecution, finishFileCopy, finishNodeDispatch, finishNodeDispatch, finishNodeExecution, finishStepExecution, getFailedNodesListener, getLogFormat, isTerse, setFailedNodesListener, setLogFormat, setTerse |
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, beginFileCopyFileStream, beginFileCopyScriptContent, beginNodeDispatch, beginNodeDispatch, beginNodeExecution, beginStepExecution, finishFileCopy, finishNodeDispatch, finishNodeDispatch, finishNodeExecution, finishStepExecution, getFailedNodesListener, getLogFormat, isTerse, log |
Constructor Detail |
---|
protected WorkflowExecutionListenerImpl(WorkflowExecutionListenerImpl delegate)
public WorkflowExecutionListenerImpl(FailedNodesListener failedNodesListener, ContextLogger logger, boolean terse, java.lang.String logFormat)
Method Detail |
---|
public void beginExecuteNodeStep(ExecutionContext context, NodeStepExecutionItem item, INodeEntry node)
ExecutionListener
beginExecuteNodeStep
in interface ExecutionListener
beginExecuteNodeStep
in class ExecutionListenerOverrideBase
public void finishExecuteNodeStep(NodeStepResult result, ExecutionContext context, StepExecutionItem item, INodeEntry node)
ExecutionListener
finishExecuteNodeStep
in interface ExecutionListener
finishExecuteNodeStep
in class ExecutionListenerOverrideBase
public java.util.Map<java.lang.String,java.lang.String> getLoggingContext()
ExecutionListenerOverrideBase
getLoggingContext
in interface ContextLoggerExecutionListener
getLoggingContext
in class ExecutionListenerOverrideBase
public void beginWorkflowExecution(StepExecutionContext executionContext, WorkflowExecutionItem item)
beginWorkflowExecution
in interface WorkflowExecutionListener
public void finishWorkflowExecution(WorkflowExecutionResult result, StepExecutionContext executionContext, WorkflowExecutionItem item)
finishWorkflowExecution
in interface WorkflowExecutionListener
public void beginWorkflowItem(int step, StepExecutionItem item)
beginWorkflowItem
in interface WorkflowExecutionListener
public void finishWorkflowItem(int step, StepExecutionItem item)
finishWorkflowItem
in interface WorkflowExecutionListener
public ExecutionListenerOverride createOverride()
ExecutionListener
createOverride
in interface ExecutionListener
public final void log(int level, java.lang.String message)
ExecutionListener
log
in interface ExecutionListener
log
in interface PluginLogger
level
- the log levelmessage
- Message being logged. null
messages are not logged, however, zero-length strings
are.public void log(int level, java.lang.String message, java.util.Map<java.lang.String,java.lang.String> data)
public java.util.Map<java.lang.String,java.lang.String> getContext()
Contextual
getContext
in interface Contextual
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |