Class NoopExecutionListener
- java.lang.Object
-
- com.dtolabs.rundeck.core.execution.NoopExecutionListener
-
- All Implemented Interfaces:
ExecutionListener,ExecutionLogger,PluginLogger
public class NoopExecutionListener extends java.lang.Object implements ExecutionListener
-
-
Constructor Summary
Constructors Constructor Description NoopExecutionListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeginFileCopyFile(ExecutionContext context, java.io.File input, INodeEntry node)Begin file copy of filevoidbeginFileCopyFile(ExecutionContext context, java.util.List<java.io.File> files, INodeEntry node)Begin file copy of filevoidbeginFileCopyFileStream(ExecutionContext context, java.io.InputStream input, INodeEntry node)Begin file copy of streamvoidbeginFileCopyScriptContent(ExecutionContext context, java.lang.String input, INodeEntry node)Begin file copy of stringvoidbeginNodeDispatch(ExecutionContext context, Dispatchable item)Begin dispatch of command to set of nodesvoidbeginNodeDispatch(ExecutionContext context, StepExecutionItem item)Begin dispatch of command to set of nodesvoidbeginNodeExecution(ExecutionContext context, java.lang.String[] command, INodeEntry node)Called before execution of command on nodeExecutionListenerOverridecreateOverride()voidevent(java.lang.String eventType, java.lang.String message, java.util.Map eventMeta)voidfinishFileCopy(java.lang.String result, ExecutionContext context, INodeEntry node)Finish file copyvoidfinishMultiFileCopy(java.lang.String[] result, ExecutionContext context, INodeEntry node)Finish file copyvoidfinishNodeDispatch(DispatcherResult result, ExecutionContext context, Dispatchable item)Finish node dispatchvoidfinishNodeDispatch(DispatcherResult result, ExecutionContext context, StepExecutionItem item)Finish node dispatchvoidfinishNodeExecution(NodeExecutorResult result, ExecutionContext context, java.lang.String[] command, INodeEntry node)Called after execution of command on node.FailedNodesListenergetFailedNodesListener()Return a listener for failed node listvoidignoreErrors(boolean ignore)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
-
-
-
Method Detail
-
ignoreErrors
public void ignoreErrors(boolean ignore)
Description copied from interface:ExecutionListenerIgnore error messages and transform them into standard output- Specified by:
ignoreErrorsin interfaceExecutionListener
-
getFailedNodesListener
public FailedNodesListener getFailedNodesListener()
Description copied from interface:ExecutionListenerReturn a listener for failed node list- Specified by:
getFailedNodesListenerin interfaceExecutionListener- Returns:
- listener
-
beginNodeExecution
public void beginNodeExecution(ExecutionContext context, java.lang.String[] command, INodeEntry node)
Description copied from interface:ExecutionListenerCalled before execution of command on node- Specified by:
beginNodeExecutionin interfaceExecutionListener- Parameters:
context- contextcommand- command stringsnode- node
-
finishNodeExecution
public void finishNodeExecution(NodeExecutorResult result, ExecutionContext context, java.lang.String[] command, INodeEntry node)
Description copied from interface:ExecutionListenerCalled after execution of command on node.- Specified by:
finishNodeExecutionin interfaceExecutionListener- Parameters:
result- resultcontext- contextcommand- command stringsnode- node
-
beginNodeDispatch
public void beginNodeDispatch(ExecutionContext context, StepExecutionItem item)
Description copied from interface:ExecutionListenerBegin dispatch of command to set of nodes- Specified by:
beginNodeDispatchin interfaceExecutionListener- Parameters:
context- contextitem- step
-
beginNodeDispatch
public void beginNodeDispatch(ExecutionContext context, Dispatchable item)
Description copied from interface:ExecutionListenerBegin dispatch of command to set of nodes- Specified by:
beginNodeDispatchin interfaceExecutionListener- Parameters:
context- contextitem- dispatch
-
finishNodeDispatch
public void finishNodeDispatch(DispatcherResult result, ExecutionContext context, StepExecutionItem item)
Description copied from interface:ExecutionListenerFinish node dispatch- Specified by:
finishNodeDispatchin interfaceExecutionListener- Parameters:
result- resultcontext- contextitem- step
-
finishNodeDispatch
public void finishNodeDispatch(DispatcherResult result, ExecutionContext context, Dispatchable item)
Description copied from interface:ExecutionListenerFinish node dispatch- Specified by:
finishNodeDispatchin interfaceExecutionListener- Parameters:
result- resultcontext- contextitem- dispatch
-
beginFileCopyFileStream
public void beginFileCopyFileStream(ExecutionContext context, java.io.InputStream input, INodeEntry node)
Description copied from interface:ExecutionListenerBegin file copy of stream- Specified by:
beginFileCopyFileStreamin interfaceExecutionListener- Parameters:
context- contextinput- input streamnode- node
-
beginFileCopyFile
public void beginFileCopyFile(ExecutionContext context, java.io.File input, INodeEntry node)
Description copied from interface:ExecutionListenerBegin file copy of file- Specified by:
beginFileCopyFilein interfaceExecutionListener- Parameters:
context- contextinput- filenode- node
-
beginFileCopyFile
public void beginFileCopyFile(ExecutionContext context, java.util.List<java.io.File> files, INodeEntry node)
Description copied from interface:ExecutionListenerBegin file copy of file- Specified by:
beginFileCopyFilein interfaceExecutionListener- Parameters:
context- contextfiles- filesnode- node
-
beginFileCopyScriptContent
public void beginFileCopyScriptContent(ExecutionContext context, java.lang.String input, INodeEntry node)
Description copied from interface:ExecutionListenerBegin file copy of string- Specified by:
beginFileCopyScriptContentin interfaceExecutionListener- Parameters:
context- contextinput- stringnode- node
-
finishFileCopy
public void finishFileCopy(java.lang.String result, ExecutionContext context, INodeEntry node)Description copied from interface:ExecutionListenerFinish file copy- Specified by:
finishFileCopyin interfaceExecutionListener- Parameters:
result- resultcontext- contextnode- node
-
finishMultiFileCopy
public void finishMultiFileCopy(java.lang.String[] result, ExecutionContext context, INodeEntry node)Description copied from interface:ExecutionListenerFinish file copy- Specified by:
finishMultiFileCopyin interfaceExecutionListener- Parameters:
result- resultcontext- contextnode- node
-
createOverride
public ExecutionListenerOverride createOverride()
- Specified by:
createOverridein interfaceExecutionListener- Returns:
- an ExecutionListenerOverride that will delegate to this ExecutionListener, but allows overriding property values.
-
log
public void log(int level, java.lang.String message)Description copied from interface:ExecutionLoggerLog a message at a given level- Specified by:
login interfaceExecutionLogger- 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- Specified by:
login interfaceExecutionLogger- 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
-
event
public void event(java.lang.String eventType, java.lang.String message, java.util.Map eventMeta)- Specified by:
eventin interfaceExecutionLogger- Parameters:
eventType- event typemessage- Message being logged.nullmessages are not logged, however, zero-length strings are.eventMeta- metadata
-
-