Package org.jenkinsci.plugins.cloudstats
Class PhaseExecutionAttachment
- java.lang.Object
-
- org.jenkinsci.plugins.cloudstats.PhaseExecutionAttachment
-
- All Implemented Interfaces:
Action
,ModelObject
,Serializable
- Direct Known Subclasses:
PhaseExecutionAttachment.ExceptionAttachment
public class PhaseExecutionAttachment extends Object implements Action, Serializable
Additional information attached to thePhaseExecution
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PhaseExecutionAttachment.ExceptionAttachment
-
Constructor Summary
Constructors Constructor Description PhaseExecutionAttachment(ProvisioningActivity.Status status, String title)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDisplayName()
String
getIconFileName()
ProvisioningActivity.Status
getStatus()
Status the execution entered once this got attached.String
getTitle()
Single line description of the attachment nature.String
getUrlName()
Url fragment (without slashes) to provide URL subspace for this attachment.
-
-
-
Constructor Detail
-
PhaseExecutionAttachment
public PhaseExecutionAttachment(@NonNull ProvisioningActivity.Status status, @NonNull String title)
-
-
Method Detail
-
getStatus
@NonNull public ProvisioningActivity.Status getStatus()
Status the execution entered once this got attached.- Returns:
ProvisioningActivity.Status.OK
in case of informative attachment,ProvisioningActivity.Status.WARN
in case provisioning continued, but there is something worth attention on this attachment anyway orProvisioningActivity.Status.FAIL
in case provisioning failed with this attachment explaining the cause.
-
getTitle
@NonNull public String getTitle()
Single line description of the attachment nature.
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
@NonNull public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
@CheckForNull public String getUrlName()
Url fragment (without slashes) to provide URL subspace for this attachment.- Specified by:
getUrlName
in interfaceAction
- Returns:
- non-null, in case the attachment serves some more content. null otherwise.
-
-