public class

RundeckExecution

extends Object
implements Serializable
java.lang.Object
   ↳ org.rundeck.api.domain.RundeckExecution

Class Overview

Represents a RunDeck execution, usually triggered by an API call. An execution could be a RundeckJob execution or an "ad-hoc" execution.

Summary

Nested Classes
enum RundeckExecution.ExecutionStatus The status of an execution  
Public Constructors
RundeckExecution()
Public Methods
boolean equals(Object obj)
String getAbortedBy()
String getDescription()
String getDuration()
Long getDurationInMillis()
Long getDurationInSeconds()
Date getEndedAt()
Long getId()
RundeckJob getJob()
String getShortDuration()
Date getStartedAt()
String getStartedBy()
RundeckExecution.ExecutionStatus getStatus()
String getUrl()
int hashCode()
void setAbortedBy(String abortedBy)
void setDescription(String description)
void setEndedAt(Date endedAt)
void setId(Long id)
void setJob(RundeckJob job)
void setStartedAt(Date startedAt)
void setStartedBy(String startedBy)
void setStatus(RundeckExecution.ExecutionStatus status)
void setUrl(String url)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public RundeckExecution ()

Public Methods

public boolean equals (Object obj)

public String getAbortedBy ()

public String getDescription ()

public String getDuration ()

Returns
  • the duration of the execution, as a human-readable string : "3 minutes 34 seconds" (or null if the execution is still running, or has been aborted)

public Long getDurationInMillis ()

Returns
  • the duration of the execution in milliseconds (or null if the duration is still running, or has been aborted)

public Long getDurationInSeconds ()

Returns
  • the duration of the execution in seconds (or null if the execution is still running, or has been aborted)

public Date getEndedAt ()

public Long getId ()

public RundeckJob getJob ()

Returns
  • the RundeckJob associated with this execution, or null in the case of an ad-hoc execution (command or script)

public String getShortDuration ()

Returns
  • the duration of the execution, as a "short" human-readable string : "0:03:34.187" (or null if the execution is still running, or has been aborted)

public Date getStartedAt ()

public String getStartedBy ()

public RundeckExecution.ExecutionStatus getStatus ()

Returns

public String getUrl ()

public int hashCode ()

public void setAbortedBy (String abortedBy)

public void setDescription (String description)

public void setEndedAt (Date endedAt)

public void setId (Long id)

public void setJob (RundeckJob job)

public void setStartedAt (Date startedAt)

public void setStartedBy (String startedBy)

public void setStatus (RundeckExecution.ExecutionStatus status)

public void setUrl (String url)

public String toString ()