@NotThreadSafe public final class JobMasterSync extends 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()
Cleans up any resources used by the heartbeat executor.
|
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 HeartbeatExecutor
timeout
- time limit in milliseconds this heartbeat should not exceed when runningpublic void close()
HeartbeatExecutor
close
in interface HeartbeatExecutor
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2023. All Rights Reserved.