be.ac.ua.broker.input.pricing
Class EC2Specifications

java.lang.Object
  extended by be.ac.ua.broker.input.pricing.EC2Specifications

public class EC2Specifications
extends java.lang.Object

This class provides the EC2 instance types, geographical regions and operating systems that are supported by our broker.

Author:
Vermeersch Kurt

Constructor Summary
EC2Specifications()
           
 
Method Summary
static java.util.List<InstanceSpecification> getInstanceSpecifications()
           
static java.util.Map<java.lang.String,java.lang.String> getInstanceTypeMapping()
           
static java.util.Map<java.lang.String,java.lang.String> getOSMapping()
           
static java.util.Map<java.lang.String,java.lang.String> getRegionMapping()
           
static void init()
          Initialize all the instance types, geographical regions and operating systems mappings.
static void initInstances()
          Initialize the list of possible instance specifications.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EC2Specifications

public EC2Specifications()
Method Detail

init

public static void init()
Initialize all the instance types, geographical regions and operating systems mappings.


initInstances

public static void initInstances()
Initialize the list of possible instance specifications. For the cluster-compute and cluster-gpu instance types only the us-east linux instances are added to this list.


getInstanceSpecifications

public static java.util.List<InstanceSpecification> getInstanceSpecifications()
Returns:
the list of possible instance specifications (note that not all possibilities for the cluster-compute and cluster-gpu instance types are included)

getOSMapping

public static java.util.Map<java.lang.String,java.lang.String> getOSMapping()
Returns:
the operating system mapping

getRegionMapping

public static java.util.Map<java.lang.String,java.lang.String> getRegionMapping()
Returns:
the geographical region mapping

getInstanceTypeMapping

public static java.util.Map<java.lang.String,java.lang.String> getInstanceTypeMapping()
Returns:
the instance type mapping