final class CurrentClusterState extends Product5[SortedSet[Member], Set[Member], Set[Address], Option[Address], Map[String, Option[Address]]] with Serializable
Current snapshot state of the cluster. Sent to new subscriber.
- Annotations
- @SerialVersionUID()
- Source
- ClusterEvent.scala
- Alphabetic
- By Inheritance
- CurrentClusterState
- Serializable
- Serializable
- Product5
- Product
- Equals
- AnyRef
- Any
- by CollectionsHaveToParArray
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new CurrentClusterState(members: SortedSet[Member] = immutable.SortedSet.empty, unreachable: Set[Member] = Set.empty, seenBy: Set[Address] = Set.empty, leader: Option[Address] = None, roleLeaderMap: Map[String, Option[Address]] = Map.empty)
-
new
CurrentClusterState(members: SortedSet[Member], unreachable: Set[Member], seenBy: Set[Address], leader: Option[Address], roleLeaderMap: Map[String, Option[Address]], unreachableDataCenters: Set[DataCenter])
- leader
leader of the data center of this node
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from CurrentClusterState to any2stringadd[CurrentClusterState] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (CurrentClusterState, B)
- Implicit
- This member is added by an implicit conversion from CurrentClusterState to ArrowAssoc[CurrentClusterState] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
_1: SortedSet[Member]
- Definition Classes
- CurrentClusterState → Product5
-
def
_2: Set[Member]
- Definition Classes
- CurrentClusterState → Product5
-
def
_3: Set[Address]
- Definition Classes
- CurrentClusterState → Product5
-
def
_4: Option[Address]
- Definition Classes
- CurrentClusterState → Product5
-
def
_5: Map[String, Option[Address]]
- Definition Classes
- CurrentClusterState → Product5
-
def
allDataCenters: Set[String]
All data centers in the cluster
-
def
allRoles: Set[String]
All node roles in the cluster
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
canEqual(that: Any): Boolean
- Definition Classes
- CurrentClusterState → Equals
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
- def copy(members: SortedSet[Member] = this.members, unreachable: Set[Member] = this.unreachable, seenBy: Set[Address] = this.seenBy, leader: Option[Address] = this.leader, roleLeaderMap: Map[String, Option[Address]] = this.roleLeaderMap): CurrentClusterState
-
def
ensuring(cond: (CurrentClusterState) ⇒ Boolean, msg: ⇒ Any): CurrentClusterState
- Implicit
- This member is added by an implicit conversion from CurrentClusterState to Ensuring[CurrentClusterState] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (CurrentClusterState) ⇒ Boolean): CurrentClusterState
- Implicit
- This member is added by an implicit conversion from CurrentClusterState to Ensuring[CurrentClusterState] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): CurrentClusterState
- Implicit
- This member is added by an implicit conversion from CurrentClusterState to Ensuring[CurrentClusterState] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): CurrentClusterState
- Implicit
- This member is added by an implicit conversion from CurrentClusterState to Ensuring[CurrentClusterState] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
- Definition Classes
- CurrentClusterState → Equals → AnyRef → Any
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from CurrentClusterState to StringFormat[CurrentClusterState] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
def
getAllDataCenters: Set[String]
Java API: All data centers in the cluster
Java API: All data centers in the cluster
- Annotations
- @silent()
-
def
getAllRoles: Set[String]
Java API: All node roles in the cluster
Java API: All node roles in the cluster
- Annotations
- @silent()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
getLeader: Address
Java API: get address of current data center leader, or null if none
-
def
getMembers: Iterable[Member]
Java API: get current member list.
-
def
getRoleLeader(role: String): Address
Java API: get address of current leader, if any, within the data center that has the given role or null if no such node exists
-
def
getSeenBy: Set[Address]
Java API: get current “seen-by” set.
Java API: get current “seen-by” set.
- Annotations
- @silent()
-
def
getUnreachable: Set[Member]
Java API: get current unreachable set.
Java API: get current unreachable set.
- Annotations
- @silent()
-
def
getUnreachableDataCenters: Set[String]
Java API: All data centers in the cluster
Java API: All data centers in the cluster
- Annotations
- @silent()
-
def
hashCode(): Int
- Definition Classes
- CurrentClusterState → AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val leader: Option[Address]
- val members: SortedSet[Member]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
productArity: Int
- Definition Classes
- Product5 → Product
-
def
productElement(n: Int): Any
- Definition Classes
- Product5 → Product
- Annotations
- @throws( ... )
-
def
productIterator: Iterator[Any]
- Definition Classes
- Product
-
def
productPrefix: String
- Definition Classes
- CurrentClusterState → Product
-
def
roleLeader(role: String): Option[Address]
get address of current leader, if any, within the data center that has the given role
- val roleLeaderMap: Map[String, Option[Address]]
- val seenBy: Set[Address]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toParArray: ParArray[T]
- Implicit
- This member is added by an implicit conversion from CurrentClusterState to CollectionsHaveToParArray[CurrentClusterState, T] performed by method CollectionsHaveToParArray in scala.collection.parallel. This conversion will take place only if an implicit value of type (CurrentClusterState) ⇒ GenTraversableOnce[T] is in scope.
- Definition Classes
- CollectionsHaveToParArray
-
def
toString(): String
- Definition Classes
- CurrentClusterState → AnyRef → Any
- val unreachable: Set[Member]
- val unreachableDataCenters: Set[DataCenter]
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withUnreachableDataCenters(unreachableDataCenters: Set[DataCenter]): CurrentClusterState
Replace the set of unreachable datacenters with the given set
-
def
→[B](y: B): (CurrentClusterState, B)
- Implicit
- This member is added by an implicit conversion from CurrentClusterState to ArrowAssoc[CurrentClusterState] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc