Class EiffelActivityAction
- java.lang.Object
-
- com.axis.jenkins.plugins.eiffel.eiffelbroadcaster.EiffelActivityAction
-
- All Implemented Interfaces:
Action
,ModelObject
@ExportedBean public class EiffelActivityAction extends Object implements Action
AnAction
for storing the Eiffel activity events (EiffelActivityTriggeredEvent
(ActT),EiffelActivityStartedEvent
(ActS), andEiffelActivityFinishedEvent
(ActF)) that have been emitted for aRun
. This allows other plugins and clients in a CI/CD pipeline to map a Run into the Eiffel domain. This action is instantiated when ActT is sent and always contains that event. At that point the contents of ActS and ActF are unknown so the methods for returning those events return null.
-
-
Constructor Summary
Constructors Constructor Description EiffelActivityAction(EiffelActivityTriggeredEvent triggerEvent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDisplayName()
EiffelActivityFinishedEvent
getFinishedEvent()
Returns the Run'sEiffelActivityFinishedEvent
, or null if the Run hasn't completed and no event has been sent.String
getFinishedEventJSON()
Returns the Run'sEiffelActivityFinishedEvent
expressed as a JSON string, or null if the Run hasn't completed and no event has been sent.String
getIconFileName()
EiffelActivityStartedEvent
getStartedEvent()
Returns the Run'sEiffelActivityStartedEvent
, or null if the Run hasn't completed and no event has been sent.String
getStartedEventJSON()
Returns the Run'sEiffelActivityStartedEvent
expressed as a JSON string, or null if the Run hasn't completed and no event has been sent.EiffelActivityTriggeredEvent
getTriggerEvent()
Returns the Run's EiffelActivityTriggeredEvent.String
getTriggerEventJSON()
Returns the Run'sEiffelActivityTriggeredEvent
expressed as a JSON string.String
getUrlName()
-
-
-
Constructor Detail
-
EiffelActivityAction
public EiffelActivityAction(@NonNull EiffelActivityTriggeredEvent triggerEvent) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-
Method Detail
-
getFinishedEvent
@CheckForNull public EiffelActivityFinishedEvent getFinishedEvent() throws com.fasterxml.jackson.core.JsonProcessingException
Returns the Run'sEiffelActivityFinishedEvent
, or null if the Run hasn't completed and no event has been sent.- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getFinishedEventJSON
@CheckForNull @Exported public String getFinishedEventJSON()
Returns the Run'sEiffelActivityFinishedEvent
expressed as a JSON string, or null if the Run hasn't completed and no event has been sent.
-
getStartedEvent
@CheckForNull public EiffelActivityStartedEvent getStartedEvent() throws com.fasterxml.jackson.core.JsonProcessingException
Returns the Run'sEiffelActivityStartedEvent
, or null if the Run hasn't completed and no event has been sent.- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getStartedEventJSON
@CheckForNull @Exported public String getStartedEventJSON()
Returns the Run'sEiffelActivityStartedEvent
expressed as a JSON string, or null if the Run hasn't completed and no event has been sent.
-
getTriggerEvent
@NonNull public EiffelActivityTriggeredEvent getTriggerEvent() throws com.fasterxml.jackson.core.JsonProcessingException
Returns the Run's EiffelActivityTriggeredEvent.- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getTriggerEventJSON
@Exported public String getTriggerEventJSON()
Returns the Run'sEiffelActivityTriggeredEvent
expressed as a JSON string.
-
getIconFileName
@CheckForNull public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
@CheckForNull public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
@CheckForNull public String getUrlName()
- Specified by:
getUrlName
in interfaceAction
-
-