|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object be.ac.ua.broker.utils.InputVerifier
public class InputVerifier
This class contains some broker input verification utilities. It provides static methods to verify whether an existing EC2 instance, region or operating system is provided. It also enables the user to check whether an existing scheduling and allocation scheme option is provided to the broker. Make sure to call the setup function before using the utilities of this class.
Constructor Summary | |
---|---|
InputVerifier()
|
Method Summary | |
---|---|
static boolean |
allocationVersionExists(java.lang.String version)
Check whether a given allocation option is supported by the broker |
static java.util.Set<java.lang.String> |
getAllocationsVersions()
Getter for the set of supported allocation options of the broker |
static java.util.Set<java.lang.String> |
getSchedulingVersions()
Getter for the set of supported scheduling options of the broker |
static boolean |
instanceExists(java.lang.String inst)
Check whether a given instance type is supported by the broker |
static boolean |
osExists(java.lang.String os)
Check whether a given operating system is supported by the broker |
static boolean |
regionExists(java.lang.String reg)
Check whether a given geographical region is supported by the broker |
static boolean |
schedulingVersionExists(java.lang.String version)
Check whether a given scheduling option is supported by the broker |
static void |
setup()
Fill the sets with the values representing the supported items |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InputVerifier()
Method Detail |
---|
public static void setup()
public static boolean instanceExists(java.lang.String inst) throws InvalidInputException
inst
- the instance type to check
InvalidInputException
- exception thrown when the provided instance type is not
supported by the brokerpublic static boolean regionExists(java.lang.String reg) throws InvalidInputException
reg
- the geographical region to check
InvalidInputException
- exception thrown when the provided geographical region is not
supported by the brokerpublic static boolean osExists(java.lang.String os) throws InvalidInputException
os
- the operating system to check
InvalidInputException
- exception thrown when the provided operating system is not
supported by the brokerpublic static boolean schedulingVersionExists(java.lang.String version) throws InvalidInputException
version
- the scheduling option to check
InvalidInputException
- exception thrown when the provided scheduling option is not
supported by the brokerpublic static java.util.Set<java.lang.String> getSchedulingVersions()
public static boolean allocationVersionExists(java.lang.String version) throws InvalidInputException
version
- the allocation option to check
InvalidInputException
- exception thrown when the provided allocation option is not
supported by the brokerpublic static java.util.Set<java.lang.String> getAllocationsVersions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |