@NotThreadSafe public final class JobMasterSync extends java.lang.Object implements HeartbeatExecutor
RetryHandlingMetaMasterMasterClient to register to the primary job master,
then maintain a heartbeat with the primary.| Constructor and Description |
|---|
JobMasterSync(Address masterAddress,
RetryHandlingJobMasterMasterClient masterClient)
Creates a new instance of
MetaMasterSync. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
heartbeat(long timeout)
Heartbeats to the leader master node.
|
public JobMasterSync(Address masterAddress, RetryHandlingJobMasterMasterClient masterClient)
MetaMasterSync.masterAddress - the master addressmasterClient - the meta master clientpublic void heartbeat(long timeout)
heartbeat in interface HeartbeatExecutorpublic void close()
close in interface HeartbeatExecutorclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableCopyright © 2024. All Rights Reserved.