Interface JobEventStore
- All Known Implementing Classes:
FileSystemJobEventStore
public interface JobEventStore
A store for recording the
JobEvent.-
Method Summary
-
Method Details
-
start
Start the store. This method should be called before any other operations.- Throws:
Exception
-
stop
void stop(boolean clearEventLogs) Stop the store.- Parameters:
clearEventLogs- Whether to clear the job events that have been recorded in the store.
-
writeEvent
Write a job event.- Parameters:
jobEvent- The job event that will be recorded.cutBlock- If set to true, the current output file will be closed after writing this event, and a new output file will be created for subsequent events. This parameter effectively controls the segmentation of event data into separate files.
-
readEvent
Read a job event.- Returns:
- job event.
- Throws:
Exception
-
isEmpty
Returns whether the store is empty.- Returns:
- false if the store contains any job events, true otherwise.
- Throws:
Exception
-