blob: a71219949f1d309da98fe7df731866e3576760d3 [file] [log] [blame]
mbligh321b1f52008-04-09 16:23:43 +00001"""This class defines the Remote host class, mixing in the SiteHost class
2if it is available."""
3
jadmanski1c5e3a12008-08-15 23:08:20 +00004from autotest_lib.server.hosts import base_classes
mbligh321b1f52008-04-09 16:23:43 +00005
6
jadmanski1c5e3a12008-08-15 23:08:20 +00007class RemoteHost(base_classes.Host):
jadmanski0afbb632008-06-06 21:10:57 +00008 """This class represents a remote machine on which you can run
9 programs.
mbligh321b1f52008-04-09 16:23:43 +000010
jadmanski0afbb632008-06-06 21:10:57 +000011 It may be accessed through a network, a serial line, ...
12 It is not the machine autoserv is running on.
mbligh321b1f52008-04-09 16:23:43 +000013
jadmanski0afbb632008-06-06 21:10:57 +000014 Implementation details:
15 This is an abstract class, leaf subclasses must implement the methods
16 listed here and in parent classes which have no implementation. They
17 may reimplement methods which already have an implementation. You
18 must not instantiate this class but should instantiate one of those
19 leaf subclasses."""
mbligh321b1f52008-04-09 16:23:43 +000020
jadmanski1c5e3a12008-08-15 23:08:20 +000021 def __init__(self, hostname, *args, **dargs):
22 super(RemoteHost, self).__init__(*args, **dargs)
mbligh321b1f52008-04-09 16:23:43 +000023
jadmanski1c5e3a12008-08-15 23:08:20 +000024 self.hostname = hostname
jadmanskia2db9412008-08-22 21:47:24 +000025
26
27 def __del__(self):
28 pass