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

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


      ComputeResourceResource computeHostResource)
      throws AppCatalogException {
    Set<String> ipAddresses = description.getIpAddresses();
    if (ipAddresses != null && !ipAddresses.isEmpty()) {
        for (String ipAddress : ipAddresses) {
            HostIPAddressResource ipAddressResource = new HostIPAddressResource();
            ipAddressResource.setComputeHostResource(computeHostResource);
            ipAddressResource.setResourceID(computeHostResource.getResourceId());
            ipAddressResource.setIpaddress(ipAddress);
            ipAddressResource.save();
        }
    }
  }
View Full Code Here


        }
        return aliasResource;
    }

    private static Resource createHostIPAddress(HostIPAddress o) {
        HostIPAddressResource ipAddressResource = new HostIPAddressResource();
        if (o != null){
            ipAddressResource.setResourceID(o.getResourceID());
            ipAddressResource.setIpaddress(o.getIpaddress());
            ipAddressResource.setComputeHostResource((ComputeResourceResource)createComputeResource(o.getComputeResource()));
        }
        return ipAddressResource;
    }
View Full Code Here

TOP

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

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.