org.apache.pekko.cluster

Members list

Type members

Classlikes

Cluster Extension Id and factory for creating Cluster extension.

Cluster Extension Id and factory for creating Cluster extension.

Attributes

Companion
class
Source
Cluster.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Cluster.type
class Cluster(val system: ExtendedActorSystem) extends Extension

This module is responsible cluster membership information. Changes to the cluster information is retrieved through subscribe. Commands to operate the cluster is available through methods in this class, such as join, down and leave.

This module is responsible cluster membership information. Changes to the cluster information is retrieved through subscribe. Commands to operate the cluster is available through methods in this class, such as join, down and leave.

Each cluster Member is identified by its pekko.actor.Address, and the cluster address of this actor system is selfAddress. A member also has a status; initially MemberStatus Joining followed by MemberStatus Up.

Attributes

Companion
object
Source
Cluster.scala
Supertypes
trait Extension
class Object
trait Matchable
class Any
object ClusterEvent

Domain events published to the event bus. Subscribe with:

Domain events published to the event bus. Subscribe with:

 Cluster(system).subscribe(actorRef, classOf[ClusterDomainEvent])

Attributes

Source
ClusterEvent.scala
Supertypes
class Object
trait Matchable
class Any
Self type

This is public with the purpose to document the used markers and properties of log events. No guarantee that it will remain binary compatible, but the marker names and properties are considered public API and will not be changed without notice.

This is public with the purpose to document the used markers and properties of log events. No guarantee that it will remain binary compatible, but the marker names and properties are considered public API and will not be changed without notice.

Attributes

Source
ClusterLogMarker.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Base trait for all cluster messages. All ClusterMessage's are serializable.

Base trait for all cluster messages. All ClusterMessage's are serializable.

Attributes

Source
ClusterDaemon.scala
Supertypes
trait Serializable
class Object
trait Matchable
class Any

Interface for the cluster JMX MBean.

Interface for the cluster JMX MBean.

Attributes

Source
ClusterJmx.scala
Supertypes
class Object
trait Matchable
class Any
abstract class ClusterScope extends Scope

Attributes

Companion
object
Source
ClusterActorRefProvider.scala
Supertypes
trait Scope
class Object
trait Matchable
class Any
Known subtypes
object ClusterScope
case object ClusterScope extends ClusterScope

Cluster aware scope of a pekko.actor.Deploy

Cluster aware scope of a pekko.actor.Deploy

Attributes

Companion
class
Source
ClusterActorRefProvider.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class ClusterScope
trait Scope
class Object
trait Matchable
class Any
Show all
Self type

Attributes

Companion
class
Source
ClusterSettings.scala
Supertypes
class Object
trait Matchable
class Any
Self type
final class ClusterSettings(val config: Config, val systemName: String)

Attributes

Companion
object
Source
ClusterSettings.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Source
JoinConfigCompatChecker.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Invalid
object Valid
abstract class DowningProvider

API for plugins that will handle downing of cluster nodes. Concrete plugins must subclass and have a public one argument constructor accepting an pekko.actor.ActorSystem.

API for plugins that will handle downing of cluster nodes. Concrete plugins must subclass and have a public one argument constructor accepting an pekko.actor.ActorSystem.

A custom DowningProvider can be configured with pekko.cluster.downing-provider-class

When implementing a downing provider you should make sure that it will not split the cluster into several separate clusters in case of network problems or system overload (long GC pauses). This is much more difficult than it might be perceived at first, so carefully read the concerns and scenarios described in https://pekko.apache.org/docs/pekko/current/split-brain-resolver.html

Attributes

Source
DowningProvider.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Source
Gossip.scala
Supertypes
class Object
trait Matchable
class Any
Self type
final case class Invalid(errorMessages: Seq[String]) extends ConfigValidation

Attributes

Source
JoinConfigCompatChecker.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

INTERNAL API

INTERNAL API

Attributes

Source
JoinConfigCompatCheckCluster.scala
Supertypes
class Object
trait Matchable
class Any
abstract class JoinConfigCompatChecker

Attributes

Companion
object
Source
JoinConfigCompatChecker.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
class
Source
JoinConfigCompatChecker.scala
Supertypes
class Object
trait Matchable
class Any
Self type
class Member extends Serializable

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

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.

Attributes

Companion
object
Source
Member.scala
Supertypes
trait Serializable
class Object
trait Matchable
class Any
object Member

Module with factory and ordering methods for Member instances.

Module with factory and ordering methods for Member instances.

Attributes

Companion
class
Source
Member.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Member.type
sealed abstract class MemberStatus

Defines the current status of a cluster member node

Defines the current status of a cluster member node

Can be one of: Joining, WeaklyUp, Up, Leaving, Exiting and Down and Removed.

Attributes

Companion
object
Source
Member.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Down
object Exiting
object Joining
object Leaving
object Removed
object Up
object WeaklyUp
Show all
object MemberStatus

Attributes

Companion
class
Source
Member.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
final class NoDowning(system: ActorSystem) extends DowningProvider

Default downing provider used when no provider is configured.

Default downing provider used when no provider is configured.

Attributes

Source
DowningProvider.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion
class
Source
Member.scala
Supertypes
trait (Address, Int) => UniqueAddress
class Object
trait Matchable
class Any
Self type
final class UniqueAddress(val address: Address, val longUid: Long) extends Product, Serializable, Ordered[UniqueAddress]

Member identifier consisting of address and random uid. The uid is needed to be able to distinguish different incarnations of a member with same hostname and port.

Member identifier consisting of address and random uid. The uid is needed to be able to distinguish different incarnations of a member with same hostname and port.

Attributes

Companion
object
Source
Member.scala
Supertypes
trait Comparable[UniqueAddress]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case object Valid extends ConfigValidation

Attributes

Source
JoinConfigCompatChecker.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Valid.type
final case class VectorClock(versions: TreeMap[Node, Long] = ...)

Representation of a Vector-based clock (counting clock), inspired by Lamport logical clocks.

Representation of a Vector-based clock (counting clock), inspired by Lamport logical clocks.

Reference:
  1) Leslie Lamport (1978). "Time, clocks, and the ordering of events in a distributed system". Communications of the ACM 21 (7): 558-565.
  2) Friedemann Mattern (1988). "Virtual Time and Global States of Distributed Systems". Workshop on Parallel and Distributed Algorithms: pp. 215-226

Based on code from the 'vlock' VectorClock library by Coda Hale.

Attributes

Source
VectorClock.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all