Package DataCollector :: Module CollectorClient :: Class CollectorClient
[hide private]
[frames] | no frames]

Class CollectorClient

source code

  twisted.internet.protocol.Factory --+    
                                      |    
twisted.internet.protocol.ClientFactory --+
                                          |
                                         CollectorClient
Known Subclasses:
TelnetClient.TelnetClient, SshClient.SshClient

Instance Methods [hide private]
 
__init__(self, hostname, ip, port, commands=None, options=None, device=None, datacollector=None, log=None) source code
 
addCommand(self, command) source code
 
addResult(self, command, data, exitCode)
add a result pair to the results store
source code
 
getCommands(self) source code
 
getResults(self) source code
 
commandsFinished(self)
called by protocol to see if all commands have been run
source code
 
clientFinished(self)
tell the datacollector that we are all done
source code

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]
  maintainConnection = False
  cmdindex = 0

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