Package com.netflix.genie.web.events
Class JobStateChangeEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
com.netflix.genie.web.events.JobStateChangeEvent
- All Implemented Interfaces:
Serializable
public class JobStateChangeEvent
extends org.springframework.context.ApplicationEvent
Event representing a job status change.
- Since:
- 4.0.0
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionJobStateChangeEvent(String jobId, com.netflix.genie.common.internal.dtos.JobStatus previousStatus, com.netflix.genie.common.internal.dtos.JobStatus newStatus, Object source) Constructor. -
Method Summary
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
JobStateChangeEvent
public JobStateChangeEvent(String jobId, @Nullable com.netflix.genie.common.internal.dtos.JobStatus previousStatus, com.netflix.genie.common.internal.dtos.JobStatus newStatus, Object source) Constructor.- Parameters:
jobId- the job idpreviousStatus- the previous status, or null if the job was just creatednewStatus- the status the job just transitioned tosource- the event source
-