| Line |
Stmt Id |
Pos |
Tree |
Symbol |
Tests |
Code |
|
47
|
34965
|
1835
-
1972
|
Apply
|
java.lang.Thread.setDefaultUncaughtExceptionHandler
|
|
java.lang.Thread.setDefaultUncaughtExceptionHandler(((thread: Thread, exception: Throwable) => MakeMain.this.logger.error(("Error in thread ".+(thread.getName()).+(":"): String), exception)))
|
|
48
|
42844
|
1906
-
1968
|
Apply
|
grizzled.slf4j.Logger.error
|
|
MakeMain.this.logger.error(("Error in thread ".+(thread.getName()).+(":"): String), exception)
|
|
51
|
47762
|
2013
-
2038
|
Apply
|
java.lang.System.getenv
|
|
java.lang.System.getenv("ENV_NAME")
|
|
51
|
40156
|
2006
-
2039
|
Apply
|
scala.Option.apply
|
|
scala.Option.apply[String](java.lang.System.getenv("ENV_NAME"))
|
|
53
|
33033
|
2070
-
2077
|
Select
|
org.make.api.MakeMain.envName
|
|
MakeMain.this.envName
|
|
54
|
49385
|
2109
-
2122
|
Select
|
scala.collection.StringOps.nonEmpty
|
|
scala.Predef.augmentString(name).nonEmpty
|
|
55
|
41260
|
2192
-
2218
|
Literal
|
<nosymbol>
|
|
"default-application.conf"
|
|
59
|
47463
|
2295
-
2327
|
Apply
|
com.typesafe.config.ConfigFactory.load
|
|
com.typesafe.config.ConfigFactory.load(MakeMain.this.resourceName)
|
|
59
|
33368
|
2314
-
2326
|
Select
|
org.make.api.MakeMain.resourceName
|
|
MakeMain.this.resourceName
|
|
60
|
43311
|
2356
-
2425
|
Apply
|
com.typesafe.config.Config.getString
|
|
defaultConfiguration.getString("make-api.secrets-configuration-path")
|
|
61
|
35003
|
2452
-
2480
|
Apply
|
java.nio.file.Paths.get
|
|
java.nio.file.Paths.get(configurationPath)
|
|
62
|
47801
|
2546
-
2581
|
Select
|
scala.Boolean.unary_!
|
|
java.nio.file.Files.isDirectory(extraConfigPath).unary_!
|
|
62
|
39919
|
2513
-
2581
|
Apply
|
scala.Boolean.&&
|
|
java.nio.file.Files.exists(extraConfigPath).&&(java.nio.file.Files.isDirectory(extraConfigPath).unary_!)
|
|
63
|
48830
|
2591
-
2683
|
Block
|
com.typesafe.config.Config.withFallback
|
|
com.typesafe.config.ConfigFactory.parseFile(extraConfigPath.toFile()).resolve().withFallback(defaultConfiguration)
|
|
63
|
33077
|
2591
-
2683
|
Apply
|
com.typesafe.config.Config.withFallback
|
|
com.typesafe.config.ConfigFactory.parseFile(extraConfigPath.toFile()).resolve().withFallback(defaultConfiguration)
|
|
65
|
41014
|
2703
-
2723
|
Ident
|
org.make.api.MakeMain.defaultConfiguration
|
|
defaultConfiguration
|
|
68
|
33412
|
2753
-
2821
|
Apply
|
com.typesafe.config.Config.getString
|
|
configWithSecrets.getString("akka.remote.artery.canonical.hostname")
|
|
69
|
47208
|
2856
-
2905
|
Apply
|
java.net.InetAddress.getHostAddress
|
|
java.net.InetAddress.getByName(bindAddress).getHostAddress()
|
|
74
|
39629
|
2911
-
3068
|
Apply
|
com.typesafe.config.Config.resolve
|
|
com.typesafe.config.ConfigFactory.parseMap(scala.jdk.CollectionConverters.MapHasAsJava[String, String](scala.Predef.Map.apply[String, String](scala.Predef.ArrowAssoc[String]("akka.remote.artery.canonical.hostname").->[String](resolvedAddress))).asJava).withFallback(configWithSecrets).resolve()
|
|
78
|
47553
|
3206
-
3216
|
Literal
|
<nosymbol>
|
|
"make-api"
|
|
78
|
32818
|
3159
-
3232
|
Apply
|
akka.actor.typed.ActorSystem.apply
|
|
akka.actor.typed.ActorSystem.apply[org.make.api.MakeGuardian.GuardianCommand](MakeGuardian.createBehavior(this), "make-api", MakeMain.this.configuration)
|
|
78
|
40719
|
3218
-
3231
|
Select
|
org.make.api.MakeMain.configuration
|
|
MakeMain.this.configuration
|
|
78
|
35198
|
3171
-
3204
|
Apply
|
org.make.api.MakeGuardian.createBehavior
|
|
MakeGuardian.createBehavior(this)
|
|
80
|
49890
|
3280
-
3301
|
Select
|
akka.actor.typed.ActorSystem.scheduler
|
|
MakeMain.this.actorSystem.scheduler
|
|
83
|
40465
|
3379
-
3379
|
Block
|
<nosymbol>
|
|
()
|
|
83
|
33152
|
3386
-
3427
|
Select
|
scala.Option.isEmpty
|
|
akka.cluster.typed.Cluster.apply(MakeMain.this.actorSystem).state.leader.isEmpty
|
|
83
|
34958
|
3435
-
3452
|
Block
|
<nosymbol>
|
|
{
java.lang.Thread.sleep(100L);
while$1()
}
|
|
83
|
48301
|
3379
-
3379
|
Literal
|
<nosymbol>
|
|
()
|
|
83
|
41752
|
3394
-
3405
|
Select
|
org.make.api.MakeMain.actorSystem
|
|
MakeMain.this.actorSystem
|
|
84
|
38357
|
3447
-
3447
|
Apply
|
org.make.api.MakeMain.while$1
|
|
while$1()
|
|
84
|
47245
|
3435
-
3452
|
Apply
|
java.lang.Thread.sleep
|
|
java.lang.Thread.sleep(100L)
|
|
87
|
32860
|
3471
-
3484
|
Select
|
org.make.api.MakeMain.configuration
|
|
MakeMain.this.configuration
|
|
87
|
49373
|
3460
-
3485
|
Apply
|
kamon.Init.init
|
|
kamon.Kamon.init(MakeMain.this.configuration)
|
|
89
|
41508
|
3555
-
3585
|
Select
|
org.make.api.extensions.DatabaseConfigurationExtension
|
|
org.make.api.extensions.DatabaseConfigurationExtension
|
|
89
|
33361
|
3525
-
3586
|
Apply
|
akka.actor.typed.Extensions.registerExtension
|
|
MakeMain.this.actorSystem.registerExtension[org.make.api.extensions.DatabaseConfigurationExtension](org.make.api.extensions.DatabaseConfigurationExtension)
|
|
90
|
46993
|
3589
-
3628
|
Apply
|
org.make.api.extensions.DatabaseConfiguration.migrateDatabase
|
|
MakeMain.this.databaseConfiguration.migrateDatabase()
|
|
92
|
39416
|
3645
-
3677
|
Apply
|
org.make.api.technical.elasticsearch.ElasticsearchClient.initialize
|
|
MakeMain.this.elasticsearchClient.initialize()
|
|
92
|
39915
|
3632
-
3690
|
Apply
|
scala.concurrent.Await.result
|
|
scala.concurrent.Await.result[Unit](MakeMain.this.elasticsearchClient.initialize(), scala.concurrent.duration.`package`.DurationInt(10).seconds)
|
|
92
|
48058
|
3679
-
3689
|
Select
|
scala.concurrent.duration.DurationConversions.seconds
|
|
scala.concurrent.duration.`package`.DurationInt(10).seconds
|
|
92
|
34993
|
3679
-
3681
|
Literal
|
<nosymbol>
|
|
10
|
|
94
|
45411
|
3727
-
3729
|
Literal
|
<nosymbol>
|
|
10
|
|
94
|
41546
|
3727
-
3737
|
Select
|
scala.concurrent.duration.DurationConversions.seconds
|
|
scala.concurrent.duration.`package`.DurationInt(10).seconds
|
|
94
|
32903
|
3707
-
3725
|
Apply
|
org.make.swift.SwiftClient.init
|
|
MakeMain.this.swiftClient.init()
|
|
94
|
34428
|
3694
-
3738
|
Apply
|
scala.concurrent.Await.result
|
|
scala.concurrent.Await.result[Unit](MakeMain.this.swiftClient.init(), scala.concurrent.duration.`package`.DurationInt(10).seconds)
|
|
96
|
38913
|
3769
-
3779
|
Select
|
org.make.api.MakeGuardian.Initialize
|
|
org.make.api.MakeGuardian.Initialize
|
|
96
|
39950
|
3755
-
3779
|
ApplyToImplicitArgs
|
akka.actor.typed.scaladsl.AskPattern.Askable.?
|
|
akka.actor.typed.scaladsl.AskPattern.Askable[org.make.api.MakeGuardian.GuardianCommand](MakeMain.this.actorSystem).?[org.make.api.MakeGuardian.Initialized.type](org.make.api.MakeGuardian.Initialize)(MakeMain.this.timeout, MakeMain.this.scheduler)
|
|
96
|
32049
|
3790
-
3791
|
Literal
|
<nosymbol>
|
|
5
|
|
96
|
41299
|
3742
-
3800
|
Apply
|
scala.concurrent.Await.result
|
|
scala.concurrent.Await.result[org.make.api.MakeGuardian.Initialized.type](akka.actor.typed.scaladsl.AskPattern.Askable[org.make.api.MakeGuardian.GuardianCommand](MakeMain.this.actorSystem).?[org.make.api.MakeGuardian.Initialized.type](org.make.api.MakeGuardian.Initialize)(MakeMain.this.timeout, MakeMain.this.scheduler), scala.concurrent.duration.`package`.DurationInt(5).seconds)
|
|
96
|
47543
|
3767
-
3767
|
Select
|
org.make.api.MakeMain.scheduler
|
|
MakeMain.this.scheduler
|
|
96
|
46451
|
3755
-
3766
|
Select
|
org.make.api.MakeMain.actorSystem
|
|
MakeMain.this.actorSystem
|
|
96
|
34757
|
3767
-
3767
|
Select
|
org.make.api.MakeApi.timeout
|
|
MakeMain.this.timeout
|
|
96
|
45457
|
3790
-
3799
|
Select
|
scala.concurrent.duration.DurationConversions.seconds
|
|
scala.concurrent.duration.`package`.DurationInt(5).seconds
|
|
98
|
34789
|
3804
-
3884
|
Apply
|
akka.actor.typed.ActorSystem.systemActorOf
|
|
MakeMain.this.actorSystem.systemActorOf[org.make.api.technical.ClusterShardingMonitor.Protocol](org.make.api.technical.ClusterShardingMonitor.apply(), org.make.api.technical.ClusterShardingMonitor.name, MakeMain.this.actorSystem.systemActorOf$default$3[Nothing])
|
|
98
|
33147
|
3830
-
3854
|
Apply
|
org.make.api.technical.ClusterShardingMonitor.apply
|
|
org.make.api.technical.ClusterShardingMonitor.apply()
|
|
98
|
39372
|
3816
-
3816
|
TypeApply
|
akka.actor.typed.ActorSystem.systemActorOf$default$3
|
|
MakeMain.this.actorSystem.systemActorOf$default$3[Nothing]
|
|
98
|
46486
|
3856
-
3883
|
Select
|
org.make.api.technical.ClusterShardingMonitor.name
|
|
org.make.api.technical.ClusterShardingMonitor.name
|
|
99
|
45920
|
3887
-
3965
|
Apply
|
akka.actor.typed.ActorSystem.systemActorOf
|
|
MakeMain.this.actorSystem.systemActorOf[org.make.api.technical.MemoryMonitoringActor.Monitor.type](org.make.api.technical.MemoryMonitoringActor.apply(), org.make.api.technical.MemoryMonitoringActor.name, MakeMain.this.actorSystem.systemActorOf$default$3[Nothing])
|
|
99
|
48605
|
3913
-
3936
|
Apply
|
org.make.api.technical.MemoryMonitoringActor.apply
|
|
org.make.api.technical.MemoryMonitoringActor.apply()
|
|
99
|
32855
|
3899
-
3899
|
TypeApply
|
akka.actor.typed.ActorSystem.systemActorOf$default$3
|
|
MakeMain.this.actorSystem.systemActorOf$default$3[Nothing]
|
|
99
|
39706
|
3938
-
3964
|
Select
|
org.make.api.technical.MemoryMonitoringActor.name
|
|
org.make.api.technical.MemoryMonitoringActor.name
|
|
101
|
41341
|
4030
-
4057
|
Apply
|
org.make.api.extensions.ThreadPoolMonitoringActor.apply
|
|
org.make.api.extensions.ThreadPoolMonitoringActor.apply()
|
|
101
|
39412
|
4004
-
4090
|
Apply
|
akka.actor.typed.ActorSystem.systemActorOf
|
|
MakeMain.this.actorSystem.systemActorOf[org.make.api.extensions.ThreadPoolMonitoringActor.Protocol](org.make.api.extensions.ThreadPoolMonitoringActor.apply(), org.make.api.extensions.ThreadPoolMonitoringActor.name, MakeMain.this.actorSystem.systemActorOf$default$3[Nothing])
|
|
101
|
33188
|
4059
-
4089
|
Select
|
org.make.api.extensions.ThreadPoolMonitoringActor.name
|
|
org.make.api.extensions.ThreadPoolMonitoringActor.name
|
|
101
|
46241
|
4016
-
4016
|
TypeApply
|
akka.actor.typed.ActorSystem.systemActorOf$default$3
|
|
MakeMain.this.actorSystem.systemActorOf$default$3[Nothing]
|
|
102
|
32597
|
4113
-
4182
|
Apply
|
org.make.api.extensions.ThreadPoolMonitoringActor.MonitorThreadPool.apply
|
|
org.make.api.extensions.ThreadPoolMonitoringActor.MonitorThreadPool.apply(MakeMain.this.databaseConfiguration.readExecutor, "db-read-pool")
|
|
102
|
45959
|
4093
-
4182
|
Apply
|
akka.actor.typed.ActorRef.ActorRefOps.!
|
|
typed.this.ActorRef.ActorRefOps[org.make.api.extensions.ThreadPoolMonitoringActor.Protocol](MakeMain.this.threadPoolMonitor).!(org.make.api.extensions.ThreadPoolMonitoringActor.MonitorThreadPool.apply(MakeMain.this.databaseConfiguration.readExecutor, "db-read-pool"))
|
|
102
|
31520
|
4093
-
4110
|
Select
|
org.make.api.MakeMain.threadPoolMonitor
|
|
MakeMain.this.threadPoolMonitor
|
|
102
|
39743
|
4167
-
4181
|
Literal
|
<nosymbol>
|
|
"db-read-pool"
|
|
102
|
48645
|
4131
-
4165
|
Select
|
org.make.api.extensions.DatabaseConfiguration.readExecutor
|
|
MakeMain.this.databaseConfiguration.readExecutor
|
|
103
|
34262
|
4223
-
4258
|
Select
|
org.make.api.extensions.DatabaseConfiguration.writeExecutor
|
|
MakeMain.this.databaseConfiguration.writeExecutor
|
|
103
|
47032
|
4260
-
4275
|
Literal
|
<nosymbol>
|
|
"db-write-pool"
|
|
103
|
41532
|
4185
-
4202
|
Select
|
org.make.api.MakeMain.threadPoolMonitor
|
|
MakeMain.this.threadPoolMonitor
|
|
103
|
39163
|
4205
-
4276
|
Apply
|
org.make.api.extensions.ThreadPoolMonitoringActor.MonitorThreadPool.apply
|
|
org.make.api.extensions.ThreadPoolMonitoringActor.MonitorThreadPool.apply(MakeMain.this.databaseConfiguration.writeExecutor, "db-write-pool")
|
|
103
|
31563
|
4185
-
4276
|
Apply
|
akka.actor.typed.ActorRef.ActorRefOps.!
|
|
typed.this.ActorRef.ActorRefOps[org.make.api.extensions.ThreadPoolMonitoringActor.Protocol](MakeMain.this.threadPoolMonitor).!(org.make.api.extensions.ThreadPoolMonitoringActor.MonitorThreadPool.apply(MakeMain.this.databaseConfiguration.writeExecutor, "db-write-pool"))
|
|
105
|
40806
|
4303
-
4337
|
Apply
|
akka.actor.typed.ExtensionId.apply
|
|
org.make.api.extensions.MakeSettingsExtension.apply(MakeMain.this.actorSystem)
|
|
105
|
48081
|
4325
-
4336
|
Select
|
org.make.api.MakeMain.actorSystem
|
|
MakeMain.this.actorSystem
|
|
108
|
45713
|
4396
-
4451
|
Apply
|
org.make.api.user.UserService.getUserByEmail
|
|
MakeMain.this.userService.getUserByEmail(MakeMain.this.settings.defaultAdmin.email)
|
|
108
|
33693
|
4462
-
4472
|
Select
|
scala.concurrent.duration.DurationConversions.seconds
|
|
scala.concurrent.duration.`package`.DurationInt(20).seconds
|
|
108
|
32637
|
4423
-
4450
|
Select
|
org.make.api.extensions.MakeSettings.DefaultAdmin.email
|
|
MakeMain.this.settings.defaultAdmin.email
|
|
108
|
37571
|
4462
-
4464
|
Literal
|
<nosymbol>
|
|
20
|
|
108
|
46785
|
4383
-
4473
|
Apply
|
scala.concurrent.Await.result
|
|
scala.concurrent.Await.result[Option[org.make.core.user.User]](MakeMain.this.userService.getUserByEmail(MakeMain.this.settings.defaultAdmin.email), scala.concurrent.duration.`package`.DurationInt(20).seconds)
|
|
110
|
39204
|
4521
-
4549
|
Select
|
akka.actor.typed.ActorSystem.executionContext
|
|
MakeMain.this.actorSystem.executionContext
|
|
112
|
31036
|
4572
-
4590
|
Select
|
org.make.api.extensions.MakeSettings.Http.host
|
|
MakeMain.this.settings.Http.host
|
|
113
|
47840
|
4612
-
4630
|
Select
|
org.make.api.extensions.MakeSettings.Http.port
|
|
MakeMain.this.settings.Http.port
|
|
116
|
39694
|
4685
-
4685
|
Select
|
org.make.api.MakeMain.actorSystem
|
|
MakeMain.this.actorSystem
|
|
116
|
45750
|
4725
-
4729
|
Select
|
org.make.api.MakeMain.port
|
|
MakeMain.this.port
|
|
116
|
37609
|
4752
-
4752
|
Select
|
org.make.api.MakeMain.actorSystem
|
|
MakeMain.this.actorSystem
|
|
116
|
32390
|
4712
-
4716
|
Select
|
org.make.api.MakeMain.host
|
|
MakeMain.this.host
|
|
116
|
33448
|
4736
-
4764
|
ApplyToImplicitArgs
|
akka.http.scaladsl.server.Route.toFunction
|
|
akka.http.scaladsl.server.Route.toFunction(MakeMain.this.makeRoutes)(MakeMain.this.actorSystem)
|
|
116
|
46232
|
4681
-
4765
|
Apply
|
akka.http.scaladsl.ServerBuilder.bind
|
|
akka.http.scaladsl.Http.apply()(MakeMain.this.actorSystem).newServerAt(MakeMain.this.host, MakeMain.this.port).bind(akka.http.scaladsl.server.Route.toFunction(MakeMain.this.makeRoutes)(MakeMain.this.actorSystem))
|
|
118
|
30778
|
4787
-
4787
|
Select
|
org.make.api.MakeMain.ec
|
|
MakeMain.this.ec
|
|
119
|
38961
|
4810
-
4874
|
Apply
|
grizzled.slf4j.Logger.info
|
|
MakeMain.this.logger.info(("Make API bound to ".+(serverBinding.localAddress).+(" "): String))
|
|
120
|
37361
|
4769
-
5026
|
ApplyToImplicitArgs
|
scala.concurrent.Future.onComplete
|
|
MakeMain.this.bindingFuture.map[Unit](((serverBinding: akka.http.scaladsl.Http.ServerBinding) => MakeMain.this.logger.info(("Make API bound to ".+(serverBinding.localAddress).+(" "): String))))(MakeMain.this.ec).onComplete[Unit](((x0$1: scala.util.Try[Unit]) => x0$1 match {
case (exception: Throwable): scala.util.Failure[Unit]((ex @ _)) => {
MakeMain.this.logger.error(("Failed to bind to ".+(MakeMain.this.host).+(":").+(MakeMain.this.port).+("!"): String), ex);
MakeMain.this.actorSystem.terminate()
}
case _ => ()
}))(MakeMain.this.ec)
|
|
120
|
45231
|
4890
-
4890
|
Select
|
org.make.api.MakeMain.ec
|
|
MakeMain.this.ec
|
|
122
|
47876
|
4927
-
4978
|
Apply
|
grizzled.slf4j.Logger.error
|
|
MakeMain.this.logger.error(("Failed to bind to ".+(MakeMain.this.host).+(":").+(MakeMain.this.port).+("!"): String), ex)
|
|
123
|
40758
|
4985
-
5008
|
Apply
|
akka.actor.typed.ActorSystem.terminate
|
|
MakeMain.this.actorSystem.terminate()
|
|
124
|
31833
|
5020
-
5022
|
Literal
|
<nosymbol>
|
|
()
|