Class QuorumLostEvent
java.lang.Object
java.util.EventObject
org.springframework.geode.distributed.event.MembershipEvent<QuorumLostEvent>
org.springframework.geode.distributed.event.support.QuorumLostEvent
- All Implemented Interfaces:
Serializable
QuorumLostEvent is fired for the losing side of the DistributedSystem when
a network partition occurs.- Since:
- 1.3.0
- See Also:
-
DistributedMemberDistributedSystemMembershipEvent- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.geode.distributed.event.MembershipEvent
MembershipEvent.Type -
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionQuorumLostEvent(org.apache.geode.distributed.internal.DistributionManager distributionManager) Constructs a new instance ofQuorumLostEventinitialized with the givenDistributionManager. -
Method Summary
Modifier and TypeMethodDescriptionIterable<? extends org.apache.geode.distributed.DistributedMember>Gets the configuredIterableof failedpeer membersin theDistributedSystemthat are on the losing side of a network partition.Iterable<? extends org.apache.geode.distributed.DistributedMember>Gets the configuredIterableof remainingpeer membersin theDistributedSystemthat are on the winning side of a network partition.final MembershipEvent.TypegetType()Returns theMembershipEvent.Typeof thisMembershipEvent, such asMembershipEvent.Type.MEMBER_JOINED.withFailedMembers(Iterable<? extends org.apache.geode.distributed.DistributedMember> failedMembers) Null-safe builder method used to configure anIterableof failingpeer membersin theDistributedSystemon the losing side of a network partition.withFailedMembers(org.apache.geode.distributed.DistributedMember... failedMembers) Null-safe builder method used to configure an array of failingpeer membersin theDistributedSystemon the losing side of a network partition.withRemainingMembers(Iterable<? extends org.apache.geode.distributed.DistributedMember> remainingMembers) Null-safe builder method used to configure anIterableof remainingpeer membersin theDistributedSystemon the winning side of a network partition.withRemainingMembers(org.apache.geode.distributed.DistributedMember... remainingMembers) Null-safe builder method used to configure an array of remainingpeer membersin theDistributedSystemon the winning side of a network partition.Methods inherited from class org.springframework.geode.distributed.event.MembershipEvent
assertNotNull, getCache, getDistributedMember, getDistributedSystem, getDistributionManager, withMemberMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
QuorumLostEvent
public QuorumLostEvent(org.apache.geode.distributed.internal.DistributionManager distributionManager) Constructs a new instance ofQuorumLostEventinitialized with the givenDistributionManager.- Parameters:
distributionManager-DistributionManagerused as thesourceof this event; must not be null.- Throws:
IllegalArgumentException- ifDistributionManageris null.- See Also:
-
DistributionManager
-
-
Method Details
-
getFailedMembers
Gets the configuredIterableof failedpeer membersin theDistributedSystemthat are on the losing side of a network partition.- Returns:
- an
Iterableof failedpeer members; never null. - See Also:
-
DistributedMembergetRemainingMembers()Iterable
-
getRemainingMembers
Gets the configuredIterableof remainingpeer membersin theDistributedSystemthat are on the winning side of a network partition.- Returns:
- an
Iterableof remainingpeer members; never null. - See Also:
-
DistributedMembergetFailedMembers()Iterable
-
withFailedMembers
public QuorumLostEvent withFailedMembers(org.apache.geode.distributed.DistributedMember... failedMembers) Null-safe builder method used to configure an array of failingpeer membersin theDistributedSystemon the losing side of a network partition.- Parameters:
failedMembers- array of failedpeer members; may be null.- Returns:
- this
QuorumLostEvent. - See Also:
-
DistributedMemberwithFailedMembers(Iterable)getFailedMembers()
-
withFailedMembers
public QuorumLostEvent withFailedMembers(Iterable<? extends org.apache.geode.distributed.DistributedMember> failedMembers) Null-safe builder method used to configure anIterableof failingpeer membersin theDistributedSystemon the losing side of a network partition.- Parameters:
failedMembers-Iterableof failedpeer members; may be null.- Returns:
- this
QuorumLostEvent. - See Also:
-
DistributedMembergetFailedMembers()Iterable
-
withRemainingMembers
public QuorumLostEvent withRemainingMembers(org.apache.geode.distributed.DistributedMember... remainingMembers) Null-safe builder method used to configure an array of remainingpeer membersin theDistributedSystemon the winning side of a network partition.- Parameters:
remainingMembers- array of remainingpeer members; may be null.- Returns:
- this
QuorumLostEvent. - See Also:
-
DistributedMemberwithRemainingMembers(Iterable)getRemainingMembers()
-
withRemainingMembers
public QuorumLostEvent withRemainingMembers(Iterable<? extends org.apache.geode.distributed.DistributedMember> remainingMembers) Null-safe builder method used to configure anIterableof remainingpeer membersin theDistributedSystemon the winning side of a network partition.- Parameters:
remainingMembers-Iterableof remainingpeer members; may be null.- Returns:
- this
QuorumLostEvent. - See Also:
-
DistributedMembergetRemainingMembers()Iterable
-
getType
Description copied from class:MembershipEventReturns theMembershipEvent.Typeof thisMembershipEvent, such asMembershipEvent.Type.MEMBER_JOINED.- Overrides:
getTypein classMembershipEvent<QuorumLostEvent>- Returns:
- the
MembershipEvent.Type.
-