public class NoOpHeartbeatServices extends Object implements HeartbeatServices
HeartbeatServices implementation which does nothing.| 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 NoOpHeartbeatServices |
getInstance() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromConfiguration, noOppublic <I,O> HeartbeatManager<I,O> createHeartbeatManager(ResourceID resourceId, HeartbeatListener<I,O> heartbeatListener, org.apache.flink.util.concurrent.ScheduledExecutor mainThreadExecutor, org.slf4j.Logger log)
HeartbeatServicescreateHeartbeatManager in interface HeartbeatServicesI - 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)
HeartbeatServicescreateHeartbeatManagerSender in interface HeartbeatServicesI - 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 NoOpHeartbeatServices getInstance()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.