Package archipel :: Module archipelVirtualMachine
[hide private]
[frames] | no frames]

Module archipelVirtualMachine

source code

Contains ArchipelVirtualMachine, the XMPP capable controller

This module contains the class ArchipelVirtualMachine that represents a virtual machine linked to a libvirt domain and allowing other XMPP entities to control it using IQ.

The ArchipelVirtualMachine is able to register to any kind of XMPP compliant Server. These Server MUST allow in-band registration, or you have to manually register VM before launching them.

Also the JID of the virtual machine MUST be the UUID use in the libvirt domain, or it will fail.

Classes [hide private]
  TNArchipelVirtualMachine
This class represents an Virtual Machine, XMPP Capable.
Variables [hide private]
  ARCHIPEL_ERROR_CODE_VM_CREATE = -1001
  ARCHIPEL_ERROR_CODE_VM_SUSPEND = -1002
  ARCHIPEL_ERROR_CODE_VM_RESUME = -1003
  ARCHIPEL_ERROR_CODE_VM_DESTROY = -1004
  ARCHIPEL_ERROR_CODE_VM_SHUTDOWN = -1005
  ARCHIPEL_ERROR_CODE_VM_REBOOT = -1006
  ARCHIPEL_ERROR_CODE_VM_DEFINE = -1007
  ARCHIPEL_ERROR_CODE_VM_UNDEFINE = -1008
  ARCHIPEL_ERROR_CODE_VM_INFO = -1009
  ARCHIPEL_ERROR_CODE_VM_XMLDESC = -1011
  ARCHIPEL_ERROR_CODE_VM_LOCKED = -1012
  ARCHIPEL_ERROR_CODE_VM_MIGRATE = -1013
  ARCHIPEL_ERROR_CODE_VM_IS_MIGRATING = -1014
  ARCHIPEL_ERROR_CODE_VM_AUTOSTART = -1015
  ARCHIPEL_ERROR_CODE_VM_MEMORY = -1016
  ARCHIPEL_ERROR_CODE_VM_NETWORKINFO = -1017
  ARCHIPEL_ERROR_CODE_VM_HYPERVISOR_CAPABILITIES = -1019
  ARCHIPEL_ERROR_CODE_VM_FREE = -1020
  ARCHIPEL_ERROR_CODE_VM_SCREENSHOT = -1021
  ARCHIPEL_ERROR_CODE_VM_HYPERVISOR_NODE_INFO = -1022
  ARCHIPEL_ERROR_CODE_VM_MIGRATING = -43
  ARCHIPEL_NS_VM_CONTROL = "archipel:vm:control"
  ARCHIPEL_NS_VM_DEFINITION = "archipel:vm:definition"
  ARCHIPEL_XMPP_SHOW_RUNNING = "Running"
  ARCHIPEL_XMPP_SHOW_PAUSED = "Paused"
  ARCHIPEL_XMPP_SHOW_SHUTDOWN = "Off"
  ARCHIPEL_XMPP_SHOW_SHUTTINGDOWN = "Shutting down..."
  ARCHIPEL_XMPP_SHOW_BLOCKED = "Blocked"
  ARCHIPEL_XMPP_SHOW_SHUTOFF = "Shut off"
  ARCHIPEL_XMPP_SHOW_ERROR = "Error"
  ARCHIPEL_XMPP_SHOW_NOT_DEFINED = "Not defined"
  ARCHIPEL_XMPP_SHOW_CRASHED = "Crashed"