org.rundeck.api.domain
Class RundeckExecution

java.lang.Object
  extended by 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

Nested Class Summary
static class RundeckExecution.ExecutionStatus
          The status of an execution
 
Constructor Summary
RundeckExecution()
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RundeckExecution

public RundeckExecution()
Method Detail

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.