public abstract class AbstractPingAwareQuorumFunction extends Object implements PingAware, HazelcastInstanceAware, MembershipListener
Constructor and Description |
---|
AbstractPingAwareQuorumFunction() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isAlivePerIcmp(Member member) |
void |
memberAdded(MembershipEvent membershipEvent)
Invoked when a new member is added to the cluster.
|
void |
memberAttributeChanged(MemberAttributeEvent memberAttributeEvent)
Invoked when an attribute of a member was changed.
|
void |
memberRemoved(MembershipEvent membershipEvent)
Invoked when an existing member leaves the cluster.
|
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.
|
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 successfullypublic void memberAdded(MembershipEvent membershipEvent)
MembershipListener
memberAdded
in interface MembershipListener
membershipEvent
- membership eventpublic void memberAttributeChanged(MemberAttributeEvent memberAttributeEvent)
MembershipListener
memberAttributeChanged
in interface MembershipListener
memberAttributeEvent
- member attribute event when an attribute of a member was changedpublic void memberRemoved(MembershipEvent membershipEvent)
MembershipListener
memberRemoved
in interface MembershipListener
membershipEvent
- membership event when an existing member leaves the clusterprotected boolean isAlivePerIcmp(Member member)
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.