public abstract class RunnerAbstract
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static DatacenterBroker |
broker
The broker.
|
protected static java.util.List<Cloudlet> |
cloudletList
The cloudlet list.
|
protected static java.util.List<PowerHost> |
hostList
The host list.
|
protected static java.util.List<Vm> |
vmList
The vm list.
|
| Constructor and Description |
|---|
RunnerAbstract(boolean enableOutput,
boolean outputToFile,
java.lang.String inputFolder,
java.lang.String outputFolder,
java.lang.String workload,
java.lang.String vmAllocationPolicy,
java.lang.String vmSelectionPolicy,
java.lang.String parameter)
Run.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getExperimentName(java.lang.String... args)
Gets the experiment name.
|
protected VmAllocationPolicy |
getVmAllocationPolicy(java.lang.String vmAllocationPolicyName,
java.lang.String vmSelectionPolicyName,
java.lang.String parameterName)
Gets the vm allocation policy.
|
protected PowerVmSelectionPolicy |
getVmSelectionPolicy(java.lang.String vmSelectionPolicyName)
Gets the vm selection policy.
|
protected abstract void |
init(java.lang.String inputFolder)
Inits the simulation.
|
protected void |
initLogOutput(boolean enableOutput,
boolean outputToFile,
java.lang.String outputFolder,
java.lang.String workload,
java.lang.String vmAllocationPolicy,
java.lang.String vmSelectionPolicy,
java.lang.String parameter)
Inits the log output.
|
boolean |
isEnableOutput()
Checks if is enable output.
|
void |
setEnableOutput(boolean enableOutput)
Sets the enable output.
|
protected void |
start(java.lang.String experimentName,
java.lang.String outputFolder,
VmAllocationPolicy vmAllocationPolicy)
Starts the simulation.
|
protected static DatacenterBroker broker
protected static java.util.List<Cloudlet> cloudletList
protected static java.util.List<Vm> vmList
protected static java.util.List<PowerHost> hostList
public RunnerAbstract(boolean enableOutput,
boolean outputToFile,
java.lang.String inputFolder,
java.lang.String outputFolder,
java.lang.String workload,
java.lang.String vmAllocationPolicy,
java.lang.String vmSelectionPolicy,
java.lang.String parameter)
enableOutput - the enable outputoutputToFile - the output to fileinputFolder - the input folderoutputFolder - the output folderworkload - the workloadvmAllocationPolicy - the vm allocation policyvmSelectionPolicy - the vm selection policyparameter - the parameterprotected void initLogOutput(boolean enableOutput,
boolean outputToFile,
java.lang.String outputFolder,
java.lang.String workload,
java.lang.String vmAllocationPolicy,
java.lang.String vmSelectionPolicy,
java.lang.String parameter)
throws java.io.IOException,
java.io.FileNotFoundException
enableOutput - the enable outputoutputToFile - the output to fileoutputFolder - the output folderworkload - the workloadvmAllocationPolicy - the vm allocation policyvmSelectionPolicy - the vm selection policyparameter - the parameterjava.io.IOException - Signals that an I/O exception has occurred.java.io.FileNotFoundException - the file not found exceptionprotected abstract void init(java.lang.String inputFolder)
inputFolder - the input folderprotected void start(java.lang.String experimentName,
java.lang.String outputFolder,
VmAllocationPolicy vmAllocationPolicy)
experimentName - the experiment nameoutputFolder - the output foldervmAllocationPolicy - the vm allocation policyprotected java.lang.String getExperimentName(java.lang.String... args)
args - the argsprotected VmAllocationPolicy getVmAllocationPolicy(java.lang.String vmAllocationPolicyName, java.lang.String vmSelectionPolicyName, java.lang.String parameterName)
vmAllocationPolicyName - the vm allocation policy namevmSelectionPolicyName - the vm selection policy nameparameterName - the parameter nameprotected PowerVmSelectionPolicy getVmSelectionPolicy(java.lang.String vmSelectionPolicyName)
vmSelectionPolicyName - the vm selection policy namepublic void setEnableOutput(boolean enableOutput)
enableOutput - the new enable outputpublic boolean isEnableOutput()