Class BatchStartedEvent

java.lang.Object
com.suse.salt.netapi.event.BatchStartedEvent

public class BatchStartedEvent extends Object
Represents an event fired when a batch job starts.
  • Field Details

  • Constructor Details

    • BatchStartedEvent

      public BatchStartedEvent(String jobIdIn, BatchStartedEvent.Data dataIn)
      Creates a new BatchStartedEvent
      Parameters:
      jobIdIn - the id of the job
      dataIn - the data containing more information about this event
  • Method Details

    • getData

      public BatchStartedEvent.Data getData()
      Returns:
      the event data
    • getJobId

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

      public static Optional<BatchStartedEvent> 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