Class PersistedJobStatusObserverImpl
java.lang.Object
com.netflix.genie.web.data.observers.PersistedJobStatusObserverImpl
- All Implemented Interfaces:
PersistedJobStatusObserver
Observer of persisted entities modifications that publishes events on the event bus to be consumed asynchronously by
interested consumers.
- Since:
- 4.0.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PersistedJobStatusObserverImpl
Constructor.- Parameters:
genieEventBus
- the genie event bus
-
-
Method Details
-
notify
Handle a notification of job status change after the latter was successfully committed to persistent storage.- Specified by:
notify
in interfacePersistedJobStatusObserver
- Parameters:
jobId
- the job unique idpreviousStatus
- the previous job status, or null if this job was just created and persistedcurrentStatus
- the job status that was just persisted. Guaranteed to be different than the previous.
-