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)
HazelcastInstanceAware
setHazelcastInstance
in interface HazelcastInstanceAware
hazelcastInstance
- the HazelcastInstance referencepublic void onPingLost(Member member)
PingAware
QuorumFunction
of ping loss.onPingLost
in interface PingAware
member
- member which was not pinged successfullypublic void onPingRestored(Member member)
PingAware
QuorumFunction
of a successful ping after one or more pings to that member were lost.onPingRestored
in interface PingAware
member
- member which was pinged successfullyprotected boolean isAlivePerIcmp(Member member)
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.