public class MemberSuspectEvent extends MembershipEvent<MemberSuspectEvent>
MembershipEvent fired when a DistributedMember of the DistributedSystem is suspected
of being unresponsive to other peer members in the cluster.DistributedMember,
DistributedSystem,
MembershipEvent,
Serialized FormMembershipEvent.Type| Constructor and Description |
|---|
MemberSuspectEvent(org.apache.geode.distributed.internal.DistributionManager distributionManager)
Constructs a new instance of
MemberSuspectEvent initialized with the given DistributionManager. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.lang.String> |
getReason()
Returns an
Optional reason describing the suspicion of the peer member. |
java.util.Optional<org.apache.geode.distributed.DistributedMember> |
getSuspectMember()
|
MembershipEvent.Type |
getType()
Returns the
MembershipEvent.Type of this MembershipEvent, such as MembershipEvent.Type.MEMBER_JOINED. |
MemberSuspectEvent |
withReason(java.lang.String reason)
Builder method used to configure the
reason describing the suspicion of
the suspect member. |
MemberSuspectEvent |
withSuspect(org.apache.geode.distributed.DistributedMember suspectMember)
Builder method used to configure the
peer member that is the subject of the suspicion
MembershipEvent. |
assertNotNull, getCache, getDistributedMember, getDistributedSystem, getDistributionManager, withMemberpublic MemberSuspectEvent(org.apache.geode.distributed.internal.DistributionManager distributionManager)
MemberSuspectEvent initialized with the given DistributionManager.distributionManager - DistributionManager used as the source of this event;
must not be null.java.lang.IllegalArgumentException - if DistributionManager is null.DistributionManagerpublic java.util.Optional<java.lang.String> getReason()
Optional reason describing the suspicion of the peer member.Optional reason describing the suspicion of the peer member.Optionalpublic java.util.Optional<org.apache.geode.distributed.DistributedMember> getSuspectMember()
Optional DistributedMember identified as the suspect in the MembershipEvent.DistributedMember,
Optionalpublic MemberSuspectEvent withReason(java.lang.String reason)
reason describing the suspicion of
the suspect member.reason - String describing the suspicion of the peer member;
may be null.MemberSuspectEvent.getReason()public MemberSuspectEvent withSuspect(org.apache.geode.distributed.DistributedMember suspectMember)
peer member that is the subject of the suspicion
MembershipEvent.suspectMember - peer member that is being suspected; may be null.MemberSuspectEvent.getSuspectMember()public final MembershipEvent.Type getType()
MembershipEventMembershipEvent.Type of this MembershipEvent, such as MembershipEvent.Type.MEMBER_JOINED.getType in class MembershipEvent<MemberSuspectEvent>MembershipEvent.Type.