blob: 455010165cf635cc41b625e9a7ab379c3f8add40 (
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 <a href="mailto:bakksjo@yahoo-inc.com">Oyvind Bakksjo</a>
*/
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 HostName,
new GenerationCounter {
override def increment = ???
override def get = 1L
})
Thread.sleep(100000)
intersector.deconstruct()
}
}
|