Package org.apache.catalina.tribes.group
Class AbsoluteOrder
java.lang.Object
org.apache.catalina.tribes.group.AbsoluteOrder
Title: Membership - Absolute Order
Description: A simple, yet agreeable and efficient way of ordering members
Ordering members can serve as a basis for electing a leader or coordinating efforts.
This is stinky simple, it works on the basis of the Member
interface and orders members in the following
format:
- IP comparison - byte by byte, lower byte higher rank
- IPv4 addresses rank higher than IPv6, ie the lesser number of bytes, the higher rank
- Port comparison - lower port, higher rank
- UniqueId comparison- byte by byte, lower byte higher rank
- See Also:
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
absoluteOrder
(List<Member> members) static void
absoluteOrder
(Member[] members)
-
Field Details
-
comp
-
-
Constructor Details
-
AbsoluteOrder
protected AbsoluteOrder()
-
-
Method Details
-
absoluteOrder
-
absoluteOrder
-