@Override public InetSocketAddress getAddress() { return getDelegate().getAddress(); }
@Override public InetSocketAddress getAddress() { return getDelegate().getAddress(); }
localizedFile = localizedDir + "/" + fileName; try (InputStream inputStream = openURI(uri)) { LOG.debug("Upload file {} to {}@{}:{}", uri, session.getUsername(), session.getAddress(), localizedFile); String expandedDir = targetPath + "/" + localFile.getName(); LOG.debug("Expanding archive {} on host {} to {}", localizedFile, session.getAddress().getHostName(), expandedDir); session.executeAndWait( "mkdir -p " + expandedDir, } else { LOG.debug("Create hardlink {} on host {} to {}/{}", localizedFile, session.getAddress().getHostName(), targetPath, localFile.getName()); session.executeAndWait(String.format("ln %s %s/%s", localizedFile, targetPath, localFile.getName()));
localizedFile = localizedDir + "/" + fileName; try (InputStream inputStream = openURI(uri)) { LOG.debug("Upload file {} to {}@{}:{}", uri, session.getUsername(), session.getAddress(), localizedFile); String expandedDir = targetPath + "/" + localFile.getName(); LOG.debug("Expanding archive {} on host {} to {}", localizedFile, session.getAddress().getHostName(), expandedDir); session.executeAndWait( "mkdir -p " + expandedDir, } else { LOG.debug("Create hardlink {} on host {} to {}/{}", localizedFile, session.getAddress().getHostName(), targetPath, localFile.getName()); session.executeAndWait(String.format("ln %s %s/%s", localizedFile, targetPath, localFile.getName()));
targetPath, "launcher.sh", scriptContent.length, 0755, null, null); LOG.info("Starting runnable {} with SSH on {}", runnableName, session.getAddress().getHostName());
targetPath, "launcher.sh", scriptContent.length, 0755, null, null); LOG.info("Starting runnable {} with SSH on {}", runnableName, session.getAddress().getHostName());