public class QuorumLostEvent extends MembershipEvent<QuorumLostEvent>
QuorumLostEvent
is fired for the losing side of the DistributedSystem
when
a network partition occurs.DistributedMember
,
DistributedSystem
,
MembershipEvent
,
Serialized FormMembershipEvent.Type
Constructor and Description |
---|
QuorumLostEvent(org.apache.geode.distributed.internal.DistributionManager distributionManager)
Constructs a new instance of
QuorumLostEvent initialized with the given DistributionManager . |
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<? extends org.apache.geode.distributed.DistributedMember> |
getFailedMembers()
Gets the configured
Iterable of failed peer members
in the DistributedSystem that are on the losing side of a network partition. |
java.lang.Iterable<? extends org.apache.geode.distributed.DistributedMember> |
getRemainingMembers()
Gets the configured
Iterable of remaining peer members
in the DistributedSystem that are on the winning side of a network partition. |
MembershipEvent.Type |
getType()
Returns the
MembershipEvent.Type of this MembershipEvent , such as MembershipEvent.Type.MEMBER_JOINED . |
QuorumLostEvent |
withFailedMembers(org.apache.geode.distributed.DistributedMember... failedMembers)
Null-safe builder method used to configure an array of failing
peer members
in the DistributedSystem on the losing side of a network partition. |
QuorumLostEvent |
withFailedMembers(java.lang.Iterable<? extends org.apache.geode.distributed.DistributedMember> failedMembers)
Null-safe builder method used to configure an
Iterable of failing peer members
in the DistributedSystem on the losing side of a network partition. |
QuorumLostEvent |
withRemainingMembers(org.apache.geode.distributed.DistributedMember... remainingMembers)
Null-safe builder method used to configure an array of remaining
peer members
in the DistributedSystem on the winning side of a network partition. |
QuorumLostEvent |
withRemainingMembers(java.lang.Iterable<? extends org.apache.geode.distributed.DistributedMember> remainingMembers)
Null-safe builder method used to configure an
Iterable of remaining peer members
in the DistributedSystem on the winning side of a network partition. |
assertNotNull, getCache, getDistributedMember, getDistributedSystem, getDistributionManager, withMember
public QuorumLostEvent(org.apache.geode.distributed.internal.DistributionManager distributionManager)
QuorumLostEvent
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.DistributionManager
public java.lang.Iterable<? extends org.apache.geode.distributed.DistributedMember> getFailedMembers()
Iterable
of failed peer members
in the DistributedSystem
that are on the losing side of a network partition.Iterable
of failed peer members
; never null.DistributedMember
,
getRemainingMembers()
,
Iterable
public java.lang.Iterable<? extends org.apache.geode.distributed.DistributedMember> getRemainingMembers()
Iterable
of remaining peer members
in the DistributedSystem
that are on the winning side of a network partition.Iterable
of remaining peer members
; never null.DistributedMember
,
getFailedMembers()
,
Iterable
public QuorumLostEvent withFailedMembers(org.apache.geode.distributed.DistributedMember... failedMembers)
peer members
in the DistributedSystem
on the losing side of a network partition.failedMembers
- array of failed peer members
; may be null.QuorumLostEvent
.DistributedMember
,
withFailedMembers(Iterable)
,
getFailedMembers()
public QuorumLostEvent withFailedMembers(java.lang.Iterable<? extends org.apache.geode.distributed.DistributedMember> failedMembers)
Iterable
of failing peer members
in the DistributedSystem
on the losing side of a network partition.failedMembers
- Iterable
of failed peer members
; may be null.QuorumLostEvent
.DistributedMember
,
getFailedMembers()
,
Iterable
public QuorumLostEvent withRemainingMembers(org.apache.geode.distributed.DistributedMember... remainingMembers)
peer members
in the DistributedSystem
on the winning side of a network partition.remainingMembers
- array of remaining peer members
; may be null.QuorumLostEvent
.DistributedMember
,
withRemainingMembers(Iterable)
,
getRemainingMembers()
public QuorumLostEvent withRemainingMembers(java.lang.Iterable<? extends org.apache.geode.distributed.DistributedMember> remainingMembers)
Iterable
of remaining peer members
in the DistributedSystem
on the winning side of a network partition.remainingMembers
- Iterable
of remaining peer members
;
may be null.QuorumLostEvent
.DistributedMember
,
getRemainingMembers()
,
Iterable
public final MembershipEvent.Type getType()
MembershipEvent
MembershipEvent.Type
of this MembershipEvent
, such as MembershipEvent.Type.MEMBER_JOINED
.getType
in class MembershipEvent<QuorumLostEvent>
MembershipEvent.Type
.