Package org.apache.aiaravata.application.catalog.data.resources

Examples of org.apache.aiaravata.application.catalog.data.resources.BatchQueueResource


      ComputeResourceResource computeHostResource)
      throws AppCatalogException {
    List<BatchQueue> batchQueueList = description.getBatchQueues();
    if (batchQueueList != null && !batchQueueList.isEmpty()) {
        for (BatchQueue batchQueue : batchQueueList) {
          BatchQueueResource bq = AppCatalogThriftConversion.getBatchQueue(batchQueue);
          bq.setComputeResourceId(computeHostResource.getResourceId());
          bq.setComputeHostResource(computeHostResource);
            bq.save();
        }
    }
  }
View Full Code Here


        }
    return computeResourceFileSystemResource;
  }
   
    private static Resource createBatchQueue(BatchQueue o) {
    BatchQueueResource batchQueueResource = new BatchQueueResource();
        if (o != null){
            batchQueueResource.setComputeResourceId(o.getComputeResourceId());
            batchQueueResource.setComputeHostResource((ComputeResourceResource)createComputeResource(o.getComputeResource()));
            batchQueueResource.setMaxRuntime(o.getMaxRuntime());
            batchQueueResource.setMaxJobInQueue(o.getMaxJobInQueue());
            batchQueueResource.setQueueDescription(o.getQueueDescription());
            batchQueueResource.setQueueName(o.getQueueName());
            batchQueueResource.setMaxProcessors(o.getMaxProcessors());
            batchQueueResource.setMaxNodes(o.getMaxNodes());
        }
    return batchQueueResource;
  }
View Full Code Here

TOP

Related Classes of org.apache.aiaravata.application.catalog.data.resources.BatchQueueResource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.