org.rundeck.api.domain
Class RundeckExecution
java.lang.Object
org.rundeck.api.domain.RundeckExecution
- All Implemented Interfaces:
- Serializable
public class RundeckExecution
- extends Object
- implements Serializable
Represents a RunDeck execution, usually triggered by an API call. An execution could be a RundeckJob
execution or an "ad-hoc" execution.
- Author:
- Vincent Behar
- See Also:
- Serialized Form
RundeckExecution
public RundeckExecution()
getDurationInMillis
public Long getDurationInMillis()
- Returns:
- the duration of the execution in milliseconds (or null if the duration is still running, or has been
aborted)
getDurationInSeconds
public Long getDurationInSeconds()
- Returns:
- the duration of the execution in seconds (or null if the execution is still running, or has been aborted)
getDuration
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)
getShortDuration
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)
getId
public Long getId()
setId
public void setId(Long id)
getUrl
public String getUrl()
setUrl
public void setUrl(String url)
getStatus
public RundeckExecution.ExecutionStatus getStatus()
- Returns:
- the status of the execution - see
RundeckExecution.ExecutionStatus
setStatus
public void setStatus(RundeckExecution.ExecutionStatus status)
getJob
public RundeckJob getJob()
- Returns:
- the
RundeckJob
associated with this execution, or null in the case of an ad-hoc execution
(command or script)
setJob
public void setJob(RundeckJob job)
getStartedBy
public String getStartedBy()
setStartedBy
public void setStartedBy(String startedBy)
getStartedAt
public Date getStartedAt()
setStartedAt
public void setStartedAt(Date startedAt)
getEndedAt
public Date getEndedAt()
setEndedAt
public void setEndedAt(Date endedAt)
getAbortedBy
public String getAbortedBy()
setAbortedBy
public void setAbortedBy(String abortedBy)
getDescription
public String getDescription()
setDescription
public void setDescription(String description)
toString
public String toString()
- Overrides:
toString
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2011. All Rights Reserved.