public String getWorkingDir() { if (workingDir == null) { if (processModel.getResourceSchedule().getStaticWorkingDir() != null){ workingDir = processModel.getResourceSchedule().getStaticWorkingDir(); }else { String scratchLocation = null; String overrideScratchLocation = processModel.getResourceSchedule().getOverrideScratchLocation(); if (overrideScratchLocation != null && !overrideScratchLocation.equals("")) { scratchLocation = overrideScratchLocation; } else { scratchLocation = computeResourcePreference.getScratchLocation(); } workingDir = (scratchLocation.endsWith("/") ? scratchLocation + processId : scratchLocation + "/" + processId); } } return workingDir; }
public Object getFieldValue(_Fields field) { switch (field) { case COMPUTE_RESOURCE_ID: return getComputeResourceId(); case OVERRIDEBY_AIRAVATA: return isOverridebyAiravata(); case LOGIN_USER_NAME: return getLoginUserName(); case PREFERRED_JOB_SUBMISSION_PROTOCOL: return getPreferredJobSubmissionProtocol(); case PREFERRED_DATA_MOVEMENT_PROTOCOL: return getPreferredDataMovementProtocol(); case PREFERRED_BATCH_QUEUE: return getPreferredBatchQueue(); case SCRATCH_LOCATION: return getScratchLocation(); case ALLOCATION_PROJECT_NUMBER: return getAllocationProjectNumber(); case RESOURCE_SPECIFIC_CREDENTIAL_STORE_TOKEN: return getResourceSpecificCredentialStoreToken(); case USAGE_REPORTING_GATEWAY_ID: return getUsageReportingGatewayId(); } throw new IllegalStateException(); }
resource.setScratchLocation(preference.getScratchLocation()); resource.save();
resource.setScratchLocation(preference.getScratchLocation()); resource.save();
resource.setScratchLocation(preference.getScratchLocation()); resource.save();
resource.setScratchLocation(preference.getScratchLocation()); resource.setResourceCSToken(preference.getResourceSpecificCredentialStoreToken()); resource.setUsageReportingGatewayId(preference.getUsageReportingGatewayId());