public class BehavioureInference extends Object implements ISimpleVMBehaviourInferrer
| Constructor and Description |
|---|
BehavioureInference() |
BehavioureInference(int numberCores,
int memSize,
String hardDiskType) |
| Modifier and Type | Method and Description |
|---|---|
SimpleVMBehaviour |
getBehaviour(double from,
double to)
Get the behaviour of a VM with Specs stated in the instantiation of the Behaviour inference engine, assuming a simplified resource model.
|
SimpleVMBehaviour |
getBehaviour(String vmUuuid,
double from,
double to)
Get the behaviour of the specified VM, assuming a simplified resource model.
|
TreeMap<Double,IntervalBehaviourValues> |
getBehaviour(String vmuuID,
int numberCores,
int memory,
String hdType,
String appTypeVM)
Get the behaviour of a VM with Specs stated in the instantiation of the Behaviour inference engine, assuming a simplified resource model.
|
public BehavioureInference()
public BehavioureInference(int numberCores,
int memSize,
String hardDiskType)
public SimpleVMBehaviour getBehaviour(String vmUuuid, double from, double to)
ISimpleVMBehaviourInferrerfrom,to).
The times are specified in simulation time seconds relative to the starting point of the simulation (0s).getBehaviour in interface ISimpleVMBehaviourInferrervmUuuid - The UUID of the VM in the CACTOS infrastructure model.from - Start time of the time interval for which the behaviour is fetched. Must be greater or equal to zero.to - End time of the time interval for which the behaviour is fetched. Must be greater than from.public SimpleVMBehaviour getBehaviour(double from, double to)
ISimpleVMBehaviourInferrerfrom,to).
The times are specified in simulation time seconds relative to the starting point of the simulation (0s).getBehaviour in interface ISimpleVMBehaviourInferrerfrom - Start time of the time interval for which the behaviour is fetched. Must be greater or equal to zero.to - End time of the time interval for which the behaviour is fetched. Must be greater than from.public TreeMap<Double,IntervalBehaviourValues> getBehaviour(String vmuuID, int numberCores, int memory, String hdType, String appTypeVM) throws IOException
ISimpleVMBehaviourInferrergetBehaviour in interface ISimpleVMBehaviourInferrernumberCores - is the number of cores in the VMmemory - is the size of the memory allocated to the VMhdType - is the HD type, should evaluate to either "HDD" or "SSD"appTypeVM - is the Application for which the model is needed. Should evaluate to either "Wiki", "MolPro", "Playgen" or "BlackBox"IOException