Search in sources :

Example 6 with SlobrokList

use of com.yahoo.jrt.slobrok.api.SlobrokList in project vespa by vespa-engine.

the class SlobrokClient method setSlobrokConnectionSpecs.

public void setSlobrokConnectionSpecs(String[] slobrokConnectionSpecs) {
    if (equalsExistingSpec(slobrokConnectionSpecs))
        return;
    this.connectionSpecs = slobrokConnectionSpecs;
    shutdown();
    supervisor = new Supervisor(new Transport());
    SlobrokList slist = new SlobrokList();
    slist.setup(slobrokConnectionSpecs);
    mirror = new Mirror(supervisor, slist);
    freshMirror = true;
}
Also used : Supervisor(com.yahoo.jrt.Supervisor) SlobrokList(com.yahoo.jrt.slobrok.api.SlobrokList) Transport(com.yahoo.jrt.Transport) Mirror(com.yahoo.jrt.slobrok.api.Mirror)

Aggregations

SlobrokList (com.yahoo.jrt.slobrok.api.SlobrokList)6 Register (com.yahoo.jrt.slobrok.api.Register)4 Mirror (com.yahoo.jrt.slobrok.api.Mirror)3 Spec (com.yahoo.jrt.Spec)2 Supervisor (com.yahoo.jrt.Supervisor)2 Transport (com.yahoo.jrt.Transport)2 IMirror (com.yahoo.jrt.slobrok.api.IMirror)1 Slobrok (com.yahoo.jrt.slobrok.server.Slobrok)1