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

Class TelnetClient

source code

  twisted.internet.protocol.Factory --+        
                                      |        
twisted.internet.protocol.ClientFactory --+    
                                          |    
            CollectorClient.CollectorClient --+
                                              |
                                             TelnetClient

Instance Methods [hide private]
 
__init__(self, hostname, ip, port, commands=[], options=None, device=None, datacollector=None) source code
 
run(self)
Start telnet collection.
source code
 
Command(self, commands)
add new commands to be run reset cmdindex to 0
source code
 
clientConnectionFailed(self, connector, reason)
if we don't connect let the modeler know
source code
 
clientFinished(self)
tell the datacollector that we are all done
source code

Inherited from CollectorClient.CollectorClient: addCommand, addResult, commandsFinished, getCommands, getResults

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

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

Class Variables [hide private]

Inherited from CollectorClient.CollectorClient: cmdindex, maintainConnection

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

Method Details [hide private]

__init__(self, hostname, ip, port, commands=[], options=None, device=None, datacollector=None)
(Constructor)

source code 
Overrides: CollectorClient.CollectorClient.__init__

clientConnectionFailed(self, connector, reason)

source code 
if we don't connect let the modeler know
Overrides: twisted.internet.protocol.ClientFactory.clientConnectionFailed

clientFinished(self)

source code 
tell the datacollector that we are all done
Overrides: CollectorClient.CollectorClient.clientFinished
(inherited documentation)