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

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

public class InstanceSpecification
extends java.lang.Object

This class represents the specification of a certain EC2 instance, it is specified by the instance type, the geographical region and the operating system bneing used.

Author:
Vermeersch Kurt

Constructor Summary
InstanceSpecification(java.lang.String instance, java.lang.String os)
          Constructor for InstanceSpecification
InstanceSpecification(java.lang.String instance, java.lang.String os, java.lang.String region)
          Constructor for InstanceSpecification
 
Method Summary
 java.lang.String getIdentifier()
           
 java.lang.String getInstance()
           
 java.lang.String getOS()
           
 java.lang.String getRegion()
           
 void setRegion(java.lang.String region)
          Setter for the geographical region of the instance specification, this setter is needed when the user did not appoint a task to a region
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceSpecification

public InstanceSpecification(java.lang.String instance,
                             java.lang.String os)
                      throws InvalidInputException
Constructor for InstanceSpecification

Parameters:
instance - the instance type of the instance specification
os - the operating system of the instance specification
Throws:
InvalidInputException

InstanceSpecification

public InstanceSpecification(java.lang.String instance,
                             java.lang.String os,
                             java.lang.String region)
                      throws InvalidInputException
Constructor for InstanceSpecification

Parameters:
instance - the instance type of the instance specification
os - the operating system of the instance specification
region - the geographical region of the instance specification
Throws:
InvalidInputException
Method Detail

getInstance

public java.lang.String getInstance()
Returns:
the instance type of the instance specification

getRegion

public java.lang.String getRegion()
Returns:
the geographical region of the instance specification

getOS

public java.lang.String getOS()
Returns:
the operating system of the instance specification

setRegion

public void setRegion(java.lang.String region)
               throws InvalidInputException
Setter for the geographical region of the instance specification, this setter is needed when the user did not appoint a task to a region

Parameters:
region - the region of the instance specification
Throws:
InvalidInputException - exception thrown when the provided region is not supported

getIdentifier

public java.lang.String getIdentifier()
Returns:
an identifier