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

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


     * Returns a success/failure of the update.
     */
    @Override
    public boolean updateLocalDataMovementDetails(String jobSubmissionInterfaceId, LOCALDataMovement localDataMovement) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException {
      try {
            LocalDataMovementResource movment = AppCatalogThriftConversion.getLocalDataMovement(localDataMovement);
            movment.setDataMovementInterfaceId(jobSubmissionInterfaceId);
            movment.save();
            return true;
        } catch (AppCatalogException e) {
            logger.error("Error while adding job submission interface to resource compute resource...", e);
            AiravataSystemException exception = new AiravataSystemException();
            exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
View Full Code Here


                throw new IllegalArgumentException("Illegal data type..");
        }
    }
 
  private static Resource createLocalDataMovement(LocalDataMovement o) {
    LocalDataMovementResource localDataMovementResource = new LocalDataMovementResource();
        if (o != null){
            localDataMovementResource.setDataMovementInterfaceId(o.getDataMovementInterfaceId());
        }
    return localDataMovementResource;
  }
View Full Code Here

  @Override
  public String addLocalDataMovement(LOCALDataMovement localDataMovement)
      throws AppCatalogException {
    localDataMovement.setDataMovementInterfaceId(AppCatalogUtils.getID("LOCAL"));
    LocalDataMovementResource ldm = AppCatalogThriftConversion.getLocalDataMovement(localDataMovement);
    ldm.save();
      return ldm.getDataMovementInterfaceId();
  }
View Full Code Here

  }

  @Override
  public LOCALDataMovement getLocalDataMovement(String datamovementId)
      throws AppCatalogException {
    LocalDataMovementResource localDataMovementResource = new LocalDataMovementResource();
    localDataMovementResource = (LocalDataMovementResource) localDataMovementResource.get(datamovementId);
    return AppCatalogThriftConversion.getLocalDataMovement(localDataMovementResource);
  }
View Full Code Here

TOP

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

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.