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

Class MySshClient

source code

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

Connection to SSH server at the remote device

Instance Methods [hide private]
 
__init__(self, *args, **kw)
Initializer
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 DataCollector.SshClient.SshClient: channelClosed, clientConnectionFailed, loseConnection, run, runCommands, serviceStarted

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

Inherited from DataCollector.BaseClient.BaseClient: stop

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

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

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

Class Variables [hide private]

Inherited from DataCollector.CollectorClient.CollectorClient: cmdindex, maintainConnection

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

source code 
Initializer
Overrides: DataCollector.SshClient.SshClient.__init__
(inherited documentation)

addCommand(self, command)

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

addResult(self, command, data, code)

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

clientFinished(self)

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