mbligh | 321b1f5 | 2008-04-09 16:23:43 +0000 | [diff] [blame] | 1 | """This class defines the Remote host class, mixing in the SiteHost class |
| 2 | if it is available.""" |
| 3 | |
jadmanski | 1c5e3a1 | 2008-08-15 23:08:20 +0000 | [diff] [blame] | 4 | from autotest_lib.server.hosts import base_classes |
mbligh | 321b1f5 | 2008-04-09 16:23:43 +0000 | [diff] [blame] | 5 | |
| 6 | |
jadmanski | 1c5e3a1 | 2008-08-15 23:08:20 +0000 | [diff] [blame] | 7 | class RemoteHost(base_classes.Host): |
jadmanski | 0afbb63 | 2008-06-06 21:10:57 +0000 | [diff] [blame] | 8 | """This class represents a remote machine on which you can run |
| 9 | programs. |
mbligh | 321b1f5 | 2008-04-09 16:23:43 +0000 | [diff] [blame] | 10 | |
jadmanski | 0afbb63 | 2008-06-06 21:10:57 +0000 | [diff] [blame] | 11 | It may be accessed through a network, a serial line, ... |
| 12 | It is not the machine autoserv is running on. |
mbligh | 321b1f5 | 2008-04-09 16:23:43 +0000 | [diff] [blame] | 13 | |
jadmanski | 0afbb63 | 2008-06-06 21:10:57 +0000 | [diff] [blame] | 14 | 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.""" |
mbligh | 321b1f5 | 2008-04-09 16:23:43 +0000 | [diff] [blame] | 20 | |
jadmanski | 1c5e3a1 | 2008-08-15 23:08:20 +0000 | [diff] [blame] | 21 | def __init__(self, hostname, *args, **dargs): |
| 22 | super(RemoteHost, self).__init__(*args, **dargs) |
mbligh | 321b1f5 | 2008-04-09 16:23:43 +0000 | [diff] [blame] | 23 | |
jadmanski | 1c5e3a1 | 2008-08-15 23:08:20 +0000 | [diff] [blame] | 24 | self.hostname = hostname |
jadmanski | a2db941 | 2008-08-22 21:47:24 +0000 | [diff] [blame] | 25 | |
| 26 | |
| 27 | def __del__(self): |
| 28 | pass |