public class HeartbeatServices extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
failedRpcRequestsUntilUnreachable |
protected long |
heartbeatInterval
Heartbeat interval for the created services.
|
protected long |
heartbeatTimeout
Heartbeat timeout for the created services.
|
| Constructor and Description |
|---|
HeartbeatServices(long heartbeatInterval,
long heartbeatTimeout) |
HeartbeatServices(long heartbeatInterval,
long heartbeatTimeout,
int failedRpcRequestsUntilUnreachable) |
| Modifier and Type | Method and Description |
|---|---|
<I,O> HeartbeatManager<I,O> |
createHeartbeatManager(ResourceID resourceId,
HeartbeatListener<I,O> heartbeatListener,
org.apache.flink.util.concurrent.ScheduledExecutor mainThreadExecutor,
org.slf4j.Logger log)
Creates a heartbeat manager which does not actively send heartbeats.
|
<I,O> HeartbeatManager<I,O> |
createHeartbeatManagerSender(ResourceID resourceId,
HeartbeatListener<I,O> heartbeatListener,
org.apache.flink.util.concurrent.ScheduledExecutor mainThreadExecutor,
org.slf4j.Logger log)
Creates a heartbeat manager which actively sends heartbeats to monitoring targets.
|
static HeartbeatServices |
fromConfiguration(org.apache.flink.configuration.Configuration configuration)
Creates an HeartbeatServices instance from a
Configuration. |
protected final long heartbeatInterval
protected final long heartbeatTimeout
protected final int failedRpcRequestsUntilUnreachable
public HeartbeatServices(long heartbeatInterval,
long heartbeatTimeout)
public HeartbeatServices(long heartbeatInterval,
long heartbeatTimeout,
int failedRpcRequestsUntilUnreachable)
public <I,O> HeartbeatManager<I,O> createHeartbeatManager(ResourceID resourceId, HeartbeatListener<I,O> heartbeatListener, org.apache.flink.util.concurrent.ScheduledExecutor mainThreadExecutor, org.slf4j.Logger log)
I - Type of the incoming payloadO - Type of the outgoing payloadresourceId - Resource Id which identifies the owner of the heartbeat managerheartbeatListener - Listener which will be notified upon heartbeat timeouts for
registered targetsmainThreadExecutor - Scheduled executor to be used for scheduling heartbeat timeoutslog - Logger to be used for the loggingpublic <I,O> HeartbeatManager<I,O> createHeartbeatManagerSender(ResourceID resourceId, HeartbeatListener<I,O> heartbeatListener, org.apache.flink.util.concurrent.ScheduledExecutor mainThreadExecutor, org.slf4j.Logger log)
I - Type of the incoming payloadO - Type of the outgoing payloadresourceId - Resource Id which identifies the owner of the heartbeat managerheartbeatListener - Listener which will be notified upon heartbeat timeouts for
registered targetsmainThreadExecutor - Scheduled executor to be used for scheduling heartbeat timeouts and
periodically send heartbeat requestslog - Logger to be used for the loggingpublic static HeartbeatServices fromConfiguration(org.apache.flink.configuration.Configuration configuration)
Configuration.configuration - Configuration to be used for the HeartbeatServices creationCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.