O - Type of the payload being sent to the associated heartbeat targetpublic class HeartbeatMonitorImpl<O> extends Object implements HeartbeatMonitor<O>, Runnable
HeartbeatMonitor.| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancel this monitor.
|
HeartbeatTarget<O> |
getHeartbeatTarget()
Gets heartbeat target.
|
ResourceID |
getHeartbeatTargetId()
Gets heartbeat target id.
|
long |
getLastHeartbeat()
Gets the last heartbeat.
|
boolean |
isCanceled() |
void |
reportHeartbeat()
Report heartbeat from the monitored target.
|
void |
reportHeartbeatRpcFailure()
Reports that the heartbeat rpc could not be sent to the target.
|
void |
reportHeartbeatRpcSuccess()
Reports that the heartbeat rpc could be sent to the target.
|
void |
run() |
public HeartbeatTarget<O> getHeartbeatTarget()
HeartbeatMonitorgetHeartbeatTarget in interface HeartbeatMonitor<O>public ResourceID getHeartbeatTargetId()
HeartbeatMonitorgetHeartbeatTargetId in interface HeartbeatMonitor<O>public long getLastHeartbeat()
HeartbeatMonitorgetLastHeartbeat in interface HeartbeatMonitor<O>public void reportHeartbeatRpcFailure()
HeartbeatMonitorreportHeartbeatRpcFailure in interface HeartbeatMonitor<O>public void reportHeartbeatRpcSuccess()
HeartbeatMonitorreportHeartbeatRpcSuccess in interface HeartbeatMonitor<O>public void reportHeartbeat()
HeartbeatMonitorreportHeartbeat in interface HeartbeatMonitor<O>public void cancel()
HeartbeatMonitorcancel in interface HeartbeatMonitor<O>public boolean isCanceled()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.