Package org.onosproject.cluster
Class MembershipGroup
- java.lang.Object
-
- org.onosproject.cluster.MembershipGroup
-
public class MembershipGroup extends java.lang.Object
Membership group.
-
-
Constructor Summary
Constructors Constructor Description MembershipGroup(Version version, java.util.Set<Member> members)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<Member>
members()
Returns the set of members in the group.java.lang.String
toString()
Version
version()
Returns the group version.
-
-
-
Method Detail
-
version
public Version version()
Returns the group version.- Returns:
- the group version
-
members
public java.util.Set<Member> members()
Returns the set of members in the group.- Returns:
- the set of members in the group
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-