Package org.apache.catalina.tribes.group
Class AbsoluteOrder
- java.lang.Object
-
- org.apache.catalina.tribes.group.AbsoluteOrder
-
public class AbsoluteOrder extends java.lang.Object
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 theMember
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
- Version:
- 1.0
- See Also:
Member
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbsoluteOrder.AbsoluteComparator
-
Field Summary
Fields Modifier and Type Field Description static AbsoluteOrder.AbsoluteComparator
comp
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbsoluteOrder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
absoluteOrder(java.util.List<Member> members)
static void
absoluteOrder(Member[] members)
-
-
-
Field Detail
-
comp
public static final AbsoluteOrder.AbsoluteComparator comp
-
-