@ThreadSafe public final class ConfigHashSync extends Object implements HeartbeatExecutor
Constructor and Description |
---|
ConfigHashSync(FileSystemContext context)
Constructs a new
ConfigHashSync . |
Modifier and Type | Method and Description |
---|---|
void |
close()
Cleans up any resources used by the heartbeat executor.
|
Optional<IOException> |
getException() |
void |
heartbeat()
Implements the heartbeat logic.
|
void |
resetMetaMasterConfigClient(MasterClientContext context)
Resets the internal meta master client based on the new configuration.
|
public ConfigHashSync(FileSystemContext context)
ConfigHashSync
.context
- the filesystem contextpublic void resetMetaMasterConfigClient(MasterClientContext context)
context
- the context containing the new configurationpublic Optional<IOException> getException()
public void heartbeat()
HeartbeatExecutor
heartbeat
in interface HeartbeatExecutor
public void close()
HeartbeatExecutor
close
in interface HeartbeatExecutor
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2023. All Rights Reserved.