|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object be.ac.ua.broker.input.pricing.InstanceSpecification
public class InstanceSpecification
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.
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 |
---|
public InstanceSpecification(java.lang.String instance, java.lang.String os) throws InvalidInputException
instance
- the instance type of the instance specificationos
- the operating system of the instance specification
InvalidInputException
public InstanceSpecification(java.lang.String instance, java.lang.String os, java.lang.String region) throws InvalidInputException
instance
- the instance type of the instance specificationos
- the operating system of the instance specificationregion
- the geographical region of the instance specification
InvalidInputException
Method Detail |
---|
public java.lang.String getInstance()
public java.lang.String getRegion()
public java.lang.String getOS()
public void setRegion(java.lang.String region) throws InvalidInputException
region
- the region of the instance specification
InvalidInputException
- exception thrown when the provided region is not supportedpublic java.lang.String getIdentifier()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |