Package javaforce.vm
Class VirtualMachine
java.lang.Object
javaforce.vm.VirtualMachine
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleancloneData(Storage dest_pool, String new_name, Status status, VMProvider provider) Offline only VM storage clone.voidstatic VirtualMachinegetFile()getName()getPath()getPool()intgetState()static intString[]getUUID()intgetVNC()booleanstatic booleaninit()static VirtualMachine[]list()static voidbooleanmigrateCompute(String desthost, boolean live, Status status) Live/offline VM migration.booleanmigrateData(Storage dest_pool, Hardware hw, Status status, VMProvider provider) Offline only VM storage migration.booleanpoweroff()static booleanregister(VirtualMachine vm, Hardware hardware, VMProvider provider) booleanreregister(Hardware hardware, VMProvider provider) booleanrestart()booleanresume()booleansaveHardware(Hardware hardware) intReturn number of snapshots.booleansnapshotCreate(String name, String desc, int flags) Snap Shot : CreatebooleansnapshotDelete(String name) Snap Shot : Delete (merges data back into parent)booleanDetermines if VM is running on a snapshot.snapshotGetByName(String snapshot) Returns snapshot by name.Returns current snapshot VM is running on.Snapshot[]Snap Shot : ListbooleansnapshotRestore(String name) Snap Shot : Restorebooleanstart()booleanstop()booleansuspend()boolean
-
Field Details
-
pool
-
folder
-
name
-
STATE_OFF
public static final int STATE_OFF- See Also:
-
STATE_ON
public static final int STATE_ON- See Also:
-
STATE_SUSPEND
public static final int STATE_SUSPEND- See Also:
-
STATE_ERROR
public static final int STATE_ERROR- See Also:
-
STATE_NOT_FOUND
public static final int STATE_NOT_FOUND- See Also:
-
SNAPSHOT_CREATE_DISK_ONLY
public static final int SNAPSHOT_CREATE_DISK_ONLY- See Also:
-
SNAPSHOT_CREATE_QUIESCE
public static final int SNAPSHOT_CREATE_QUIESCE- See Also:
-
SNAPSHOT_CREATE_ATOMIC
public static final int SNAPSHOT_CREATE_ATOMIC- See Also:
-
SNAPSHOT_CREATE_LIVE
public static final int SNAPSHOT_CREATE_LIVE- See Also:
-
-
Constructor Details
-
VirtualMachine
-
-
Method Details
-
init
public static boolean init() -
getPool
-
getName
-
getVNC
public int getVNC() -
getUUID
-
getPath
-
getFolder
-
getFile
-
loadHardware
-
saveHardware
-
create_stats_folder
public void create_stats_folder() -
check_write_access
public boolean check_write_access() -
start
public boolean start() -
stop
public boolean stop() -
poweroff
public boolean poweroff() -
restart
public boolean restart() -
suspend
public boolean suspend() -
resume
public boolean resume() -
getState
public int getState() -
getStateString
-
getState
-
getStates
-
list
-
get
-
register
-
reregister
-
unregister
public boolean unregister() -
migrateCompute
Live/offline VM migration. -
migrateData
Offline only VM storage migration. -
cloneData
Offline only VM storage clone. -
backupData
-
snapshotCreate
Snap Shot : Create -
snapshotList
Snap Shot : List -
snapshotCount
public int snapshotCount()Return number of snapshots. -
snapshotGetByName
Returns snapshot by name. -
snapshotExists
public boolean snapshotExists()Determines if VM is running on a snapshot. -
snapshotGetCurrent
Returns current snapshot VM is running on. -
snapshotRestore
Snap Shot : Restore -
snapshotDelete
Snap Shot : Delete (merges data back into parent) -
hasSnapshot
public boolean hasSnapshot() -
main
-