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 void
beginExecuteNodeStep(ExecutionContext context, NodeStepExecutionItem item, INodeEntry node)
Begin execution of a node stepvoid
beginStepExecution(StepExecutor executor, StepExecutionContext context, StepExecutionItem item)
Called when execution begins for a stepvoid
finishExecuteNodeStep(NodeStepResult result, ExecutionContext context, StepExecutionItem item, INodeEntry node)
Finish execution of a node stepvoid
finishStepExecution(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:WorkflowExecutionListener
Called when execution begins for a step- Specified by:
beginStepExecution
in interfaceWorkflowExecutionListener
- Overrides:
beginStepExecution
in classBaseWorkflowExecutionListener
- Parameters:
executor
- executorcontext
- contextitem
- step
-
finishStepExecution
public void finishStepExecution(StepExecutor executor, StatusResult result, StepExecutionContext context, StepExecutionItem item)
Description copied from interface:WorkflowExecutionListener
Called when execution finishes for a step- Specified by:
finishStepExecution
in interfaceWorkflowExecutionListener
- Overrides:
finishStepExecution
in classBaseWorkflowExecutionListener
- Parameters:
executor
- executorresult
- resultcontext
- contextitem
- step
-
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 classBaseWorkflowExecutionListener
- 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 classBaseWorkflowExecutionListener
- Parameters:
result
- resultcontext
- contextitem
- stepnode
- node
-
-