Home | History | Annotate | Download | only in server
      1 #
      2 # Copyright 2007 Google Inc. Released under the GPL v2
      3 
      4 """
      5 This module defines the Hypervisor class
      6 
      7         Hypervisor: a virtual machine monitor
      8 """
      9 
     10 __author__ = """
     11 mbligh (at] google.com (Martin J. Bligh),
     12 poirier (at] google.com (Benjamin Poirier),
     13 stutsman (at] google.com (Ryan Stutsman)
     14 """
     15 
     16 
     17 import installable_object
     18 
     19 
     20 class 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