SYMBOL INDEX (183 symbols across 18 files) FILE: superlance/crashmail.py function usage (line 75) | def usage(exitstatus=255): class CrashMail (line 80) | class CrashMail: method __init__ (line 82) | def __init__(self, programs, any, email, sendmail, optionalheader): method runforever (line 93) | def runforever(self, test=False): method mail (line 137) | def mail(self, email, subject, msg): function main (line 148) | def main(argv=sys.argv): FILE: superlance/crashmailbatch.py class CrashMailBatch (line 58) | class CrashMailBatch(ProcessStateEmailMonitor): method __init__ (line 62) | def __init__(self, **kwargs): method get_process_state_change_msg (line 68) | def get_process_state_change_msg(self, headers, payload): function main (line 79) | def main(): FILE: superlance/crashsms.py class CrashSMS (line 69) | class CrashSMS(ProcessStateEmailMonitor): method __init__ (line 72) | def __init__(self, **kwargs): method get_process_state_change_msg (line 76) | def get_process_state_change_msg(self, headers, payload): function main (line 87) | def main(): FILE: superlance/fatalmailbatch.py class FatalMailBatch (line 57) | class FatalMailBatch(ProcessStateEmailMonitor): method __init__ (line 61) | def __init__(self, **kwargs): method get_process_state_change_msg (line 67) | def get_process_state_change_msg(self, headers, payload): function main (line 74) | def main(): FILE: superlance/httpok.py function usage (line 117) | def usage(exitstatus=255): class HTTPOk (line 121) | class HTTPOk: method __init__ (line 123) | def __init__(self, rpc, programs, any, url, timeout, statuses, inbody, method listProcesses (line 143) | def listProcesses(self, state=None): method runforever (line 148) | def runforever(self, test=False): method format_subject (line 229) | def format_subject(self, subject): method act (line 235) | def act(self, subject, msg): method mail (line 284) | def mail(self, email, subject, msg): method restart (line 294) | def restart(self, spec, write): function main (line 322) | def main(argv=sys.argv): FILE: superlance/memmon.py function usage (line 94) | def usage(exitstatus=255): function shell (line 98) | def shell(cmd): class Memmon (line 102) | class Memmon: method __init__ (line 103) | def __init__(self, cumulative, programs, groups, any, sendmail, email,... method runforever (line 120) | def runforever(self, test=False): method restart (line 195) | def restart(self, name, rss): method format_subject (line 238) | def format_subject(self, subject): method calc_rss (line 244) | def calc_rss(self, pid): method mail (line 297) | def mail(self, email, subject, msg): function parse_namesize (line 306) | def parse_namesize(option, value): function parse_size (line 315) | def parse_size(option, value): function parse_seconds (line 330) | def parse_seconds(option, value): function memmon_from_args (line 340) | def memmon_from_args(arguments): function main (line 412) | def main(): FILE: superlance/process_state_email_monitor.py class ProcessStateEmailMonitor (line 30) | class ProcessStateEmailMonitor(ProcessStateMonitor): method _get_opt_parser (line 34) | def _get_opt_parser(cls): method parse_cmd_line_options (line 57) | def parse_cmd_line_options(cls): method validate_cmd_line_options (line 63) | def validate_cmd_line_options(cls, options): method get_cmd_line_options (line 77) | def get_cmd_line_options(cls): method create_from_cmd_line (line 81) | def create_from_cmd_line(cls): method __init__ (line 90) | def __init__(self, **kwargs): method send_batch_notification (line 102) | def send_batch_notification(self): method log_email (line 108) | def log_email(self, email): method get_batch_email (line 116) | def get_batch_email(self): method send_email (line 126) | def send_email(self, email): method send_smtp (line 140) | def send_smtp(self, mime_msg, to_emails): FILE: superlance/process_state_monitor.py class ProcessStateMonitor (line 23) | class ProcessStateMonitor: method __init__ (line 28) | def __init__(self, **kwargs): method _get_tick_mins (line 41) | def _get_tick_mins(self, eventname): method _get_tick_secs (line 44) | def _get_tick_secs(self, eventname): method _validate_tick_name (line 48) | def _validate_tick_name(self, eventname): method run (line 52) | def run(self): method handle_event (line 58) | def handle_event(self, headers, payload): method handle_process_state_change_event (line 64) | def handle_process_state_change_event(self, headers, payload): method get_process_state_change_msg (line 73) | def get_process_state_change_msg(self, headers, payload): method handle_tick_event (line 76) | def handle_tick_event(self, headers, payload): method send_batch_notification (line 85) | def send_batch_notification(self): method get_batch_minutes (line 88) | def get_batch_minutes(self): method get_batch_msgs (line 91) | def get_batch_msgs(self): method clear_batch (line 94) | def clear_batch(self): method write_stderr (line 98) | def write_stderr(self, msg): FILE: superlance/tests/dummy.py class DummyRPCServer (line 6) | class DummyRPCServer: method __init__ (line 7) | def __init__(self): class DummyResponse (line 11) | class DummyResponse: method read (line 15) | def read(self): class DummySystemRPCNamespace (line 18) | class DummySystemRPCNamespace: class DummySupervisorRPCNamespace (line 21) | class DummySupervisorRPCNamespace: method getAllProcessInfo (line 67) | def getAllProcessInfo(self): method getProcessInfo (line 70) | def getProcessInfo(self, name): method startProcess (line 76) | def startProcess(self, name): method stopProcess (line 83) | def stopProcess(self, name): FILE: superlance/tests/test_crashmail.py class CrashMailTests (line 4) | class CrashMailTests(unittest.TestCase): method _getTargetClass (line 5) | def _getTargetClass(self): method _makeOne (line 9) | def _makeOne(self, *opts): method setUp (line 12) | def setUp(self): method tearDown (line 16) | def tearDown(self): method _makeOnePopulated (line 20) | def _makeOnePopulated(self, programs, any, response=None): method test_runforever_not_process_state_exited (line 31) | def test_runforever_not_process_state_exited(self): method test_runforever_expected_exit (line 40) | def test_runforever_expected_exit(self): method test_runforever_unexpected_exit (line 53) | def test_runforever_unexpected_exit(self): FILE: superlance/tests/test_crashmailbatch.py class CrashMailBatchTests (line 8) | class CrashMailBatchTests(unittest.TestCase): method _get_target_class (line 14) | def _get_target_class(self): method _make_one_mocked (line 18) | def _make_one_mocked(self, **kwargs): method get_process_exited_event (line 30) | def get_process_exited_event(self, pname, gname, expected): method test_get_process_state_change_msg_expected (line 40) | def test_get_process_state_change_msg_expected(self): method test_get_process_state_change_msg_unexpected (line 45) | def test_get_process_state_change_msg_unexpected(self): method test_handle_event_exit_expected (line 51) | def test_handle_event_exit_expected(self): method test_handle_event_exit_unexpected (line 58) | def test_handle_event_exit_unexpected(self): method test_sets_default_subject_when_None (line 67) | def test_sets_default_subject_when_None(self): FILE: superlance/tests/test_crashsms.py class CrashSMSTests (line 5) | class CrashSMSTests(CrashMailBatchTests): method _get_target_class (line 9) | def _get_target_class(self): method test_sets_default_subject_when_None (line 13) | def test_sets_default_subject_when_None(self): FILE: superlance/tests/test_fatalmailbatch.py class FatalMailBatchTests (line 8) | class FatalMailBatchTests(unittest.TestCase): method _get_target_class (line 14) | def _get_target_class(self): method _make_one_mocked (line 18) | def _make_one_mocked(self, **kwargs): method get_process_fatal_event (line 30) | def get_process_fatal_event(self, pname, gname): method test_get_process_state_change_msg (line 40) | def test_get_process_state_change_msg(self): method test_sets_default_subject_when_None (line 46) | def test_sets_default_subject_when_None(self): FILE: superlance/tests/test_httpok.py function make_connection (line 37) | def make_connection(response, exc=None): class HTTPOkTests (line 57) | class HTTPOkTests(unittest.TestCase): method _getTargetClass (line 58) | def _getTargetClass(self): method _makeOne (line 62) | def _makeOne(self, *args, **kwargs): method _makeOnePopulated (line 65) | def _makeOnePopulated(self, programs, any=None, statuses=None, inbody=... method test_listProcesses_no_programs (line 95) | def test_listProcesses_no_programs(self): method test_listProcesses_w_RUNNING_programs_default_state (line 102) | def test_listProcesses_w_RUNNING_programs_default_state(self): method test_listProcesses_w_nonRUNNING_programs_default_state (line 111) | def test_listProcesses_w_nonRUNNING_programs_default_state(self): method test_listProcesses_w_nonRUNNING_programs_RUNNING_state (line 120) | def test_listProcesses_w_nonRUNNING_programs_RUNNING_state(self): method test_runforever_eager_notatick (line 127) | def test_runforever_eager_notatick(self): method test_runforever_doesnt_act_if_status_is_expected (line 136) | def test_runforever_doesnt_act_if_status_is_expected(self): method test_runforever_acts_if_status_is_unexpected (line 152) | def test_runforever_acts_if_status_is_unexpected(self): method test_runforever_doesnt_act_if_inbody_is_present (line 171) | def test_runforever_doesnt_act_if_inbody_is_present(self): method test_runforever_acts_if_inbody_isnt_present (line 186) | def test_runforever_acts_if_inbody_isnt_present(self): method test_runforever_eager_error_on_request_some (line 202) | def test_runforever_eager_error_on_request_some(self): method test_runforever_eager_error_on_request_any (line 227) | def test_runforever_eager_error_on_request_any(self): method test_runforever_eager_error_on_process_stop (line 247) | def test_runforever_eager_error_on_process_stop(self): method test_runforever_eager_error_on_process_start (line 267) | def test_runforever_eager_error_on_process_start(self): method test_runforever_eager_gcore (line 288) | def test_runforever_eager_gcore(self): method test_runforever_not_eager_none_running (line 317) | def test_runforever_not_eager_none_running(self): method test_runforever_not_eager_running (line 329) | def test_runforever_not_eager_running(self): method test_runforever_honor_timeout_on_connrefused (line 349) | def test_runforever_honor_timeout_on_connrefused(self): method test_runforever_connrefused_error (line 361) | def test_runforever_connrefused_error(self): method test_bug_110 (line 384) | def test_bug_110(self): method test_subject_no_name (line 400) | def test_subject_no_name(self): method test_subject_with_name (line 418) | def test_subject_with_name(self): FILE: superlance/tests/test_memmon.py class MemmonTests (line 12) | class MemmonTests(unittest.TestCase): method _getTargetClass (line 13) | def _getTargetClass(self): method _makeOne (line 17) | def _makeOne(self, *args, **kwargs): method _makeOnePopulated (line 20) | def _makeOnePopulated(self, programs, groups, any, name=None): method test_runforever_notatick (line 38) | def test_runforever_notatick(self): method test_runforever_tick_programs (line 48) | def test_runforever_tick_programs(self): method test_runforever_tick_groups (line 74) | def test_runforever_tick_groups(self): method test_runforever_tick_any (line 96) | def test_runforever_tick_any(self): method test_runforever_tick_programs_and_groups (line 117) | def test_runforever_tick_programs_and_groups(self): method test_runforever_tick_programs_norestart (line 142) | def test_runforever_tick_programs_norestart(self): method test_stopprocess_fault_tick_programs_norestart (line 157) | def test_stopprocess_fault_tick_programs_norestart(self): method test_stopprocess_fails_to_stop (line 172) | def test_stopprocess_fails_to_stop(self): method test_subject_no_name (line 208) | def test_subject_no_name(self): method test_subject_with_name (line 226) | def test_subject_with_name(self): method test_parse_uptime (line 244) | def test_parse_uptime(self): method test_uptime_short_email (line 254) | def test_uptime_short_email(self): method test_uptime_long_no_email (line 279) | def test_uptime_long_no_email(self): method test_calc_rss_not_cumulative (line 294) | def test_calc_rss_not_cumulative(self): method test_calc_rss_cumulative (line 313) | def test_calc_rss_cumulative(self): method test_argparser (line 349) | def test_argparser(self): FILE: superlance/tests/test_process_state_email_monitor.py class ProcessStateEmailMonitorTestException (line 8) | class ProcessStateEmailMonitorTestException(Exception): class ProcessStateEmailMonitorTests (line 11) | class ProcessStateEmailMonitorTests(unittest.TestCase): method _get_target_class (line 17) | def _get_target_class(self): method _make_one (line 22) | def _make_one(self, **kwargs): method _make_one_mock_send_email (line 33) | def _make_one_mock_send_email(self, **kwargs): method _make_one_mock_send_smtp (line 38) | def _make_one_mock_send_smtp(self, **kwargs): method test_validate_cmd_line_options_single_to_email_ok (line 43) | def test_validate_cmd_line_options_single_to_email_ok(self): method test_validate_cmd_line_options_multi_to_emails_ok (line 53) | def test_validate_cmd_line_options_multi_to_emails_ok(self): method test_send_email_ok (line 63) | def test_send_email_ok(self): method _raiseSTMPException (line 82) | def _raiseSTMPException(self, mime, to_emails): method test_send_email_exception (line 85) | def test_send_email_exception(self): method test_send_batch_notification (line 99) | def test_send_batch_notification(self): method test_log_email_with_body_digest (line 125) | def test_log_email_with_body_digest(self): method test_log_email_without_body_digest (line 144) | def test_log_email_without_body_digest(self): FILE: superlance/tests/test_process_state_monitor.py class _TestProcessStateMonitor (line 9) | class _TestProcessStateMonitor(ProcessStateMonitor): method get_process_state_change_msg (line 13) | def get_process_state_change_msg(self, headers, payload): class ProcessStateMonitorTests (line 16) | class ProcessStateMonitorTests(unittest.TestCase): method _get_target_class (line 18) | def _get_target_class(self): method _make_one_mocked (line 21) | def _make_one_mocked(self, **kwargs): method get_process_exited_event (line 30) | def get_process_exited_event(self, pname, gname, expected, method get_tick60_event (line 41) | def get_tick60_event(self): method test__get_tick_secs (line 50) | def test__get_tick_secs(self): method test__get_tick_mins (line 57) | def test__get_tick_mins(self): method test_handle_event_exit (line 61) | def test_handle_event_exit(self): method test_handle_event_non_exit (line 69) | def test_handle_event_non_exit(self): method test_handle_event_tick_interval_expired (line 77) | def test_handle_event_tick_interval_expired(self): method test_handle_event_tick_interval_not_expired (line 94) | def test_handle_event_tick_interval_not_expired(self): FILE: superlance/timeoutconn.py class TimeoutHTTPConnection (line 6) | class TimeoutHTTPConnection(httplib.HTTPConnection): method connect (line 11) | def connect(self): class TimeoutHTTPSConnection (line 34) | class TimeoutHTTPSConnection(httplib.HTTPSConnection): method connect (line 37) | def connect(self):