Class JobEventManager

java.lang.Object
org.apache.flink.runtime.jobmaster.event.JobEventManager

public class JobEventManager extends Object
The manager for recording and replaying JobEvent.
  • Constructor Details

  • Method Details

    • start

      public void start() throws Exception
      Start the job event manager.
      Throws:
      Exception
    • stop

      public void stop(boolean clear)
      Stop the job event manager.

      NOTE: This method maybe invoked multiply times.

    • writeEvent

      public void writeEvent(JobEvent event, boolean cutBlock)
      Write a job event asynchronously.
      Parameters:
      event - The job event that will be recorded.
      cutBlock - whether start a new event block after write this event.
    • replay

      public boolean replay(JobEventReplayHandler replayHandler)
      Replay all job events that have been record.
      Parameters:
      replayHandler - handler which will process the job event.
      Returns:
      true if replay successfully, false otherwise.
    • hasJobEvents

      public boolean hasJobEvents() throws Exception
      Returns whether the store is empty.
      Returns:
      false if the store contains any job events, true otherwise.
      Throws:
      Exception