Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/b/o/bombardier_server-1.10-783/lib/cnm/MachineInterface.py   bombardier_server(Download)
from Exceptions import SecureCopyException
from AbstractMachineInterface import AbstractMachineInterface
from AbstractMachineInterface import DISCONNECTED, CONNECTED, BROKEN
 
#Statuses:
            result = self.ssh_conn.terminate(force=True)
            if result:
                self.status = DISCONNECTED
            else:
                status = FAIL
    def freshen(self):
        '''Since we like to keep connections around for a long time,
        verify that our connection to the remote system is still working'''
        connection_age = time.time() - self.connect_time
        if self.status == DISCONNECTED or \
            self.ssh_conn.terminate(force=True)
        finally:
            self.status = DISCONNECTED