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 | |
| 5 | """This module defines the Hypervisor class |
| 6 | |
| 7 | Hypervisor: a virtual machine monitor |
| 8 | """ |
| 9 | |
| 10 | __author__ = """mbligh@google.com (Martin J. Bligh), |
| 11 | poirier@google.com (Benjamin Poirier), |
| 12 | stutsman@google.com (Ryan Stutsman)""" |
| 13 | |
| 14 | |
| 15 | import installable_object |
| 16 | |
| 17 | |
| 18 | class Hypervisor(installable_object.InstallableObject): |
| 19 | """This class represents a virtual machine monitor. |
| 20 | |
| 21 | Implementation details: |
| 22 | This is an abstract class, leaf subclasses must implement the methods |
| 23 | listed here and in parent classes which have no implementation. They |
| 24 | may reimplement methods which already have an implementation. You |
| 25 | must not instantiate this class but should instantiate one of those |
| 26 | leaf subclasses.""" |
| 27 | |
| 28 | host = None |
| 29 | guests = None |
| 30 | |
| 31 | def __init__(self, host): |
| 32 | super(Hypervisor, self).__init__() |
| 33 | self.host= host |
| 34 | |
| 35 | def new_guest(self): |
| 36 | pass |
| 37 | |
mbligh | 34169c2 | 2007-07-23 16:38:51 +0000 | [diff] [blame^] | 38 | def delete_guest(self, guest_hostname): |
mbligh | dcd57a8 | 2007-07-11 23:06:47 +0000 | [diff] [blame] | 39 | pass |
| 40 | |
mbligh | 34169c2 | 2007-07-23 16:38:51 +0000 | [diff] [blame^] | 41 | def reset_guest(self, guest_hostname): |
mbligh | dcd57a8 | 2007-07-11 23:06:47 +0000 | [diff] [blame] | 42 | pass |