Examples of addGatewayResourceProfile()


Examples of org.airavata.appcatalog.cpi.GwyResourceProfile.addGatewayResourceProfile()

    @Override
    public String registerGatewayResourceProfile(GatewayResourceProfile gatewayResourceProfile) throws InvalidRequestException, AiravataClientException, AiravataSystemException, TException {
      try {
            appCatalog = AppCatalogFactory.getAppCatalog();
            GwyResourceProfile gatewayProfile = appCatalog.getGatewayProfile();
            return gatewayProfile.addGatewayResourceProfile(gatewayResourceProfile);
        } catch (AppCatalogException e) {
            logger.error("Error while registering gateway resource profile...", e);
            AiravataSystemException exception = new AiravataSystemException();
            exception.setAiravataErrorType(AiravataErrorType.INTERNAL_ERROR);
            exception.setMessage("Error while registering gateway resource profile. More info : " + e.getMessage());
View Full Code Here

Examples of org.airavata.appcatalog.cpi.GwyResourceProfile.addGatewayResourceProfile()

        List<ComputeResourcePreference> list = new ArrayList<ComputeResourcePreference>();
        list.add(preference1);
        list.add(preference2);
        gf.setComputeResourcePreferences(list);

        String gwId = gatewayProfile.addGatewayResourceProfile(gf);
        GatewayResourceProfile retrievedProfile = null;
        if (gatewayProfile.isGatewayResourceProfileExists(gwId)){
            retrievedProfile = gatewayProfile.getGatewayProfile(gwId);
            System.out.println("************ gateway name ************** :" + retrievedProfile.getGatewayName());
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.