Class RunnerReturnEvent


  • public class RunnerReturnEvent
    extends java.lang.Object
    Representation of job return events fired each time a minion returns data for a job.
    • Field Detail

      • PATTERN

        private static final java.util.regex.Pattern PATTERN
      • jobId

        private final java.lang.String jobId
      • GSON

        private static final com.google.gson.Gson GSON
    • Constructor Detail

      • RunnerReturnEvent

        private RunnerReturnEvent​(java.lang.String jobIdIn,
                                  RunnerReturnEvent.Data dataIn)
        Creates a new JobReturnEvent
        Parameters:
        jobIdIn - the id of the job
        dataIn - data containing more information about this event
    • Method Detail

      • getJobId

        public java.lang.String getJobId()
        The id of the job
        Returns:
        job id
      • parse

        public static java.util.Optional<RunnerReturnEvent> parse​(Event event)
        Utility method to parse a generic event into a more specific one.
        Parameters:
        event - the generic event to parse
        Returns:
        an option containing the parsed value or non if it could not be parsed