Class LogFlusher
- java.lang.Object
-
- com.dtolabs.rundeck.core.logging.internal.BaseWorkflowExecutionListener
-
- com.dtolabs.rundeck.core.logging.internal.LogFlusher
-
- All Implemented Interfaces:
WorkflowExecutionListener
public class LogFlusher extends BaseWorkflowExecutionListener
Manages cleanup for buffered log events, flushes the thread bound log output streams of any buffered events when a node or workflow step finishes
-
-
Constructor Summary
Constructors Constructor Description LogFlusher()LogFlusher(ThreadBoundLogOutputStream logOut)
-
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 stepvoidbeginStepExecution(StepExecutor executor, StepExecutionContext context, StepExecutionItem item)Called when execution begins for a stepvoidfinishExecuteNodeStep(NodeStepResult result, ExecutionContext context, StepExecutionItem item, INodeEntry node)Finish execution of a node stepvoidfinishStepExecution(StepExecutor executor, StatusResult result, StepExecutionContext context, StepExecutionItem item)Called when execution finishes for a step-
Methods inherited from class com.dtolabs.rundeck.core.logging.internal.BaseWorkflowExecutionListener
beginWorkflowExecution, beginWorkflowItem, beginWorkflowItemErrorHandler, finishWorkflowExecution, finishWorkflowItem, finishWorkflowItemErrorHandler
-
-
-
-
Constructor Detail
-
LogFlusher
public LogFlusher()
-
LogFlusher
public LogFlusher(ThreadBoundLogOutputStream logOut)
-
-
Method Detail
-
beginStepExecution
public void beginStepExecution(StepExecutor executor, StepExecutionContext context, StepExecutionItem item)
Description copied from interface:WorkflowExecutionListenerCalled when execution begins for a step- Specified by:
beginStepExecutionin interfaceWorkflowExecutionListener- Overrides:
beginStepExecutionin classBaseWorkflowExecutionListener- Parameters:
executor- executorcontext- contextitem- step
-
finishStepExecution
public void finishStepExecution(StepExecutor executor, StatusResult result, StepExecutionContext context, StepExecutionItem item)
Description copied from interface:WorkflowExecutionListenerCalled when execution finishes for a step- Specified by:
finishStepExecutionin interfaceWorkflowExecutionListener- Overrides:
finishStepExecutionin classBaseWorkflowExecutionListener- Parameters:
executor- executorresult- resultcontext- contextitem- step
-
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 classBaseWorkflowExecutionListener- 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 classBaseWorkflowExecutionListener- Parameters:
result- resultcontext- contextitem- stepnode- node
-
-