Exemple #1
0
def main(args=None):
    config.backend_conf(
            defaults={'NAME':'beah_forwarder_backend'},
            overrides=config.backend_opts(args=args))
    log_handler()
    start_forwarder_backend()
    reactor.run()
Exemple #2
0
def main():
    '''Configures and starts the backend.'''
    conf = configure()
    log_handler()
    start_watchdog_backend(conf)
    #pylint: disable=E1101
    reactor.run()
Exemple #3
0
def main():
    config.backend_conf(defaults={'NAME': 'beah_cmd_backend'},
                        overrides=config.backend_opts())
    log_handler()
    print cmd_backend_intro
    cmd_backend()
    reactor.run()
Exemple #4
0
def main():
    '''Configures and starts the backend.'''
    conf = configure()
    log_handler()
    start_watchdog_backend(conf)
    #pylint: disable=E1101
    reactor.run()
Exemple #5
0
def main():
    config.backend_conf(
            defaults={'NAME':'beah_cmd_backend'},
            overrides=config.backend_opts())
    log_handler()
    print cmd_backend_intro
    cmd_backend()
    reactor.run()
Exemple #6
0
def out_backend():
    """
    Simple backend for pretty-printing events received from Controller.
    """
    config.backend_conf(defaults={'NAME': 'beah_out_backend'},
                        overrides=config.backend_opts())
    log_handler()
    start_backend(PprintBackend())
Exemple #7
0
def out_backend():
    """
    Simple backend for pretty-printing events received from Controller.
    """
    config.backend_conf(
            defaults={'NAME':'beah_out_backend'},
            overrides=config.backend_opts())
    log_handler()
    start_backend(PprintBackend())
Exemple #8
0
def beah_run(coro, **kwargs):
    """
    This is a Backend to issue script to Controller.

    Type help on the prompt for help o commands.

    You might not see any output here - run out_backend.

    Known issues:

    * Type <Ctrl-C> to finish.

    I do not want to stop reactor directly, but would like if it stopped when
    there are no more protocols.
    """
    config.backend_conf(
            defaults={'NAME':'beahcmd_backend'},
            overrides=config.backend_opts())
    log_handler()
    backend = BeahRunner(coro)
    # Start a default TCP client:
    start_backend(backend, **kwargs)
Exemple #9
0
def main_beah(args=None):
    """\
This is a Backend to issue commands to Controller.

Type help on the prompt for help o commands.

You might not see any output here - run out_backend.

Known issues:

 * Type <Ctrl-C> to finish.

   I do not want to stop reactor directly, but would like if it stopped if
   there are no more protocols.
"""
    overrides, rest = config.backend_opts_ex(args=args)
    config.backend_conf(defaults={'NAME': 'beah_cli_backend'},
                        overrides=overrides)
    log_handler()
    cmdline = ' '.join(["%r" % r for r in rest])
    backend = CmdLineBackend(cmdline)
    # Start a default TCP client:
    start_backend(backend)
Exemple #10
0
def main_beah(args=None):
    """\
This is a Backend to issue commands to Controller.

Type help on the prompt for help o commands.

You might not see any output here - run out_backend.

Known issues:

 * Type <Ctrl-C> to finish.

   I do not want to stop reactor directly, but would like if it stopped if
   there are no more protocols.
"""
    overrides, rest = config.backend_opts_ex(args=args)
    config.backend_conf(
            defaults={'NAME':'beah_cli_backend'},
            overrides=overrides)
    log_handler()
    cmdline = ' '.join(["%r" % r for r in rest])
    backend = CmdLineBackend(cmdline)
    # Start a default TCP client:
    start_backend(backend)
Exemple #11
0
def main(args=None):
    config.backend_conf(defaults={'NAME': 'beah_forwarder_backend'},
                        overrides=config.backend_opts(args=args))
    log_handler()
    start_forwarder_backend()
    reactor.run()