Package com.suse.salt.netapi.event
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. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBatchStartedEvent.DataData object of the batch started event 
- 
Constructor Summary
Constructors Constructor Description BatchStartedEvent(String jobIdIn, BatchStartedEvent.Data dataIn)Creates a new BatchStartedEvent 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchStartedEvent.DatagetData()StringgetJobId()The id of the jobstatic Optional<BatchStartedEvent>parse(Event event)Utility method to parse a generic event into a more specific one. 
 - 
 
- 
- 
Constructor Detail
- 
BatchStartedEvent
public BatchStartedEvent(String jobIdIn, BatchStartedEvent.Data dataIn)
Creates a new BatchStartedEvent- Parameters:
 jobIdIn- the id of the jobdataIn- the data containing more information about this event
 
 - 
 
- 
Method Detail
- 
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
 
 
 - 
 
 -