Class VirtualMachine

java.lang.Object
javaforce.vm.VirtualMachine
All Implemented Interfaces:
Serializable

public class VirtualMachine extends Object implements Serializable
See Also:
  • Field Details

  • Constructor Details

    • VirtualMachine

      public VirtualMachine(Hardware hardware)
  • Method Details

    • init

      public static boolean init()
    • getPool

      public String getPool()
    • getName

      public String getName()
    • getVNC

      public int getVNC()
    • getUUID

      public String getUUID()
    • getPath

      public String getPath()
    • getConfigFile

      public String getConfigFile()
    • loadHardware

      public Hardware loadHardware()
    • saveHardware

      public boolean saveHardware(Hardware hardware)
    • 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

      public String getStateString()
    • getStates

      public String[] getStates()
    • list

      public static VirtualMachine[] list()
    • get

      public static VirtualMachine get(String name)
    • register

      public static boolean register(VirtualMachine vm, Hardware hardware, VMProvider provider)
    • reregister

      public boolean reregister(Hardware hardware, VMProvider provider)
    • unregister

      public boolean unregister()
    • migrateCompute

      public boolean migrateCompute(String desthost, boolean live, Status status)
      Live/offline VM migration.
    • migrateData

      public boolean migrateData(Storage dest_pool, Hardware hw, Status status, VMProvider provider)
      Offline only VM storage migration.
    • cloneData

      public boolean cloneData(Storage dest_pool, String new_name, Status status, VMProvider provider)
      Offline only VM storage clone.
    • main

      public static void main(String[] args)