com.dtolabs.rundeck.core.cli
Class CLIExecutionListener
java.lang.Object
com.dtolabs.rundeck.core.execution.ExecutionListenerOverrideBase
com.dtolabs.rundeck.core.cli.CLIExecutionListener
- All Implemented Interfaces:
- ExecutionListener, ExecutionListenerOverride, PluginLogger
public class CLIExecutionListener
- extends ExecutionListenerOverrideBase
CLIExecutionListener implements ExecutionListener, and is used to supply other listeners to the ExecutionService,
as well as provide a mechanism for logging messages to a provided CLIToolLogger.
Method Summary |
ExecutionListenerOverride |
createOverride()
Return an ExecutionListenerOverride that will delegate to this ExecutionListener, but allows overriding
property values. |
void |
log(int level,
java.lang.String message)
Log a message |
Methods inherited from class com.dtolabs.rundeck.core.execution.ExecutionListenerOverrideBase |
beginExecuteNodeStep, beginFileCopyFile, beginFileCopyFileStream, beginFileCopyScriptContent, beginNodeDispatch, beginNodeDispatch, beginNodeExecution, beginStepExecution, finishExecuteNodeStep, finishFileCopy, finishNodeDispatch, finishNodeDispatch, finishNodeExecution, finishStepExecution, getFailedNodesListener, getLogFormat, getLoggingContext, isTerse, setFailedNodesListener, setLogFormat, setTerse |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLIExecutionListener
public CLIExecutionListener(FailedNodesListener failedNodesListener,
CLIToolLogger logger,
int loglevel)
- Create the CLIExecutionListener
- Parameters:
failedNodesListener
- a listener for failed nodes list resultlogger
- a logger
CLIExecutionListener
public CLIExecutionListener(FailedNodesListener failedNodesListener,
CLIToolLogger logger,
int loglevel,
boolean terse)
CLIExecutionListener
public CLIExecutionListener(FailedNodesListener failedNodesListener,
CLIToolLogger logger,
int loglevel,
boolean terse,
java.lang.String logFormat)
log
public void log(int level,
java.lang.String message)
- Description copied from interface:
ExecutionListener
- Log a message
- Parameters:
level
- the log levelmessage
- Message being logged. null
messages are not logged, however, zero-length strings
are.
createOverride
public ExecutionListenerOverride createOverride()
- Description copied from interface:
ExecutionListener
- Return an ExecutionListenerOverride that will delegate to this ExecutionListener, but allows overriding
property values.