public class ClientIds extends Object implements AutoCloseable, Serializable
NOTE: Due to CPU contention on the driver/client node, the heartbeats could be delayed, hence it's important to set the value high enough to avoid that possibility.
| Modifier and Type | Class and Description |
|---|---|
static class |
ClientIds.Builder
Builder for
ClientIds. |
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_HEARTBEAT_INTERVAL_IN_MS |
static int |
DEFAULT_NUM_TOLERABLE_HEARTBEAT_MISSES |
static String |
INIT_CLIENT_ID |
| Modifier and Type | Method and Description |
|---|---|
static ClientIds.Builder |
builder()
Returns the builder.
|
void |
close() |
static boolean |
isHeartbeatExpired(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
long timeoutThreshold) |
String |
nextId(org.apache.flink.configuration.Configuration conf) |
void |
start() |
public static final String INIT_CLIENT_ID
public static final long DEFAULT_HEARTBEAT_INTERVAL_IN_MS
public static final int DEFAULT_NUM_TOLERABLE_HEARTBEAT_MISSES
public void start()
public static ClientIds.Builder builder()
public void close()
close in interface AutoCloseablepublic static boolean isHeartbeatExpired(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
long timeoutThreshold)
public String nextId(org.apache.flink.configuration.Configuration conf)
Copyright © 2023 The Apache Software Foundation. All rights reserved.