remove old deprecated cluster metrics, #21423
* corresponding was moved to akka-cluster-metrics, see http://doc.akka.io/docs/akka/2.4/project/migration-guide-2.3.x-2.4.x.html#New_Cluster_Metrics_Extension
This commit is contained in:
parent
6aa67703a8
commit
452b3f1406
43 changed files with 107 additions and 7797 deletions
|
|
@ -125,8 +125,6 @@ private[cluster] object InternalClusterAction {
|
|||
|
||||
case object ReapUnreachableTick extends Tick
|
||||
|
||||
case object MetricsTick extends Tick
|
||||
|
||||
case object LeaderActionsTick extends Tick
|
||||
|
||||
case object PublishStatsTick extends Tick
|
||||
|
|
@ -135,8 +133,6 @@ private[cluster] object InternalClusterAction {
|
|||
|
||||
case object GetClusterCoreRef
|
||||
|
||||
final case class PublisherCreated(publisher: ActorRef)
|
||||
|
||||
/**
|
||||
* Command to [[akka.cluster.ClusterDaemon]] to create a
|
||||
* [[akka.cluster.OnMemberStatusChangedListener]].
|
||||
|
|
@ -217,13 +213,6 @@ private[cluster] final class ClusterDaemon(settings: ClusterSettings) extends Ac
|
|||
context.actorOf(Props(classOf[OnMemberStatusChangedListener], code, Up).withDeploy(Deploy.local))
|
||||
case AddOnMemberRemovedListener(code) ⇒
|
||||
context.actorOf(Props(classOf[OnMemberStatusChangedListener], code, Removed).withDeploy(Deploy.local))
|
||||
case PublisherCreated(publisher) ⇒
|
||||
if (settings.MetricsEnabled) {
|
||||
// metrics must be started after core/publisher to be able
|
||||
// to inject the publisher ref to the ClusterMetricsCollector
|
||||
context.actorOf(Props(classOf[ClusterMetricsCollector], publisher).
|
||||
withDispatcher(context.props.dispatcher), name = "metrics")
|
||||
}
|
||||
case CoordinatedShutdownLeave.LeaveReq ⇒
|
||||
val ref = context.actorOf(CoordinatedShutdownLeave.props().withDispatcher(context.props.dispatcher))
|
||||
// forward the ask request
|
||||
|
|
@ -254,7 +243,6 @@ private[cluster] final class ClusterCoreSupervisor extends Actor with ActorLoggi
|
|||
withDispatcher(context.props.dispatcher), name = "publisher")
|
||||
coreDaemon = Some(context.watch(context.actorOf(Props(classOf[ClusterCoreDaemon], publisher).
|
||||
withDispatcher(context.props.dispatcher), name = "daemon")))
|
||||
context.parent ! PublisherCreated(publisher)
|
||||
}
|
||||
|
||||
override val supervisorStrategy =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue