Class EiffelActivityAction
java.lang.Object
com.axis.jenkins.plugins.eiffel.eiffelbroadcaster.EiffelActivityAction
- All Implemented Interfaces:
Action
,ModelObject
An
Action
for storing the Eiffel activity events (EiffelActivityTriggeredEvent
(ActT),
EiffelActivityStartedEvent
(ActS), and EiffelActivityFinishedEvent
(ActF)) that have been
emitted for a Run
. 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
-
Method Summary
Modifier and TypeMethodDescriptionReturns the Run'sEiffelActivityFinishedEvent
, or null if the Run hasn't completed and no event has been sent.Returns the Run'sEiffelActivityFinishedEvent
expressed as a JSON string, or null if the Run hasn't completed and no event has been sent.Returns the Run'sEiffelActivityStartedEvent
, or null if the Run hasn't completed and no event has been sent.Returns the Run'sEiffelActivityStartedEvent
expressed as a JSON string, or null if the Run hasn't completed and no event has been sent.Returns the Run's EiffelActivityTriggeredEvent.Returns the Run'sEiffelActivityTriggeredEvent
expressed as a JSON string.
-
Constructor Details
-
EiffelActivityAction
public EiffelActivityAction(@NonNull EiffelActivityTriggeredEvent triggerEvent) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-
Method Details
-
getFinishedEvent
@CheckForNull public EiffelActivityFinishedEvent getFinishedEvent() throws com.fasterxml.jackson.core.JsonProcessingExceptionReturns the Run'sEiffelActivityFinishedEvent
, or null if the Run hasn't completed and no event has been sent.- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
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.JsonProcessingExceptionReturns the Run'sEiffelActivityStartedEvent
, or null if the Run hasn't completed and no event has been sent.- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
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.JsonProcessingExceptionReturns the Run's EiffelActivityTriggeredEvent.- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getTriggerEventJSON
Returns the Run'sEiffelActivityTriggeredEvent
expressed as a JSON string. -
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
-