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

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


      ComputeResourceResource computeHostResource)
      throws AppCatalogException {
    Map<FileSystems, String> fileSystems = description.getFileSystems();
    if (fileSystems != null && !fileSystems.isEmpty()) {
        for (FileSystems key : fileSystems.keySet()) {
          ComputeResourceFileSystemResource computeResourceFileSystemResource = new ComputeResourceFileSystemResource();
          computeResourceFileSystemResource.setComputeHostResource(computeHostResource);
          computeResourceFileSystemResource.setComputeResourceId(computeHostResource.getResourceId());
          computeResourceFileSystemResource.setFileSystem(key.toString());
          computeResourceFileSystemResource.setPath(fileSystems.get(key));
          computeResourceFileSystemResource.save();
        }
    }
  }
View Full Code Here


        }
    return jobSubmissionInterfaceResource;
  }
   
    private static Resource createComputeResourceFileSystem(ComputeResourceFileSystem o) {
    ComputeResourceFileSystemResource computeResourceFileSystemResource = new ComputeResourceFileSystemResource();
        if (o != null){
            computeResourceFileSystemResource.setComputeResourceId(o.getComputeResourceId());
            computeResourceFileSystemResource.setComputeHostResource((ComputeResourceResource)createComputeResource(o.getComputeResource()));
            computeResourceFileSystemResource.setPath(o.getPath());
            computeResourceFileSystemResource.setFileSystem(o.getFileSystem());
        }
    return computeResourceFileSystemResource;
  }
View Full Code Here

TOP

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

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.