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