Search in sources :

Example 26 with Spec

use of com.yahoo.jrt.Spec in project vespa by vespa-engine.

the class SlobrokTestCase method setUp.

public void setUp() throws ListenFailedException, UnknownHostException {
    slobrok = new Slobrok();
    String slobrokCfgId = "raw:slobrok[1]\nslobrok[0].connectionspec \"" + new Spec("localhost", slobrok.port()).toString() + "\"\n";
    net1 = new RPCNetwork(new RPCNetworkParams().setIdentity(new Identity("net/a")).setSlobrokConfigId(slobrokCfgId));
    net2 = new RPCNetwork(new RPCNetworkParams().setIdentity(new Identity("net/b")).setSlobrokConfigId(slobrokCfgId));
    net3 = new RPCNetwork(new RPCNetworkParams().setIdentity(new Identity("net/c")).setSlobrokConfigId(slobrokCfgId));
    port1 = net1.getPort();
    port2 = net2.getPort();
    port3 = net3.getPort();
}
Also used : Slobrok(com.yahoo.jrt.slobrok.server.Slobrok) Spec(com.yahoo.jrt.Spec) Identity(com.yahoo.messagebus.network.Identity)

Aggregations

Spec (com.yahoo.jrt.Spec)26 Request (com.yahoo.jrt.Request)14 Target (com.yahoo.jrt.Target)14 Supervisor (com.yahoo.jrt.Supervisor)13 Transport (com.yahoo.jrt.Transport)13 Test (org.junit.Test)9 StringValue (com.yahoo.jrt.StringValue)8 ConfiguredNode (com.yahoo.vdslib.distribution.ConfiguredNode)4 NodeState (com.yahoo.vdslib.state.NodeState)4 Slobrok (com.yahoo.jrt.slobrok.server.Slobrok)3 Distribution (com.yahoo.vdslib.distribution.Distribution)3 Node (com.yahoo.vdslib.state.Node)3 Register (com.yahoo.jrt.slobrok.api.Register)2 SlobrokList (com.yahoo.jrt.slobrok.api.SlobrokList)2 Identity (com.yahoo.messagebus.network.Identity)2 ClusterState (com.yahoo.vdslib.state.ClusterState)2 ArrayList (java.util.ArrayList)2 TreeSet (java.util.TreeSet)2 HostInfo (com.yahoo.config.model.api.HostInfo)1 PortInfo (com.yahoo.config.model.api.PortInfo)1