public class AbstractPingAwareQuorumFunction extends Object implements PingAware, HazelcastInstanceAware
| Modifier and Type | Field and Description |
|---|---|
protected Cluster |
cluster |
protected PingFailureDetector<Member> |
pingFailureDetector |
protected boolean |
pingFDEnabled |
| Constructor and Description |
|---|
AbstractPingAwareQuorumFunction() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isAlivePerIcmp(Member member) |
void |
onPingLost(Member member)
Notifies the
QuorumFunction of ping loss. |
void |
onPingRestored(Member member)
Notifies the
QuorumFunction of a successful ping after one or more pings to that member were lost. |
void |
setHazelcastInstance(HazelcastInstance hazelcastInstance)
Gets the HazelcastInstance reference when submitting a Runnable/Callable using Hazelcast ExecutorService.
|
protected boolean pingFDEnabled
protected PingFailureDetector<Member> pingFailureDetector
protected Cluster cluster
public void setHazelcastInstance(HazelcastInstance hazelcastInstance)
HazelcastInstanceAwaresetHazelcastInstance in interface HazelcastInstanceAwarehazelcastInstance - the HazelcastInstance referencepublic void onPingLost(Member member)
PingAwareQuorumFunction of ping loss.onPingLost in interface PingAwaremember - member which was not pinged successfullypublic void onPingRestored(Member member)
PingAwareQuorumFunction of a successful ping after one or more pings to that member were lost.onPingRestored in interface PingAwaremember - member which was pinged successfullyprotected boolean isAlivePerIcmp(Member member)
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.