Package ZenRRD :: Module zencommand :: Class MySshClient
[hide private]
[frames] | no frames]

Class MySshClient

source code

             twisted.internet.protocol.Factory --+            
                                                 |            
           twisted.internet.protocol.ClientFactory --+        
                                                     |        
Products.DataCollector.CollectorClient.CollectorClient --+    
                                                         |    
                Products.DataCollector.SshClient.SshClient --+
                                                             |
                                                            MySshClient

Connection to SSH server at the remote device

Instance Methods [hide private]
 
__init__(self, *args, **kw) source code
 
addCommand(self, command)
Run a command against the server
source code
 
addResult(self, command, data, code)
Forward the results of the command execution to the starter
source code
 
check(self, ip, timeout=2)
Turn off blocking SshClient.test method
source code
 
clientFinished(self)
We don't need to track commands/results when they complete
source code

Inherited from Products.DataCollector.SshClient.SshClient: loseConnection, run, serviceStarted

Inherited from Products.DataCollector.CollectorClient.CollectorClient: commandsFinished, getCommands, getResults

Inherited from twisted.internet.protocol.ClientFactory: clientConnectionFailed, clientConnectionLost, startedConnecting

Inherited from twisted.internet.protocol.Factory: __providedBy__, buildProtocol, doStart, doStop, startFactory, stopFactory

Class Variables [hide private]

Inherited from Products.DataCollector.CollectorClient.CollectorClient: cmdindex, maintainConnection

Inherited from twisted.internet.protocol.Factory: __implemented__, __provides__, noisy, numPorts, protocol

Method Details [hide private]

__init__(self, *args, **kw)
(Constructor)

source code 
Overrides: Products.DataCollector.SshClient.SshClient.__init__

addCommand(self, command)

source code 
Run a command against the server
Overrides: Products.DataCollector.SshClient.SshClient.addCommand

addResult(self, command, data, code)

source code 
Forward the results of the command execution to the starter
Overrides: Products.DataCollector.CollectorClient.CollectorClient.addResult

clientFinished(self)

source code 
We don't need to track commands/results when they complete
Overrides: Products.DataCollector.CollectorClient.CollectorClient.clientFinished