Class JobReturnEvent
java.lang.Object
com.suse.salt.netapi.event.JobReturnEvent
Representation of job return events fired each time a minion returns data for a job.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classData object of the job return event -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateJobReturnEvent(String jobIdIn, String minionIdIn, JobReturnEvent.Data dataIn) Creates a new JobReturnEvent -
Method Summary
Modifier and TypeMethodDescriptiongetData()getJobId()The id of the jobstatic Optional<JobReturnEvent> Utility method to parse a generic event into a more specific one.
-
Field Details
-
PATTERN
-
jobId
-
minionId
-
data
-
GSON
private static final com.google.gson.Gson GSON
-
-
Constructor Details
-
JobReturnEvent
Creates a new JobReturnEvent- Parameters:
jobIdIn- the id of the jobminionIdIn- the id of the minion returning the jobdataIn- data containing more information about this event
-
-
Method Details
-
getJobId
-
getMinionId
- Returns:
- the minion id
-
getData
- Returns:
- the event data
-
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
-