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
Constructors -
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'sEiffelActivityFinishedEventexpressed 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'sEiffelActivityStartedEventexpressed 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'sEiffelActivityTriggeredEventexpressed 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'sEiffelActivityFinishedEventexpressed 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'sEiffelActivityStartedEventexpressed 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'sEiffelActivityTriggeredEventexpressed as a JSON string. -
getIconFileName
- Specified by:
getIconFileNamein interfaceAction
-
getDisplayName
- Specified by:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject
-
getUrlName
- Specified by:
getUrlNamein interfaceAction
-