public interface JobLeaderListener
JobLeaderService. The listener is notified whenever a job manager
gained leadership for a registered job and the service could establish a connection to it.
Furthermore, the listener is notified when a job manager loses leadership for a job. In case
of an error, the handleError(Throwable)} is called.| Modifier and Type | Method and Description |
|---|---|
void |
handleError(Throwable throwable)
Callback for errors which might occur in the
JobLeaderService. |
void |
jobManagerGainedLeadership(JobID jobId,
JobMasterGateway jobManagerGateway,
UUID jobLeaderId,
JMTMRegistrationSuccess registrationMessage)
Callback if a job manager has gained leadership for the job identified by the job id and a
connection could be established to this job manager.
|
void |
jobManagerLostLeadership(JobID jobId,
UUID jobLeaderId)
Callback if the job leader for the job with the given job id lost its leadership.
|
void jobManagerGainedLeadership(JobID jobId, JobMasterGateway jobManagerGateway, UUID jobLeaderId, JMTMRegistrationSuccess registrationMessage)
jobId - identifying the job for which the job manager has gained leadershipjobManagerGateway - to the job leaderjobLeaderId - new leader id of the job leaderregistrationMessage - containing further registration informationvoid jobManagerLostLeadership(JobID jobId, UUID jobLeaderId)
jobId - identifying the job whose leader has lost leadershipjobLeaderId - old leader idvoid handleError(Throwable throwable)
JobLeaderService.throwable - causeCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.