summaryrefslogtreecommitdiffstats
path: root/service-monitor/src/test/scala/PrintServiceStates.scala
blob: e6e02ae7aed7c915e7c88ce39d6881d308e994c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
import com.yahoo.config.subscription.ConfigSourceSet
import com.yahoo.vespa.config.GenerationCounter
import com.yahoo.vespa.applicationmodel.HostName
import com.yahoo.vespa.service.monitor.SlobrokAndConfigIntersector

/**
 * Quick hack to just see some results.
 *
 * @author bakksjo
 */
object PrintServiceStates {
  def main(args: Array[String]): Unit = {
    val intersector = new SlobrokAndConfigIntersector(
      new ConfigSourceSet("tcp/test1-node:19070"),
      multiTenantConfigServerHostNames = Set("config-server1", "config-server2").map(s => new HostName(s)),
      new GenerationCounter {
        override def increment = ???
        override def get = 1L
      })
    Thread.sleep(100000)
    intersector.deconstruct()
  }
}