• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright 2007 Google Inc. Released under the GPL v2
3
4"""
5This module defines the Hypervisor class
6
7        Hypervisor: a virtual machine monitor
8"""
9
10__author__ = """
11mbligh@google.com (Martin J. Bligh),
12poirier@google.com (Benjamin Poirier),
13stutsman@google.com (Ryan Stutsman)
14"""
15
16
17import installable_object
18
19
20class Hypervisor(installable_object.InstallableObject):
21    """
22    This class represents a virtual machine monitor.
23
24    Implementation details:
25    This is an abstract class, leaf subclasses must implement the methods
26    listed here and in parent classes which have no implementation. They
27    may reimplement methods which already have an implementation. You
28    must not instantiate this class but should instantiate one of those
29    leaf subclasses.
30    """
31
32    host = None
33    guests = None
34
35    def __init__(self, host):
36        super(Hypervisor, self).__init__()
37        self.host= host
38
39
40    def new_guest(self):
41        pass
42
43
44    def delete_guest(self, guest_hostname):
45        pass
46
47
48    def reset_guest(self, guest_hostname):
49        pass
50