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

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


      ComputeResourceResource computeHostResource)
      throws AppCatalogException {
    Set<String> hostAliases = description.getHostAliases();
    if (hostAliases != null && !hostAliases.isEmpty()) {
        for (String alias : hostAliases) {
            HostAliasResource aliasResource = new HostAliasResource();
            aliasResource.setComputeHostResource(computeHostResource);
            aliasResource.setResourceID(computeHostResource.getResourceId());
            aliasResource.setAlias(alias);
            aliasResource.save();
        }
    }
  }
View Full Code Here


        }
    return computeResourceResource;
  }

    private static Resource createHostAlias(HostAlias o) {
        HostAliasResource aliasResource = new HostAliasResource();
        if (o != null){
            aliasResource.setResourceID(o.getResourceID());
            aliasResource.setAlias(o.getAlias());
            aliasResource.setComputeHostResource((ComputeResourceResource)createComputeResource(o.getComputeResource()));
        }
        return aliasResource;
    }
View Full Code Here

TOP

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

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.