Package com.suse.salt.netapi.event
Class RunnerReturnEvent
- java.lang.Object
-
- com.suse.salt.netapi.event.RunnerReturnEvent
-
public class RunnerReturnEvent 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
RunnerReturnEvent.Data
Data object of the job return event
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RunnerReturnEvent.Data
getData()
String
getJobId()
The id of the jobstatic Optional<RunnerReturnEvent>
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
-
getData
public RunnerReturnEvent.Data getData()
- Returns:
- the event data
-
parse
public static 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
-
-