Commit 40e96001 authored by amir.yosef's avatar amir.yosef

Remove unnecessary Director

parent 1ff4ee00
package director;
import server.ReplicaConnectionService;
import server.ServerBuilder;
import java.io.IOException;
public class Director {
public void buildMaster(ServerBuilder builder) {
builder.setRole("Master");
}
public void buildReplica(ServerBuilder builder, ReplicaConnectionService replicaConnectionService) throws IOException {
replicaConnectionService = new ReplicaConnectionService(builder.getMasterPortAndHost(), 16380);
replicaConnectionService.checkConnection();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment