Packages

class Member extends Serializable

Represents the address, current status, and roles of a cluster member node.

Note: hashCode and equals are solely based on the underlying Address, not its MemberStatus and roles.

Annotations
@SerialVersionUID()
Source
Member.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Member
  2. Serializable
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def address: Address
  2. val appVersion: util.Version
  3. def copy(status: MemberStatus): Member
  4. def copyUp(upNumber: Int): Member
  5. lazy val dataCenter: DataCenter
  6. def equals(other: Any): Boolean
    Definition Classes
    Member → AnyRef → Any
  7. def getRoles: Set[String]

    Java API

    Java API

    Annotations
    @nowarn()
  8. def hasRole(role: String): Boolean
  9. def hashCode(): Int
    Definition Classes
    Member → AnyRef → Any
  10. def isOlderThan(other: Member): Boolean

    Is this member older, has been part of cluster longer, than another member.

    Is this member older, has been part of cluster longer, than another member. It is only correct when comparing two existing members in a cluster. A member that joined after removal of another member may be considered older than the removed member.

    Note that it only makes sense to compare with other members of same data center (upNumber has a higher risk of being reused across data centers). To avoid mistakes of comparing members of different data centers this method will throw IllegalArgumentException if the members belong to different data centers.

    Annotations
    @throws("if members from different data centers")
  11. val roles: Set[String]
  12. val status: MemberStatus
  13. def toString(): String
    Definition Classes
    Member → AnyRef → Any
  14. val uniqueAddress: UniqueAddress