Package javaforce.vm
Class Disk
java.lang.Object
javaforce.vm.Disk
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionintstatic final intstatic final intintstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancreate(int provision) Provision virtual disk for a VirtualMachine.booleanexists()booleangetFile()getHardwareXML(int os) getPath()Get path using a different pool.getSnapshotPath(String ssname) getType()static intbooleanresize()booleantoString()
-
Field Details
-
pool
-
folder
-
name
-
type
public int type -
size
-
boot_order
public int boot_order -
target_dev
-
target_bus
-
TYPE_VMDK
public static final int TYPE_VMDK- See Also:
-
TYPE_QCOW2
public static final int TYPE_QCOW2- See Also:
-
TYPE_ISO
public static final int TYPE_ISO- See Also:
-
PROVISION_THICK
public static final int PROVISION_THICK- See Also:
-
PROVISION_THIN
public static final int PROVISION_THIN- See Also:
-
-
Constructor Details
-
Disk
public Disk()
-
-
Method Details
-
getType
-
getType
-
getFolder
-
getFile
-
getPath
-
getSnapshotPath
-
getPath
Get path using a different pool. -
exists
public boolean exists() -
exists
-
create
public boolean create(int provision) Provision virtual disk for a VirtualMachine. -
resize
public boolean resize() -
resize
-
getHardwareXML
-
toString
-