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 int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancloneData(Storage dest_pool, String new_name, Status status, VMProvider provider) Offline only VM storage clone.voidstatic VirtualMachinegetName()getPath()getPool()intgetState()String[]getUUID()intgetVNC()static 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()booleanrestore()booleansaveHardware(Hardware hardware) booleanstart()booleanstop()booleansuspend()boolean
-
Field Details
-
pool
-
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:
-
-
Constructor Details
-
VirtualMachine
-
-
Method Details
-
init
public static boolean init() -
getPool
-
getName
-
getVNC
public int getVNC() -
getUUID
-
getPath
-
getConfigFile
-
loadHardware
-
saveHardware
-
create_stats_folder
public void create_stats_folder() -
start
public boolean start() -
stop
public boolean stop() -
poweroff
public boolean poweroff() -
restart
public boolean restart() -
suspend
public boolean suspend() -
restore
public boolean restore() -
getState
public int getState() -
getStateString
-
getStates
-
list
-
get
-
register
-
reregister
-
unregister
public boolean unregister() -
migrateCompute
-
migrateData
Offline only VM storage migration. -
cloneData
Offline only VM storage clone. -
main
-