Search in sources :

Example 1 with InstallationDescription

use of es.bsc.conn.types.InstallationDescription in project compss by bsc-wdc.

the class Converter method getSoftwareDescription.

/**
 * Returns the software description
 *
 * @param cmrd
 * @return
 */
public static SoftwareDescription getSoftwareDescription(CloudMethodResourceDescription cmrd) {
    String osType = cmrd.getOperatingSystemType();
    String osDist = cmrd.getOperatingSystemDistribution();
    String osVersion = cmrd.getOperatingSystemVersion();
    List<String> apps = cmrd.getAppSoftware();
    CloudImageDescription cid = cmrd.getImage();
    MethodConfiguration mc = cid.getConfig();
    InstallationDescription installDesc = getInstallationDescription(mc);
    return new SoftwareDescription(osType, osDist, osVersion, apps, installDesc);
}
Also used : MethodConfiguration(es.bsc.compss.types.resources.configuration.MethodConfiguration) InstallationDescription(es.bsc.conn.types.InstallationDescription) CloudImageDescription(es.bsc.compss.types.resources.description.CloudImageDescription) SoftwareDescription(es.bsc.conn.types.SoftwareDescription)

Aggregations

MethodConfiguration (es.bsc.compss.types.resources.configuration.MethodConfiguration)1 CloudImageDescription (es.bsc.compss.types.resources.description.CloudImageDescription)1 InstallationDescription (es.bsc.conn.types.InstallationDescription)1 SoftwareDescription (es.bsc.conn.types.SoftwareDescription)1