Class RunExt
- java.lang.Object
-
- com.cloudbees.workflow.rest.external.RunExt
-
- Direct Known Subclasses:
RunExt.ChildHidingWrapper
public class RunExt extends Object
External API response object for pipeline run- Author:
- tom.fennelly@gmail.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
RunExt.ChildHidingWrapper
static class
RunExt.RunLinks
-
Constructor Summary
Constructors Constructor Description RunExt()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static RunExt
computeTimings(RunExt runExt)
Deprecated.static RunExt
create(org.jenkinsci.plugins.workflow.job.WorkflowRun run)
static RunExt
createMinimal(org.jenkinsci.plugins.workflow.job.WorkflowRun run)
Get basics set up: everything but status/timing/node walking for a run, no cache usestatic RunExt
createNew(org.jenkinsci.plugins.workflow.job.WorkflowRun run)
RunExt
createWrapper()
Creates a wrapper of this that hides the full stage nodes Use case: returning a minimal view of the run, while using a cached, fully-realized versionRunExt.RunLinks
get_links()
long
getDurationMillis()
long
getEndTimeMillis()
String
getId()
String
getName()
long
getPauseDurationMillis()
long
getQueueDurationMillis()
List<StageNodeExt>
getStages()
long
getStartTimeMillis()
StatusExt
getStatus()
static boolean
isPendingInput(org.jenkinsci.plugins.workflow.job.WorkflowRun run)
void
set_links(RunExt.RunLinks _links)
void
setDurationMillis(long durationMillis)
void
setEndTimeMillis(long endTimeMillis)
void
setId(String id)
void
setName(String name)
void
setPauseDurationMillis(long pauseDurationMillis)
void
setQueueDurationMillis(long queueDurationMillis)
void
setStages(List<StageNodeExt> stages)
void
setStartTimeMillis(long startTimeMillis)
void
setStatus(StatusExt status)
-
-
-
Method Detail
-
get_links
public RunExt.RunLinks get_links()
-
set_links
public void set_links(RunExt.RunLinks _links)
-
getId
public String getId()
-
setId
public void setId(String id)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getStatus
public StatusExt getStatus()
-
setStatus
public void setStatus(StatusExt status)
-
getStartTimeMillis
public long getStartTimeMillis()
-
setStartTimeMillis
public void setStartTimeMillis(long startTimeMillis)
-
getEndTimeMillis
public long getEndTimeMillis()
-
setEndTimeMillis
public void setEndTimeMillis(long endTimeMillis)
-
getDurationMillis
public long getDurationMillis()
-
setDurationMillis
public void setDurationMillis(long durationMillis)
-
getQueueDurationMillis
public long getQueueDurationMillis()
-
setQueueDurationMillis
public void setQueueDurationMillis(long queueDurationMillis)
-
getPauseDurationMillis
public long getPauseDurationMillis()
-
setPauseDurationMillis
public void setPauseDurationMillis(long pauseDurationMillis)
-
getStages
public List<StageNodeExt> getStages()
-
setStages
public void setStages(List<StageNodeExt> stages)
-
computeTimings
@Deprecated public static RunExt computeTimings(RunExt runExt)
Deprecated.Computes timings after the stages have been set up That means timing of the stage has been computed, and the stages are sorted Deprecated but retained for external APIs consuming it, usecreateNew(WorkflowRun)
instead
-
createMinimal
public static RunExt createMinimal(org.jenkinsci.plugins.workflow.job.WorkflowRun run)
Get basics set up: everything but status/timing/node walking for a run, no cache use
-
createWrapper
public RunExt createWrapper()
Creates a wrapper of this that hides the full stage nodes Use case: returning a minimal view of the run, while using a cached, fully-realized version
-
create
public static RunExt create(org.jenkinsci.plugins.workflow.job.WorkflowRun run)
-
createNew
public static RunExt createNew(org.jenkinsci.plugins.workflow.job.WorkflowRun run)
-
isPendingInput
public static boolean isPendingInput(org.jenkinsci.plugins.workflow.job.WorkflowRun run)
-
-