mbligh | dcd57a8 | 2007-07-11 23:06:47 +0000 | [diff] [blame] | 1 | # |
2 | # Copyright 2007 Google Inc. Released under the GPL v2 | ||||
3 | |||||
mbligh | dc735a2 | 2007-08-02 16:54:37 +0000 | [diff] [blame] | 4 | """ |
5 | This module defines the Hypervisor class | ||||
mbligh | dcd57a8 | 2007-07-11 23:06:47 +0000 | [diff] [blame] | 6 | |
jadmanski | 0afbb63 | 2008-06-06 21:10:57 +0000 | [diff] [blame] | 7 | Hypervisor: a virtual machine monitor |
mbligh | dcd57a8 | 2007-07-11 23:06:47 +0000 | [diff] [blame] | 8 | """ |
9 | |||||
mbligh | dc735a2 | 2007-08-02 16:54:37 +0000 | [diff] [blame] | 10 | __author__ = """ |
11 | mbligh@google.com (Martin J. Bligh), | ||||
mbligh | dcd57a8 | 2007-07-11 23:06:47 +0000 | [diff] [blame] | 12 | poirier@google.com (Benjamin Poirier), |
mbligh | dc735a2 | 2007-08-02 16:54:37 +0000 | [diff] [blame] | 13 | stutsman@google.com (Ryan Stutsman) |
14 | """ | ||||
mbligh | dcd57a8 | 2007-07-11 23:06:47 +0000 | [diff] [blame] | 15 | |
16 | |||||
17 | import installable_object | ||||
18 | |||||
19 | |||||
20 | class Hypervisor(installable_object.InstallableObject): | ||||
jadmanski | 0afbb63 | 2008-06-06 21:10:57 +0000 | [diff] [blame] | 21 | """ |
22 | This class represents a virtual machine monitor. | ||||
mbligh | dc735a2 | 2007-08-02 16:54:37 +0000 | [diff] [blame] | 23 | |
jadmanski | 0afbb63 | 2008-06-06 21:10:57 +0000 | [diff] [blame] | 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 | """ | ||||
mbligh | dc735a2 | 2007-08-02 16:54:37 +0000 | [diff] [blame] | 31 | |
jadmanski | 0afbb63 | 2008-06-06 21:10:57 +0000 | [diff] [blame] | 32 | host = None |
33 | guests = None | ||||
mbligh | dc735a2 | 2007-08-02 16:54:37 +0000 | [diff] [blame] | 34 | |
jadmanski | 0afbb63 | 2008-06-06 21:10:57 +0000 | [diff] [blame] | 35 | def __init__(self, host): |
36 | super(Hypervisor, self).__init__() | ||||
37 | self.host= host | ||||
mbligh | dc735a2 | 2007-08-02 16:54:37 +0000 | [diff] [blame] | 38 | |
39 | |||||
jadmanski | 0afbb63 | 2008-06-06 21:10:57 +0000 | [diff] [blame] | 40 | def new_guest(self): |
41 | pass | ||||
mbligh | dc735a2 | 2007-08-02 16:54:37 +0000 | [diff] [blame] | 42 | |
43 | |||||
jadmanski | 0afbb63 | 2008-06-06 21:10:57 +0000 | [diff] [blame] | 44 | def delete_guest(self, guest_hostname): |
45 | pass | ||||
mbligh | dc735a2 | 2007-08-02 16:54:37 +0000 | [diff] [blame] | 46 | |
47 | |||||
jadmanski | 0afbb63 | 2008-06-06 21:10:57 +0000 | [diff] [blame] | 48 | def reset_guest(self, guest_hostname): |
49 | pass |