Package org.apache.sysds.resource
Class AWSUtils
- java.lang.Object
-
- org.apache.sysds.resource.CloudUtils
-
- org.apache.sysds.resource.AWSUtils
-
public class AWSUtils extends CloudUtils
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.sysds.resource.CloudUtils
CloudUtils.CloudProvider, CloudUtils.InstanceSize, CloudUtils.InstanceType
-
-
Field Summary
Fields Modifier and Type Field Description static String
EC2_REGEX
-
Fields inherited from class org.apache.sysds.resource.CloudUtils
DEFAULT_CLUSTER_LAUNCH_TIME, MINIMAL_EXECUTION_TIME
-
-
Constructor Summary
Constructors Constructor Description AWSUtils()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
calculateClusterPrice(EnumerationUtils.ConfigurationPoint config, double time)
This method calculates the cluster price based on the estimated execution time and the cluster configuration.CloudUtils.InstanceSize
getInstanceSize(String instanceName)
CloudUtils.InstanceType
getInstanceType(String instanceName)
boolean
validateInstanceName(String input)
-
Methods inherited from class org.apache.sysds.resource.CloudUtils
GBtoBytes, loadInstanceInfoTable
-
-
-
-
Field Detail
-
EC2_REGEX
public static final String EC2_REGEX
- See Also:
- Constant Field Values
-
-
Method Detail
-
validateInstanceName
public boolean validateInstanceName(String input)
- Specified by:
validateInstanceName
in classCloudUtils
-
getInstanceType
public CloudUtils.InstanceType getInstanceType(String instanceName)
- Specified by:
getInstanceType
in classCloudUtils
-
getInstanceSize
public CloudUtils.InstanceSize getInstanceSize(String instanceName)
- Specified by:
getInstanceSize
in classCloudUtils
-
calculateClusterPrice
public double calculateClusterPrice(EnumerationUtils.ConfigurationPoint config, double time)
Description copied from class:CloudUtils
This method calculates the cluster price based on the estimated execution time and the cluster configuration.- Specified by:
calculateClusterPrice
in classCloudUtils
- Parameters:
config
- the cluster configuration for the calculationtime
- estimated execution time in seconds- Returns:
- price for the given time
-
-