Package com.dtolabs.rundeck.plugins.jobs
Class JobExecutionEventImpl
- java.lang.Object
-
- com.dtolabs.rundeck.plugins.jobs.JobExecutionEventImpl
-
- All Implemented Interfaces:
JobEvent,JobExecutionEvent
public class JobExecutionEventImpl extends java.lang.Object implements JobExecutionEvent
-
-
Constructor Summary
Constructors Constructor Description JobExecutionEventImpl(StepExecutionContext executionContext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JobExecutionEventafterRun(StepExecutionContext executionContext, ExecutionReference execution, JobEventResult result)static JobExecutionEventbeforeRun(StepExecutionContext executionContext, ExecutionReference execution, WorkflowExecutionItem workflow)java.lang.StringgetExecutionId()ExecutionLoggergetExecutionLogger()INodeSetgetNodes()java.util.Map<java.lang.String,java.lang.String>getOptions()java.lang.StringgetProjectName()java.lang.StringgetUserName()-
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.jobs.JobExecutionEvent
getExecution, getExecutionContext, getResult, getWorkflow
-
-
-
-
Constructor Detail
-
JobExecutionEventImpl
public JobExecutionEventImpl(StepExecutionContext executionContext)
-
-
Method Detail
-
beforeRun
public static JobExecutionEvent beforeRun(StepExecutionContext executionContext, ExecutionReference execution, WorkflowExecutionItem workflow)
-
afterRun
public static JobExecutionEvent afterRun(StepExecutionContext executionContext, ExecutionReference execution, JobEventResult result)
-
getProjectName
public java.lang.String getProjectName()
- Specified by:
getProjectNamein interfaceJobExecutionEvent- Returns:
- String project name.
-
getOptions
public java.util.Map<java.lang.String,java.lang.String> getOptions()
- Specified by:
getOptionsin interfaceJobExecutionEvent- Returns:
- Map
options of the job.
-
getExecutionLogger
public ExecutionLogger getExecutionLogger()
- Specified by:
getExecutionLoggerin interfaceJobExecutionEvent- Returns:
- ExecutionLogger logger of the job.
-
getUserName
public java.lang.String getUserName()
- Specified by:
getUserNamein interfaceJobExecutionEvent- Returns:
- String user name triggering the job.
-
getExecutionId
public java.lang.String getExecutionId()
- Specified by:
getExecutionIdin interfaceJobExecutionEvent- Returns:
- String job execution id.
-
getNodes
public INodeSet getNodes()
- Specified by:
getNodesin interfaceJobExecutionEvent- Returns:
- INodeSet node set where the job will run
-
-