Package com.suse.salt.netapi.event
Class JobReturnEvent
- java.lang.Object
-
- com.suse.salt.netapi.event.JobReturnEvent
-
public class JobReturnEvent extends Object
Representation of job return events fired each time a minion returns data for a job.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JobReturnEvent.Data
Data object of the job return event
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JobReturnEvent.Data
getData()
String
getJobId()
The id of the jobString
getMinionId()
static Optional<JobReturnEvent>
parse(Event event)
Utility method to parse a generic event into a more specific one.
-
-
-
Method Detail
-
getJobId
public String getJobId()
The id of the job- Returns:
- job id
-
getMinionId
public String getMinionId()
- Returns:
- the minion id
-
getData
public JobReturnEvent.Data getData()
- Returns:
- the event data
-
parse
public static Optional<JobReturnEvent> 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
-
-