Package org.apache.sysds.resource
Class CloudInstance
- java.lang.Object
-
- org.apache.sysds.resource.CloudInstance
-
public class CloudInstance extends Object
This class describes the configurations of a single VM instance. The idea is to use this class to represent instances of different cloud hypervisors - currently supporting only EC2 instances by AWS.
-
-
Constructor Summary
Constructors Constructor Description CloudInstance(String instanceName, long memory, int vCPUCores, double gFlops, double memorySpeed, double diskSpeed, double networkSpeed, double pricePerHour)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getDiskSpeed()
long
getFLOPS()
String
getInstanceName()
long
getMemory()
double
getMemorySpeed()
double
getNetworkSpeed()
double
getPrice()
int
getVCPUs()
-
-
-
Constructor Detail
-
CloudInstance
public CloudInstance(String instanceName, long memory, int vCPUCores, double gFlops, double memorySpeed, double diskSpeed, double networkSpeed, double pricePerHour)
-
-
Method Detail
-
getInstanceName
public String getInstanceName()
-
getMemory
public long getMemory()
- Returns:
- memory of the instance in B
-
getVCPUs
public int getVCPUs()
- Returns:
- number of virtual CPU cores of the instance
-
getPrice
public double getPrice()
- Returns:
- price per hour of the instance
-
getFLOPS
public long getFLOPS()
- Returns:
- number of FLOPS of the instance
-
getMemorySpeed
public double getMemorySpeed()
- Returns:
- memory speed/bandwidth of the instance in MB/s
-
getDiskSpeed
public double getDiskSpeed()
- Returns:
- isk speed/bandwidth of the instance in MB/s
-
getNetworkSpeed
public double getNetworkSpeed()
- Returns:
- network speed/bandwidth of the instance in MB/s
-
-