buf.append("Executed ").append(InputUtils.buildCommand(cmdList)) .append(" on the localHost, working directory = ").append(app.getStaticWorkingDirectory()) .append(" tempDirectory = ").append(app.getScratchWorkingDirectory()).append(" With the status ") .append(String.valueOf(returnValue));
public void makeDirectory(InvocationContext context) throws ProviderException { ApplicationDeploymentDescriptionType app = context.getExecutionDescription().getApp().getType(); Session session = null; try { session = getSession(context); StringBuilder commandString = new StringBuilder(); commandString.append("mkdir -p "); commandString.append(app.getScratchWorkingDirectory()); commandString.append(" ; "); commandString.append("mkdir -p "); commandString.append(app.getStaticWorkingDirectory()); commandString.append(" ; "); commandString.append("mkdir -p "); commandString.append(app.getInputDataDirectory()); commandString.append(" ; "); commandString.append("mkdir -p "); commandString.append(app.getOutputDataDirectory()); Command cmd = session.exec(commandString.toString()); cmd.join(COMMAND_EXECUTION_TIMEOUT, TimeUnit.SECONDS); } catch (ConnectionException e) { throw new ProviderException(e.getMessage(), e); } catch (TransportException e) { throw new ProviderException(e.getMessage(), e); } catch (IOException e) { throw new ProviderException(e.getMessage(), e); } finally { closeSession(session); } }
public void makeDirectory(InvocationContext invocationContext) throws ProviderException { ApplicationDeploymentDescriptionType app = invocationContext.getExecutionDescription().getApp().getType(); log.info("working diectroy = " + app.getStaticWorkingDirectory()); log.info("temp directory = " + app.getScratchWorkingDirectory()); makeFileSystemDir(app.getStaticWorkingDirectory()); makeFileSystemDir(app.getScratchWorkingDirectory()); makeFileSystemDir(app.getInputDataDirectory()); makeFileSystemDir(app.getOutputDataDirectory()); }
.append(" temp directory = ").append(app.getScratchWorkingDirectory()) .append(" Globus GateKeeper Endpoint = ").append(gateKeeper);
.append(" tempDirectory = ").append(app.getScratchWorkingDirectory()) .append(" Globus GateKeeper cantact = ").append(gateKeeper); invocationContext.getExecutionContext().getNotifier().info(invocationContext, buf.toString());
if (appDesc.getScratchWorkingDirectory() == null) { appDesc.setScratchWorkingDirectory("/tmp"); date = date.replaceAll(":", "_"); String tmpDir = appDesc.getScratchWorkingDirectory() + File.separator + appDesc.getApplicationName().getStringValue() + "_" + date + "_" + UUID.randomUUID();
try { URI tmpdirURI = GfacUtils.createGsiftpURI(endpoint, app.getScratchWorkingDirectory()); URI workingDirURI = GfacUtils.createGsiftpURI(endpoint, app.getStaticWorkingDirectory()); URI inputURI = GfacUtils.createGsiftpURI(endpoint, app.getInputDataDirectory());
try { URI tmpdirURI = GramProviderUtils.createGsiftpURI(endpoint, app.getScratchWorkingDirectory()); URI workingDirURI = GramProviderUtils.createGsiftpURI(endpoint, app.getStaticWorkingDirectory()); URI inputURI = GramProviderUtils.createGsiftpURI(endpoint, app.getInputDataDirectory());
applicationDescriptor.setName(applicationDescription.getType().getApplicationName().getStringValue()); applicationDescriptor.setExecutablePath(applicationDescription.getType().getExecutableLocation()); applicationDescriptor.setWorkingDir(applicationDescription.getType().getScratchWorkingDirectory());