config.setInteger(RestOptions.PORT, 0); final RpcService rpcService = AkkaRpcServiceUtils.createRpcService("localhost", 0, config); final int jobManagerPort = rpcService.getPort(); config.setInteger(JobManagerOptions.PORT, jobManagerPort);
config.setInteger(TaskManagerOptions.NUM_TASK_SLOTS, 2); final RpcService rpcService = AkkaRpcServiceUtils.createRpcService("localhost", 0, config);
@Nonnull private RpcService createRpcService(Configuration configuration, String bindAddress, String portRange) throws Exception { return AkkaRpcServiceUtils.createRpcService(bindAddress, portRange, configuration); }
@Nonnull private RpcService createRpcService(Configuration configuration, String bindAddress, String portRange) throws Exception { return AkkaRpcServiceUtils.createRpcService(bindAddress, portRange, configuration); }
return AkkaRpcServiceUtils.createRpcService(taskManagerHostname, portRangeDefinition, configuration);
return AkkaRpcServiceUtils.createRpcService(taskManagerHostname, portRangeDefinition, configuration);
return AkkaRpcServiceUtils.createRpcService(taskManagerHostname, portsIterator.next(), configuration);
ConfigConstants.TASK_MANAGER_IPC_PORT_KEY, rpcPort); return AkkaRpcServiceUtils.createRpcService(taskManagerHostname, rpcPort, configuration);