Class PhaseExecution
- java.lang.Object
-
- org.jenkinsci.plugins.cloudstats.PhaseExecution
-
- All Implemented Interfaces:
ModelObject
public final class PhaseExecution extends Object implements ModelObject
Phase execution record.While the phases starts in declared order, they might not complete in that order. Much less previous phase will be completed before next one starts.
There are several reasons for that: provisioning listener is called when the results are picked up, the agent might have started launching in the meantime. There are plugins that in fact enforce the launch to complete, before completing the
NodeProvisioner.PlannedNode.future
. To avoid any problems this can cause, the execution of phases is expected to occur in order, the execution will accept attachments regardless if the next phase started or not. For the time tracking purposes, the phase is considered completed as soon as the next phase begins. IOW, despite the fact the agent already started launching, plugin can still append provisioning log.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PhaseExecutionAttachment
getAttachment(String urlName)
List<PhaseExecutionAttachment>
getAttachments()
<T extends PhaseExecutionAttachment>
List<T>getAttachments(Class<T> type)
String
getDisplayName()
ProvisioningActivity.Phase
getPhase()
Date
getStarted()
long
getStartedTimestamp()
ProvisioningActivity.Status
getStatus()
String
getUrlName(PhaseExecutionAttachment attachment)
-
-
-
Method Detail
-
getAttachments
@NonNull public List<PhaseExecutionAttachment> getAttachments()
-
getAttachments
@NonNull public <T extends PhaseExecutionAttachment> List<T> getAttachments(@NonNull Class<T> type)
-
getStatus
@NonNull public ProvisioningActivity.Status getStatus()
-
getStarted
@NonNull public Date getStarted()
-
getStartedTimestamp
public long getStartedTimestamp()
-
getPhase
@NonNull public ProvisioningActivity.Phase getPhase()
-
getDisplayName
@NonNull public String getDisplayName()
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @CheckForNull public String getUrlName(@NonNull PhaseExecutionAttachment attachment)
-
getAttachment
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public PhaseExecutionAttachment getAttachment(String urlName)
-
-