blob: 7053985c907e01c4109823e5eb67f0b3d3446e73 [file] [log] [blame]
mblighdcd57a82007-07-11 23:06:47 +00001#!/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),
11poirier@google.com (Benjamin Poirier),
12stutsman@google.com (Ryan Stutsman)"""
13
14
15import installable_object
16
17
18class 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
mbligh34169c22007-07-23 16:38:51 +000038 def delete_guest(self, guest_hostname):
mblighdcd57a82007-07-11 23:06:47 +000039 pass
40
mbligh34169c22007-07-23 16:38:51 +000041 def reset_guest(self, guest_hostname):
mblighdcd57a82007-07-11 23:06:47 +000042 pass