public interface JobEventStore
JobEvent.| Modifier and Type | Method and Description |
|---|---|
boolean |
isEmpty()
Returns whether the store is empty.
|
JobEvent |
readEvent()
Read a job event.
|
void |
start()
Start the store.
|
void |
stop(boolean clearEventLogs)
Stop the store.
|
void |
writeEvent(JobEvent jobEvent,
boolean cutBlock)
Write a job event.
|
void start()
throws Exception
Exceptionvoid stop(boolean clearEventLogs)
clearEventLogs - Whether to clear the job events that have been recorded in the store.void writeEvent(JobEvent jobEvent, boolean cutBlock)
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.JobEvent readEvent() throws Exception
ExceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.