log.info("Setting max wall clock time to " + app.getMaxWallTime()); if (app.getMaxWallTime() > 30 && app.getQueue() != null && app.getQueue().getQueueName().equals("debug")) { throw new ToolsException("NCSA debug Queue only support jobs < 30 minutes"); if (app.getQueue().getQueueName() != null) { System.out.println("Testing"); log.info("Setting job queue to " + app.getQueue().getQueueName()); jobAttr.setQueue(app.getQueue().getQueueName());
public static ApplicationDescription registerApplication(String appName, String exeuctableLocation, String scratchWorkingDirectory, String hostName, String projAccNumber, String queueName, String cpuCount, String nodeCount, String maxMemory) throws Exception { // Create Application Description ApplicationDescription appDesc = new ApplicationDescription(HpcApplicationDeploymentType.type); HpcApplicationDeploymentType app = (HpcApplicationDeploymentType) appDesc.getType(); app.setCpuCount(Integer.parseInt(cpuCount)); app.setNodeCount(Integer.parseInt(nodeCount)); ApplicationDeploymentDescriptionType.ApplicationName name = appDesc.getType().addNewApplicationName(); name.setStringValue(appName); app.setExecutableLocation(exeuctableLocation); app.setScratchWorkingDirectory(scratchWorkingDirectory); ProjectAccountType projectAccountType = ((HpcApplicationDeploymentType) appDesc.getType()).addNewProjectAccount(); projectAccountType.setProjectAccountNumber(projAccNumber); QueueType queueType = app.addNewQueue(); queueType.setQueueName(queueName); app.setMaxMemory(Integer.parseInt(maxMemory)); return appDesc; }
/** * Sets the "queue" element */ public void setQueue(org.apache.airavata.schemas.gfac.QueueType queue) { synchronized (monitor()) { check_orphaned(); org.apache.airavata.schemas.gfac.QueueType target = null; target = (org.apache.airavata.schemas.gfac.QueueType)get_store().find_element_user(QUEUE$4, 0); if (target == null) { target = (org.apache.airavata.schemas.gfac.QueueType)get_store().add_element_user(QUEUE$4); } target.set(queue); } }
if(app.getQueue() == null){ QueueType queueType = app.addNewQueue(); queueType.setQueueName(queueName); }else{ app.getQueue().setQueueName(queueName); if (app.getQueue().getQueueName() != null) { log.debug("Setting job queue to " + app.getQueue().getQueueName()); jobAttr.setQueue(app.getQueue().getQueueName());
applicationDescriptor.setQueueName(gramApplicationDeploymentType.getQueue().getQueueName());
queueType.setQueueName(applicationDescriptor.getQueueName());