Class BatchStartedEvent
java.lang.Object
com.suse.salt.netapi.event.BatchStartedEvent
Represents an event fired when a batch job starts.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classData object of the batch started event -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBatchStartedEvent(String jobIdIn, BatchStartedEvent.Data dataIn) Creates a new BatchStartedEvent -
Method Summary
Modifier and TypeMethodDescriptiongetData()getJobId()The id of the jobstatic Optional<BatchStartedEvent> Utility method to parse a generic event into a more specific one.
-
Field Details
-
PATTERN
-
GSON
private static final com.google.gson.Gson GSON -
jobId
-
data
-
-
Constructor Details
-
BatchStartedEvent
Creates a new BatchStartedEvent- Parameters:
jobIdIn- the id of the jobdataIn- the data containing more information about this event
-
-
Method Details
-
getData
- Returns:
- the event data
-
getJobId
-
parse
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
-