|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthu.mta.sztaki.lpds.cloud.simulator.io.StorageObject
hu.mta.sztaki.lpds.cloud.simulator.io.VirtualAppliance
public class VirtualAppliance
Virtual appliances represent functional virtual machine images in the system.
Field Summary | |
---|---|
private long |
bgNetworkLoad
The background network load expected to be simulated between the appliance's hosting repository and the PM that hosts the VM while the VM runs its tasks. |
private double |
startupProcessing
The number of processing instructions to be done during the startup of the VM that utilizes this VA. |
Fields inherited from class hu.mta.sztaki.lpds.cloud.simulator.io.StorageObject |
---|
id, size |
Constructor Summary | |
---|---|
VirtualAppliance(String id,
double startupProcess,
long nl)
Creates a virtual appliance with default size and variance (for details, see StorageObject) |
|
VirtualAppliance(String id,
double startupProcess,
long nl,
boolean vary,
long reqDisk)
Creates a virtual appliance with custom size and size variance. |
Method Summary | |
---|---|
long |
getBgNetworkLoad()
Allows to determine the background network load expected to be simulated between the appliance's hosting repository and the PM that hosts the VM while the VM runs its tasks. |
double |
getStartupProcessing()
Allows to determine the number of processing instructions to be done during the startup of the VM that utilizes this VA. |
VirtualAppliance |
newCopy(String myid)
creates an object that holds the exact copy of the current virtual appliance with a different id Please note this copy is not going to be registered in any repositories (unlike the other VA), nor will it be used by any virtual machines. |
void |
setBgNetworkLoad(long bgNetworkLoad)
Allows to set the background network load expected to be simulated between the appliance's hosting repository and the PM that hosts the VM while the VM runs its tasks. |
private void |
setDetails(double startupProcess,
long nl)
Allows updating the appliance's properties in a single step. |
void |
setStartupProcessing(double startupProcessing)
Allows to set the number of processing instructions to be done during the startup of the VM that utilizes this VA. |
String |
toString()
Provides a compact output of all data represented in this VA. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private long bgNetworkLoad
private double startupProcessing
Constructor Detail |
---|
public VirtualAppliance(String id, double startupProcess, long nl)
id
- the id of the appliancestartupProcess
- number of processing instructions on startupnl
- background network load while running tasks on a VM that has
storage backed by a remote repositorypublic VirtualAppliance(String id, double startupProcess, long nl, boolean vary, long reqDisk)
id
- the id of the appliancestartupProcess
- number of processing instructions on startupnl
- background network load while running tasks on a VM that has
storage backed by a remote repositoryvary
- true if the requested appliance size is not fixed,
false otherwisereqDisk
- the size of the disk image to host the virtual appliance (this
might not be the actual size, but could be used for generating
varying sizes according to the param vary. Unit: bytes.Method Detail |
---|
private void setDetails(double startupProcess, long nl)
startupProcess
- number of processing instructions on startupnl
- background network load while running tasks on a VM that has
storage backed by a remote repositorypublic VirtualAppliance newCopy(String myid)
newCopy
in class StorageObject
myid
- the id of the new storage object
public long getBgNetworkLoad()
public double getStartupProcessing()
public void setBgNetworkLoad(long bgNetworkLoad)
public void setStartupProcessing(double startupProcessing)
public String toString()
toString
in class StorageObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |