Advertisement
Guest User

Untitled

a guest
May 10th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.61 KB | None | 0 0
  1.   override def execute(ctx: ServiceContext): Unit = {
  2.  
  3.  
  4.     log.info(s"Executing service ${ctx.name()}")
  5.  
  6.     implicit val system: ActorSystem = this.system
  7.     implicit val materializer: ActorMaterializer = ActorMaterializer()
  8.     implicit val executionContext: ExecutionContextExecutor = system.dispatcher
  9.     implicit val httpMetricsSettings = HttpMetricsSettings()
  10.  
  11.     metricReflector = system.actorOf(MetricReflector.props(ignitionContext))  <-----------------------
  12.  
  13.     val route: HttpMetricsRoute = factory.route()
  14.  
  15.     bindingFuture = Http().bindAndHandle(route.withMetricsHandler, host, port)
  16.    
  17.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement