/** * Utility method to retrieve the BlobServer address from the given JobManager gateway. * * @param jobManagerGateway to obtain the BlobServer address from * @param timeout for this operation * @return CompletableFuture containing the BlobServer address */ public static CompletableFuture<InetSocketAddress> retrieveBlobServerAddress( JobManagerGateway jobManagerGateway, Time timeout) { CompletableFuture<Integer> futureBlobPort = jobManagerGateway.requestBlobServerPort(timeout); final String jmHostname = jobManagerGateway.getHostname(); return futureBlobPort.thenApply( (Integer blobPort) -> new InetSocketAddress(jmHostname, blobPort)); } }
/** * Utility method to retrieve the BlobServer address from the given JobManager gateway. * * @param jobManagerGateway to obtain the BlobServer address from * @param timeout for this operation * @return CompletableFuture containing the BlobServer address */ public static CompletableFuture<InetSocketAddress> retrieveBlobServerAddress( JobManagerGateway jobManagerGateway, Time timeout) { CompletableFuture<Integer> futureBlobPort = jobManagerGateway.requestBlobServerPort(timeout); final String jmHostname = jobManagerGateway.getHostname(); return futureBlobPort.thenApply( (Integer blobPort) -> new InetSocketAddress(jmHostname, blobPort)); } }
/** * Utility method to retrieve the BlobServer address from the given JobManager gateway. * * @param jobManagerGateway to obtain the BlobServer address from * @param timeout for this operation * @return CompletableFuture containing the BlobServer address */ public static CompletableFuture<InetSocketAddress> retrieveBlobServerAddress( JobManagerGateway jobManagerGateway, Time timeout) { CompletableFuture<Integer> futureBlobPort = jobManagerGateway.requestBlobServerPort(timeout); final String jmHostname = jobManagerGateway.getHostname(); return futureBlobPort.thenApply( (Integer blobPort) -> new InetSocketAddress(jmHostname, blobPort)); } }
JobManagerMessages.ClassloadingProps props = optProps.get(); InetSocketAddress serverAddress = new InetSocketAddress(jobManager.getHostname(), props.blobManagerPort()); final PermanentBlobCache permanentBlobCache; try {
JobManagerMessages.ClassloadingProps props = optProps.get(); InetSocketAddress serverAddress = new InetSocketAddress(jobManager.getHostname(), props.blobManagerPort()); final PermanentBlobCache permanentBlobCache; try {
JobManagerMessages.ClassloadingProps props = optProps.get(); InetSocketAddress serverAddress = new InetSocketAddress(jobManager.getHostname(), props.blobManagerPort()); final PermanentBlobCache permanentBlobCache; try {
(Integer port) -> { try { return new TransientBlobCache(config, new InetSocketAddress(jobManagerGateway.getHostname(), port)); } catch (IOException e) { throw new CompletionException(new FlinkException("Could not create TransientBlobCache.", e));