Package src :: Module jabber_lib :: Class Runner
[hide private]
[frames] | no frames]

Class Runner

source code


Nested Classes [hide private]
  option
Instance attributes: _short_opts : [string] _long_opts : [string]
  option_parser
Class attributes: standard_option_list : [Option] list of standard options that will be accepted by all instances of this parser class (intended to be overridden by subclasses).
Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_error_callback(self, client, stanza)
Logs error stanza messages for diagnostic purposes
source code
 
_get_jabber_client(self, jabber_server)
Returns a connected Jabber client, or raises an exception if it was unable to connect
source code
 
check_cert(self, cert) source code
 
fix_connection(self, client)
After setting up the connection, do whatever else is necessary
source code
 
is_in_background(self) source code
 
main(self)
Method that starts up everything
source code
 
preprocess_once(self, client) source code
 
print_message(self, js, e) source code
 
process_cli_options(self)
Process command line options
source code
 
process_forever(self, client)
Big loop to process requests
source code
 
process_once(self, client)
To be overridden in a client class
source code
 
push_to_background(self) source code
 
read_config(self) source code
 
setup_config(self, config) source code
 
setup_connection(self, no_fork=0)
initializes a Jabber connection (by instantiating a Jabber client)
source code

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

Class Variables [hide private]
  _max_sleep = 90
  _min_sleep = 60
  client_factory = None
hash(x)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

main(self)

source code 

Method that starts up everything

  • processes command line options
  • big loop to reconnect if necessary
    • read config
    • setup config
    • setup jabber connection
    • process requests