break; case 4: builder.setDataPort(input.readInt32()); break; case 5:
setDataPort(other.getDataPort());
public DrillbitEndpoint start(DrillbitEndpoint partialEndpoint, boolean allowPortHunting) { server = new DataServer(config); int port = partialEndpoint.getControlPort() + 1; if (config.getBootstrapContext().getConfig().hasPath(ExecConstants.INITIAL_DATA_PORT)) { port = config.getBootstrapContext().getConfig().getInt(ExecConstants.INITIAL_DATA_PORT); } port = server.bind(port, allowPortHunting); return partialEndpoint.toBuilder().setDataPort(port).build(); }
break; case 4: builder.setDataPort(input.readInt32()); break; case 5:
setDataPort(other.getDataPort());
/** * Make a Drill endpoint using the hard-coded test ports and the given host * name. * * @param host * @return */ private DrillbitEndpoint makeEndpoint(String host) { return DrillbitEndpoint.newBuilder().setAddress(host) .setControlPort(TEST_CONTROL_PORT).setDataPort(TEST_DATA_PORT) .setUserPort(TEST_USER_PORT).build(); }